Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Cmake with freertos
Cmake with freertos [message #1822870] Mon, 16 March 2020 04:45 Go to next message
Eclipse UserFriend
unfortrunatly,i follow the document fail at the first step,
https://www.eclipse.org/4diac/en_help.php?helppage=html/installation/freeRTOSLwIP.html

i c

The C compiler identification is GNU 9.2.1
The CXX compiler identification is GNU 9.2.1
System is unknown to cmake, create:
Platform/freeRTOS to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
Check for working C compiler: D:/Program Files (x86)/GNU Tools Arm Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc.exe
System is unknown to cmake, create:
Platform/freeRTOS to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
Check for working C compiler: D:/Program Files (x86)/GNU Tools Arm Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc.exe - broken
CMake Error at D:/Program Files/cmake-3.17.0-rc3-win64-x64/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"D:/Program Files (x86)/GNU Tools Arm Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: D:/dev/industry/project/forte-incubation_1.11.0/arm7/CMakeFiles/CMakeTmp

Run Build Command(s):D:/PROGRA~3/MINGW-~1/X86_64~1.0-P/mingw64/bin/make.exe cmTC_11bbb/fast && D:/PROGRA~3/MINGW-~1/X86_64~1.0-P/mingw64/bin/make.exe -f CMakeFiles/cmTC_11bbb.dir/build.make CMakeFiles/cmTC_11bbb.dir/build

make.exe[1]: Entering directory 'D:/dev/industry/project/forte-incubation_1.11.0/arm7/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_11bbb.dir/testCCompiler.c.obj

"D:/Program Files (x86)/GNU Tools Arm Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc.exe" -o CMakeFiles/cmTC_11bbb.dir/testCCompiler.c.obj -c D:/dev/industry/project/forte-incubation_1.11.0/arm7/CMakeFiles/CMakeTmp/testCCompiler.c

Linking C executable cmTC_11bbb

"D:/Program Files (x86)/GNU Tools Arm Embedded/9 2019-q4-major/bin/arm-none-eabi-gcc.exe" "CMakeFiles/cmTC_11bbb.dir/testCCompiler.c.obj" -o cmTC_11bbb

d:/program files (x86)/gnu tools arm embedded/9 2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/program files (x86)/gnu tools arm embedded/9 2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit':

exit.c:(.text.exit+0x2c): undefined reference to `_exit'

collect2.exe: error: ld returned 1 exit status
make.exe[1]: *** [CMakeFiles/cmTC_11bbb.dir/build.make:103: cmTC_11bbb] Error 1

make.exe[1]: Leaving directory 'D:/dev/industry/project/forte-incubation_1.11.0/arm7/CMakeFiles/CMakeTmp'

make.exe: *** [Makefile:138: cmTC_11bbb/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!
Re: Cmake with freertos [message #1822873 is a reply to message #1822870] Mon, 16 March 2020 05:21 Go to previous messageGo to next message
Eclipse UserFriend
Can you pleaes a printscreen of your Cmake configuration you're using.

Try running CMake as administrator
Re: Cmake with freertos [message #1822875 is a reply to message #1822873] Mon, 16 March 2020 05:44 Go to previous messageGo to next message
Eclipse UserFriend
The snapshots
  • Attachment: snap2.jpg
    (Size: 70.59KB, Downloaded 170 times)
  • Attachment: snap1.jpg
    (Size: 147.41KB, Downloaded 166 times)
Re: Cmake with freertos [message #1822878 is a reply to message #1822875] Mon, 16 March 2020 06:05 Go to previous messageGo to next message
Eclipse UserFriend
i didn't configure the cmake, it failed , can windows be ok to make cross compiling with arm gnu toolchain? I onced compiled forte with vxworks tool chain on windows

[Updated on: Mon, 16 March 2020 06:14] by Moderator

Re: Cmake with freertos [message #1822900 is a reply to message #1822878] Mon, 16 March 2020 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Seems i shoudn't use this toolchain, i changed to linux toolchain, same as the document
重新: 与自由人一起吃蛋糕 [message #1839536 is a reply to message #1822870] Tue, 23 March 2021 08:56 Go to previous message
Eclipse UserFriend
Hello, have you solved the problem of compilation error
Previous Topic:rt_events using
Next Topic:MQTT and blob massages
Goto Forum:
  


Current Time: Mon Jul 14 12:45:19 EDT 2025

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

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

Back to the top