Hello, We are trying to use the Xilinx-standalone DISTRO to ultimately compile a baremetal RTOS for the R5 cores in our UltraScale processor.
In local.conf I've got: DEFAULTTUNE = "cortexr5" The MACHINE we are using is basically just this: require conf/machine/zynq-generic.conf We are getting this error (ultimately from CMake when it tries to compile a simple C program): /home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot-native/usr/bin/arm-xilinx-eabi/../../libexec/arm-xilinx-eabi/gcc/arm-xilinx-eabi/11.2.0/ld: /home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot/usr/lib/libg.a(lib_a-exit.o): in function `exit': /usr/src/debug/newlib/4.1.0-r0/newlib-4.1.0/newlib/libc/stdlib/exit.c:64: undefined reference to `_exit' collect2: error: ld returned 1 exit status This is the command that CMake is trying (I have removed duplicate arguments, because for some reason CMake duplicates flags about 3 times): /home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot-native/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-gcc \ -mcpu=cortex-r5 \ -march=armv7-r+idiv \ -mfpu=vfpv3-d16 \ -mfloat-abi=softfp \ -DARMR5 \ --sysroot=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot \ -O2 \ -pipe \ -g \ -feliminate-unused-debug-types \ -fmacro-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0=/usr/src/debug/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0 \ -fdebug-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0=/usr/src/debug/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0 \ -fdebug-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot= \ -fdebug-prefix-map=/home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot-native= \ -fdiagnostics-color \ -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed \ CMakeFiles/cmTC_da2e9.dir/testCCompiler.c.obj -o cmTC_da2e9 I should note, CMake also seems rather confused about the compiler itself: | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_configure | debug trycompile on | -- The C compiler identification is GNU 11.2.0 | -- The CXX compiler identification is GNU 11.2.0 | System is unknown to cmake, create: | Platform/eabi to use this system, please post your config file on discourse.cmake.org so it can be added to cmake | -- Detecting C compiler ABI info | System is unknown to cmake, create: | Platform/eabi to use this system, please post your config file on discourse.cmake.org so it can be added to cmake | -- Detecting C compiler ABI info - failed | -- Check for working C compiler: /home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot-native/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-gcc | System is unknown to cmake, create: | Platform/eabi 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: /home/laplante/next_yocto/honister/build/tmp/work/cortexr5-vfpv3d16-xilinx-eabi/exceptions/1.0+gitAUTOINC+6493dcdbb0-r0/recipe-sysroot-native/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-gcc - broken Can you please provide some guidance? Thanks, Chris
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5088): https://lists.yoctoproject.org/g/meta-xilinx/message/5088 Mute This Topic: https://lists.yoctoproject.org/mt/95098230/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
