Raspberry pico, gcc-arm, vfp error
by lakis70 from LinuxQuestions.org on (#6FJB8)
slackware 15 32-bit
I have compile arm-binutils, gcc-arm and newlib. At first i cant make the examples because g++ is not included in package, so i change the slackbuild options to
Code: --enable-languages="c c++" adding c++
--with-headers=/usr/arm-none-eabi/include
was #/usr/include/newlib/libc/includeI made again arm-gcc, remove the old package and install the new.
delete sdk and examples and download them again.
Trying to make the examples, configuring the sdk I got message gcc is broken bla..bla..
pico-sdk-master/pico-examples/build/CMakeFiles/CMakeTmp/testCCompiler.c:11:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI
11 | { (void)argv; return argc-1;}
| ^
If i change theirs pico_arm_gcc.cmake adding -mfloat-abi=softfp i bypass it.
Code:set(ARM_TOOLCHAIN_COMMON_FLAGS "-mfloat-abi=softfp -mcpu=cortex-m0plus -mthumb")Now i can make theirs sdk object files, also make theirs example blink.elf but cannot merge them because of vfp error.
read_vsys.elf uses VFP register arguments, but bootrom.c.obj does not for eg.
Any ideas what to do?
I have compile arm-binutils, gcc-arm and newlib. At first i cant make the examples because g++ is not included in package, so i change the slackbuild options to
Code: --enable-languages="c c++" adding c++
--with-headers=/usr/arm-none-eabi/include
was #/usr/include/newlib/libc/includeI made again arm-gcc, remove the old package and install the new.
delete sdk and examples and download them again.
Trying to make the examples, configuring the sdk I got message gcc is broken bla..bla..
pico-sdk-master/pico-examples/build/CMakeFiles/CMakeTmp/testCCompiler.c:11:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI
11 | { (void)argv; return argc-1;}
| ^
If i change theirs pico_arm_gcc.cmake adding -mfloat-abi=softfp i bypass it.
Code:set(ARM_TOOLCHAIN_COMMON_FLAGS "-mfloat-abi=softfp -mcpu=cortex-m0plus -mthumb")Now i can make theirs sdk object files, also make theirs example blink.elf but cannot merge them because of vfp error.
read_vsys.elf uses VFP register arguments, but bootrom.c.obj does not for eg.
Any ideas what to do?