The one currently active in my project is gcc-arm-none-eabi-7-2017-q4-major. I tried different projects, every project uses the same toolchain file because they target the same processor. The same behaviour is observed on 2 different computers, both running Ubuntu. The compiler works correctly until I reach again point 4. Setting again the compiler that I want to use allow me to compile correctly. ![]() If at this point I edit again cmake-kits.json or I change the active compiler, the build directory is deleted and recreated from zero. This command is used for telling cmake while testing the compiler to not try to compile an executable but a static library. This error is avoided using in the toolchain file of the command (which means that the toolchain file is not used while reconfiguring cmake.) add a new file to CMakeLists.txt or edit the file somewayĪrm-none-eabi-gcc-7.2.1: error: unrecognized command line option '-rdynamic'.configure cmake-kits.json using the toolchain file.It looks like to me that cmake server mode does not receive the toolchain file after a reconfigure.īasically the steps I did for hitting the problem are: I can post the toolchain file on Monday but I use it from the command line without any problem. I do not have access until Monday to the documents. I already tried to change the values in the config file without success. I am sorry but I am not a English native speaker. Compiler/Toolchain: arm-none-eabi-gcc-7.2.1.That the cmake settings are not altered from execution to execution. The "keep true" flag is not causing errors or solving them. "C": "/home/andrea/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc-7.2.1"Ĭommenting and uncommenting the toolchain file let the program to re-parse the kit and it works for a while. "toolchainFile": "/home/andrea/workspace/CanDeckAlpine/arm_gcc.cmake", "CMAKE_TOOLCHAIN_FILE": "/home/andrea/workspace/CanDeckAlpine/arm_gcc.cmake" This usually happen switching kit but sometimes it just happen while iterating in the edit code => compile etc.įor fixing it I added twice the toolchain value and my cmake-kits.json looks like this: ninja: build stopped: subcommand failed. arm-none-eabi-gcc-7.2.1: error: unrecognized command line option '-rdynamic' : & /home/andrea/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc-7.2.1 -rdynamic CMakeFiles/cmTC_acd83.dir/testCCompiler.c.obj -o cmTC_acd83 & : Building C object CMakeFiles/cmTC_acd83.dir/testCCompiler.c.obj ![]() Run Build Command:"/usr/bin/ninja" "cmTC_acd83" If I edit the cmake-kits.json and alter it a while a new cmake running is correct. The host platform suffix of the binutils in the standalone toolchain.SET(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)Īs defined in the documentation and is used during cross compilation in order to avoid linking errors with libraries not present before cmake configuration.įrom Code I see often an error related to the fact that -rdynamic is not available while compiling a test program. The absolute path prefix to the binutils in the standalone toolchain. The Android ABI detected from the standalone toolchain. The Android API level detected from the standalone toolchain. The following variables will be computed and provided automatically: CMAKE_SYSTEM_VERSION When the standalone toolchain targets ARM v7, optionally set thisto ON To target 32-bit ARM instead of 16-bit Thumb. When the standalone toolchain targets ARM, optionally set this to ON ![]() If not specified, a default for this variable will be chosenĪs specified above. Set( CMAKE_SYSTEM_NAME Linux ) set( CMAKE_SYSTEM_PROCESSOR arm ) set( CMAKE_SYSROOT /home/devel/rasp-pi-rootfs ) set( CMAKE_STAGING_PREFIX /home/devel/stage ) set( tools /home/devel/gcc-4.7-linaro-rpi-gnueabihf ) set( CMAKE_C_COMPILER $/sysroot directory
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |