Summary: | cross-msp430-elf/gcc-5.1.0 fails in stage2 due to link tests failing w/newlib | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alex Orange <crazycasta> |
Component: | Current packages | Assignee: | Gentoo Crossdev team <crossdev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | radhermit |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 627914 | ||
Attachments: |
cross-msp430-elf-info.log
cross-msp430-elf-gcc-stage2.log.xz gcc-config.logs.tar.xz |
Description
Alex Orange
2015-05-15 02:41:35 UTC
Created attachment 403300 [details]
cross-msp430-elf-info.log
Created attachment 403302 [details]
cross-msp430-elf-gcc-stage2.log.xz
Created attachment 403304 [details]
gcc-config.logs.tar.xz
looks like newlib is broken: configure:3949: $? = 1 configure:3965: /var/tmp/portage/cross-msp430-elf/gcc-5.1.0/work/build/./gcc/xgcc -B/var/tmp/portage/cross-msp430-elf/gcc-5.1.0/work/build/./gcc/ -B/usr/msp430-elf/bin/ -B/usr/msp430-elf/lib/ -isystem /usr/msp430-elf/include -isystem /usr/msp430-elf/sys-include -o conftest -g -O2 conftest.c >&5 /usr/msp430-elf/lib/libcrt.a(crt_callexit.o): In function `.Loc.118.1': /var/tmp/portage/cross-msp430-elf/newlib-2.2.0.20150225/work/newlib-2.2.0.20150225/libgloss/msp430/crt0.S:118: undefined reference to `_exit' What I did to work around this build issue is to add EXTRA_ECONF="--enable-libstdcxx-time=no" to /etc/portage/env/cross-msp430-elf/gcc.conf the same workaround fixes it on cross-arm-none-eabi/gcc as well. This is now a problem on gcc-4.9.3 as well. Joakim's solution works for me. It seems like perhaps this is something that should be added to the cross-compilation setup. *** This bug has been marked as a duplicate of bug 589672 *** |