Bug 1058722 - arm-none-eabi-newlib is missing libnosys
Summary: arm-none-eabi-newlib is missing libnosys
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: arm-none-eabi-newlib
Version: 20
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-28 12:30 UTC by Philip Heron
Modified: 2014-04-02 09:05 UTC (History)
2 users (show)

Fixed In Version: arm-none-eabi-newlib-2.1.0-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-02 09:05:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix and enable libgloss build (3.10 KB, patch)
2014-02-25 02:44 UTC, Rob Gilton
no flags Details | Diff

Description Philip Heron 2014-01-28 12:30:18 UTC
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.

Comment 1 Rob Gilton 2014-02-25 02:44:18 UTC
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.

Comment 2 Michal Hlavinka 2014-02-25 16:48:55 UTC
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.

Comment 3 Fedora Update System 2014-02-25 21:05:37 UTC
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

Comment 4 Fedora Update System 2014-02-26 13:46:24 UTC
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).

Comment 5 Philip Heron 2014-03-02 11:51:09 UTC
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.

Comment 6 Fedora Update System 2014-04-02 09:05:02 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.