2022-08-11 12:36 AM
When I use cmake,
/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62: error: The C++ compiler "/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/arm-ostl-linux-gnueabi-g++" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/zxb/qt_proj/build-untitled1-Stm32mp1-Debug/CMakeFiles/CMakeTmp Run Build Command(s):/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/bin/ninja cmTC_1f845 && [1/2] Building CXX object CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o [2/2] Linking CXX executable cmTC_1f845 FAILED: cmTC_1f845 : && /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi/arm-ostl-linux-gnueabi-g++ --sysroot=/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o -o cmTC_1f845 && : /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/11.2.0/real-ld: error: cmTC_1f845 uses VFP register arguments, CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o does not /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/11.2.0/real-ld: failed to merge target specific data of file CMakeFiles/cmTC_1f845.dir/testCXXCompiler.cxx.o collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
I got this...How can I configure Qtcreator to work normally?
2022-09-01 2:47 AM
Hi @zxiao.4 ,
Not sure it will fix your problem but please update to 4.0.2 release and let us know if you still have issue
OpenSTLinux Distribution patch release V4.0.2 is available
Olivier
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.