| Summary: | cross-arm-none-eabi/gcc-4.9.3: stage2 fails on armv7a-hardfloat-gnueabi host due to host/target flags bleeding between | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marco Clocchiatti <ziapannocchia> |
| Component: | [OLD] Development | Assignee: | Embedded Gentoo Team <embedded> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
gcc-config.logs.tar.xz
cross-arm-none-eabi-info.log cross-arm-none-eabi-gcc-stage2.log.xz gcc-config.logs.tar.xz all logs |
||
|
Description
Marco Clocchiatti
2015-08-02 18:44:43 UTC
Created attachment 408152 [details]
gcc-config.logs.tar.xz
Created attachment 408246 [details]
cross-arm-none-eabi-info.log
sorry. added missing logs.
Created attachment 408248 [details]
cross-arm-none-eabi-gcc-stage2.log.xz
Created attachment 408250 [details]
gcc-config.logs.tar.xz
Try running commands with LC_ALL=C to get outputs in english and also provide emerge --info output Created attachment 408420 [details]
all logs
emerge --info + all logs with LC_ALL=C
you may want to retry with CFLAGS and CXXFLAGS unset. if that does not apply to your scenario, wait for toolchain. there's a mismatch between the float selection: configure:3898: /var/tmp/portage/cross-arm-none-eabi/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-arm-none-eabi/gcc-4.9.3/work/build/./gcc/ -B/usr/arm-none-eabi/bin/ -B/usr/arm-none-eabi/lib/ -isystem /usr/arm-none-eabi/include -isystem /usr/arm-none-eabi/sys-include -o conftest -g -O2 -pipe conftest.c >&5 /usr/libexec/gcc/arm-none-eabi/ld: error: /usr/arm-none-eabi/lib/libg.a(lib_a-atexit.o) uses VFP register arguments, conftest does not /usr/libexec/gcc/arm-none-eabi/ld: failed to merge target specific data of file /usr/arm-none-eabi/lib/libg.a(lib_a-atexit.o) most likely the CFLAGS from your host are leaking through. normally that's not an issue as people are using flags that are incompatible. sorry, these are cflags in my etc/portage:
cloc3Udoo ~ # grep FLAG /usr/arm-none-eabi/etc/portage/make.conf
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
and this are CFLAGS in cross-arm-none-eabi-gcc-stage2.log
---
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/cross-arm-none-eabi/gcc-4.9.3/work/gcc-4.9.3 ...
* strip-flags: CFLAGS: changed '-O2 -march=armv7-a -pipe -mfpu=vfpv3-d16 -mfloat-abi=hard -mtls-dialect=gnu' to '-O2 -march=armv7-a -pipe -mfpu=vfpv3-d16 -mfloat-abi=hard'
* strip-flags: CXXFLAGS: changed '-O2 -march=armv7-a -pipe -mfpu=vfpv3-d16 -mfloat-abi=hard -mtls-dialect=gnu' to '-O2 -march=armv7-a -pipe -mfpu=vfpv3-d16 -mfloat-abi=hard'
* CFLAGS="-O2 -pipe"
* CXXFLAGS=""
* LDFLAGS="-Wl,-O1 -Wl,--as-needed"
* PREFIX: /usr
* BINPATH: /usr/armv7a-hardfloat-linux-gnueabi/arm-none-eabi/gcc-bin/4.9.3
* LIBPATH: /usr/lib/gcc/arm-none-eabi/4.9.3
* DATAPATH: /usr/share/gcc-data/arm-none-eabi/4.9.3
* STDCXX_INCDIR: /usr/lib/gcc/arm-none-eabi/4.9.3/include/g++-v4
---
it seems emerge overwrite CFLAGS.
where should I set them to build gcc?
We had a few CFLAGS/CXXFLAGS fixes a while ago. Please file a new bug if it's till happens. |