Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Compiling forte with xilinx toolchain failed
Compiling forte with xilinx toolchain failed [message #1828095] Mon, 01 June 2020 13:11 Go to next message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member
when i choose the arm-xilinx-linux-gnueabi-gcc,arm-xilinx-linux-gnueabi-g++
under toolchain in cmake, the errors occur

The C compiler identification is unknown
The CXX compiler identification is unknown

So can't we use the xlinx toolchain?
Re: Compiling forte with xilinx toolchain failed [message #1828118 is a reply to message #1828095] Tue, 02 June 2020 07:02 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1039
Registered: January 2014
Senior Member
With that information I must admit I can not say it. But i would guess it is a setting issue because sofar we could get every toolchain working.
Re: Compiling forte with xilinx toolchain failed [message #1828120 is a reply to message #1828118] Tue, 02 June 2020 07:15 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member
I installed vivado 2019.2 then i use the gnu under E:\Xilinx\Vitis\2019.2\gnu\aarch32\nt\gcc-arm-linux-gnueabi\bin
the the cmake-gui can configure it, but i don't know how to link a library(.a) with forte, in cmake-gui or develepment tool
Re: Compiling forte with xilinx toolchain failed [message #1828123 is a reply to message #1828120] Tue, 02 June 2020 07:23 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1039
Registered: January 2014
Senior Member
never used that thing. any log messages that could help? more detailed error messages
Re: Compiling forte with xilinx toolchain failed [message #1828124 is a reply to message #1828123] Tue, 02 June 2020 07:36 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member
he C compiler identification is unknown
The CXX compiler identification is unknown
Check for working C compiler: E:/M1600/Codesourcery/bin/arm-xilinx-linux-gnueabi-gcc
Check for working C compiler: E:/M1600/Codesourcery/bin/arm-xilinx-linux-gnueabi-gcc - broken
CMake Error at D:/1600/cmake-3.17.0-rc3-win64-x64/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"E:/M1600/Codesourcery/bin/arm-xilinx-linux-gnueabi-gcc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: D:/1600/forte-incubation_1.12.0/bin12/CMakeFiles/CMakeTmp

Run Build Command(s):D:/PROGRA~1/mingw64/bin/mingw32-make.exe cmTC_d7343/fast && D:/PROGRA~1/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_d7343.dir\build.make CMakeFiles/cmTC_d7343.dir/build

mingw32-make.exe[1]: Entering directory 'D:/1600/forte-incubation_1.12.0/bin12/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_d7343.dir/testCCompiler.c.o

E:\M1600\Codesourcery\bin\arm-xilinx-linux-gnueabi-gcc -o CMakeFiles\cmTC_d7343.dir\testCCompiler.c.o -c D:\1600\forte-incubation_1.12.0\bin12\CMakeFiles\CMakeTmp\testCCompiler.c

process_begin: CreateProcess(E:\M1600\Codesourcery\bin\arm-xilinx-linux-gnueabi-gcc, E:\M1600\Codesourcery\bin\arm-xilinx-linux-gnueabi-gcc -o CMakeFiles\cmTC_d7343.dir\testCCompiler.c.o -c D:\1600\forte-incubation_1.12.0\bin12\CMakeFiles\CMakeTmp\testCCompiler.c, ...) failed.

make (e=193): Error 193

mingw32-make.exe[1]: *** [CMakeFiles\cmTC_d7343.dir\build.make:82: CMakeFiles/cmTC_d7343.dir/testCCompiler.c.o] Error 193

mingw32-make.exe[1]: Leaving directory 'D:/1600/forte-incubation_1.12.0/bin12/CMakeFiles/CMakeTmp'

mingw32-make.exe: *** [Makefile:137: cmTC_d7343/fast] Error 2






CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:17 (PROJECT)


Configuring incomplete, errors occurred!
See also "D:/1600/forte-incubation_1.12.0/bin12/CMakeFiles/CMakeOutput.log".
See also "D:/1600/forte-incubation_1.12.0/bin12/CMakeFiles/CMakeError.log".
  • Attachment: snap1.png
    (Size: 9.32KB, Downloaded 10 times)

[Updated on: Tue, 02 June 2020 07:37]

Report message to a moderator

Re: Compiling forte with xilinx toolchain failed [message #1828126 is a reply to message #1828124] Tue, 02 June 2020 07:49 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1039
Registered: January 2014
Senior Member
the interesting information would be in:
See also "D:/1600/forte-incubation_1.12.0/bin12/CMakeFiles/CMakeOutput.log".
See also "D:/1600/forte-incubation_1.12.0/bin12/CMakeFiles/CMakeError.log".

but i also see a few things that you could consider:
1. I don't think that E:\M1600\Codesourcery\bin is the right directory as target root. In my setups the bin was never the correct one
2. if it is a very special platform you may need a target configuration cmake file with additional compiler and linker flags
3. since quite some time we recommend that the build directory should not be within the forte code that you downloaded. This makes it easier for you to seperate your developments from the offical forte code.
Re: Compiling forte with xilinx toolchain failed [message #1828129 is a reply to message #1828126] Tue, 02 June 2020 08:18 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member

both
E:\M1600\Codesourcery\bin and E:/M1600/Codesourcery/arm-xilinx-linux-gnueabi/bin
didn't work, they had the same error in CMakeError.log

Compiler: E:/M1600/Codesourcery/arm-xilinx-linux-gnueabi/bin/gcc
Build flags:
Id flags:

The output was:
%1 is not a valid Win32 application

i downloaded two different versions of xilinx toolchian, but none of them worked.
Re: Compiling forte with xilinx toolchain failed [message #1828130 is a reply to message #1828126] Tue, 02 June 2020 08:20 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member
No Message Body
Re: Compiling forte with xilinx toolchain failed [message #1828135 is a reply to message #1828129] Tue, 02 June 2020 09:15 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1039
Registered: January 2014
Senior Member
joy woo wrote on Tue, 02 June 2020 08:18

both
E:\M1600\Codesourcery\bin and E:/M1600/Codesourcery/arm-xilinx-linux-gnueabi/bin
didn't work, they had the same error in CMakeError.log


for me it is never a bin directory. for any linaro toolchain always the toolchain root file seems to work best.

joy woo wrote on Tue, 02 June 2020 08:18

Compiler: E:/M1600/Codesourcery/arm-xilinx-linux-gnueabi/bin/gcc
Build flags:
Id flags:

The output was:
%1 is not a valid Win32 application

i downloaded two different versions of xilinx toolchian, but none of them worked.


I think there are some cross compilation settings missing. Cmake is trying to check if the application generated works for your host OS. There are some options that can tweak that. Please search for cross compilation and CMake to check for them.

Re: Compiling forte with xilinx toolchain failed [message #1828141 is a reply to message #1828135] Tue, 02 June 2020 14:16 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member
how to add libary .a into forte in cmake-gui ?
Re: Compiling forte with xilinx toolchain failed [message #1828142 is a reply to message #1828141] Tue, 02 June 2020 14:20 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1039
Registered: January 2014
Senior Member
linker options?
Re: Compiling forte with xilinx toolchain failed [message #1828143 is a reply to message #1828142] Tue, 02 June 2020 14:23 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member
I didn't find it
  • Attachment: s2.png
    (Size: 46.00KB, Downloaded 12 times)
Re: Compiling forte with xilinx toolchain failed [message #1828416 is a reply to message #1828143] Tue, 09 June 2020 12:42 Go to previous message
joy woo is currently offline joy wooFriend
Messages: 147
Registered: May 2019
Senior Member


in CMakeList.txt under forte/src

if(FORTE_BUILD_EXECUTABLE)
ADD_EXECUTABLE (forte $<TARGET_OBJECTS:FORTE_LITE> ${SOURCE_EXECUTABLE_CPP} ${FORTE_EXECUTABLE_H})
set_target_properties(forte PROPERTIES LINK_FLAGS "${link_flags}")
TARGET_LINK_LIBRARIES (forte ${LINK_LIBRARY})
TARGET_LINK_LIBRARIES (forte ${ADT_LIBRARIES})
ADD_DEPENDENCIES (forte FORTE_LITE)
install(TARGETS forte RUNTIME DESTINATION bin)
message("Building executable")
endif(FORTE_BUILD_EXECUTABLE)

in another file CmakeList.txt
i add :
forte_add_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
forte_add_sourcefile_h (ADT_Motion_Pulse.h ADT_Motion_Unit.h)
then i can compile static library into forte
Previous Topic:Type Export in 4diac 1.12.2
Next Topic:forte+freertos+lwip on stm32 flash problem
Goto Forum:
  


Current Time: Fri Oct 23 06:23:03 GMT 2020

Powered by FUDForum. Page generated in 0.02897 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top