The arm-none-eabi packages for Fedora 20 appear to be missing the libnosys library. This is the error I'm getting while trying to build the libopencm3 examples: arm-none-eabi-gcc --static -nostartfiles -L/home/phil/src/other/stm32/libopencm3-examples/libopencm3/lib -T../lm3s3748-evb.ld -Wl,-Map=miniblink.map -Wl,--gc-sections -Wl,--print-gc-sections -mthumb -mcpu=cortex-m3 -msoft-float miniblink.o -lopencm3_lm3s -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group -o miniblink.elf /usr/lib/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: cannot find -lnosys This was using version arm-none-eabi-newlib-2.1.0-2.fc20.noarch from updates-testing on Fedora 20 x86_32. The gcc package is arm-none-eabi-gcc-cs-2013.11.24-2.fc20.i686 also from updates-testing.
Created attachment 867227 [details] Fix and enable libgloss build This is brought about because newlib is configured with --disable-libgloss. libgloss contains libnosys. Unfortunately, removing the --disable-libgloss option causes some build problems. There's a patch that was submitted upstream (https://sourceware.org/ml/newlib/2014/msg00001.html) that fixes this build problem. I've attached a patch to the fedora package that resolves the problem for me.
The patch was discussed in the mailing list to be a wrong approach. I've located and backported the correct fix. Thanks anyway. Please test if it fixes the problem for you.
arm-none-eabi-newlib-2.1.0-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/arm-none-eabi-newlib-2.1.0-3.fc20
Package arm-none-eabi-newlib-2.1.0-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing arm-none-eabi-newlib-2.1.0-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3076/arm-none-eabi-newlib-2.1.0-3.fc20 then log in and leave karma (feedback).
Thanks for looking at this. With the update applied I'm now getting some new errors. I'm not familiar enough GCC or libopencm3 to say what these mean. /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: error: adc-dac-printf.elf uses VFP register arguments, /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/lib/libc.a(lib_a-errno.o) does not /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/lib/libc.a(lib_a-errno.o) /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: error: adc-dac-printf.elf uses VFP register arguments, /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/lib/libc.a(lib_a-impure.o) does not /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/lib/libc.a(lib_a-impure.o) /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/bin/ld: error: adc-dac-printf.elf uses VFP register arguments, /usr/lib64/gcc/arm-none-eabi/4.8.1/../../../../arm-none-eabi/lib/libc.a(lib_a-printf.o) does not ... and many more.
arm-none-eabi-newlib-2.1.0-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.