crossdev fails to compile cross-armv-none-eabi/gcc-4.9.3 stage2 on armv7a-hardfloat-linux-gnueabi system (udoo). Reproducible: Always Steps to Reproduce: 1. crossdev -t arm-none-eabi -s4 -S Actual Results: $ crossdev -t arm-none-eabi -s4 -S gawk: riga com.:8: (FILENAME=- FNR=1) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=5) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=10) attenzione: gensub: il terzo argomento `' trattato come 1 -------------------------------------------------- * crossdev version: 20150716 * Host Portage ARCH: arm * Target Portage ARCH: arm * Target System: arm-none-eabi * Stage: 4 (C/C++ compiler) * ABIs: default * binutils: binutils-[stable] * gcc: gcc-[stable] * libc: newlib-[stable] * CROSSDEV_OVERLAY: /usr/local/portage * PORT_LOGDIR: /var/log/portage * PORTAGE_CONFIGROOT: * Portage flags: _ - ~ - _ - ~ - _ - ~ - _ - ~ - * leaving sys-devel/binutils in /usr/local/portage * leaving sys-devel/gcc in /usr/local/portage * leaving sys-libs/newlib in /usr/local/portage * leaving sys-devel/gdb in /usr/local/portage * leaving metadata/layout.conf alone in /usr/local/portage _ - ~ - _ - ~ - _ - ~ - _ - ~ - gawk: riga com.:8: (FILENAME=- FNR=1) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=5) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=10) attenzione: gensub: il terzo argomento `' trattato come 1 * Log: /var/log/portage/cross-arm-none-eabi-binutils.log * Emerging cross-binutils ... [ ok ] * Log: /var/log/portage/cross-arm-none-eabi-gcc-stage1.log * Emerging cross-gcc-stage1 ... [ ok ] * Log: /var/log/portage/cross-arm-none-eabi-newlib.log * Emerging cross-newlib ... [ ok ] * Log: /var/log/portage/cross-arm-none-eabi-gcc-stage2.log * Emerging cross-gcc-stage2 ... * gcc failed :( * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-arm-none-eabi-info.log * /var/log/portage/cross-arm-none-eabi-gcc-stage2.log.xz * /var/tmp/portage/cross-arm-none-eabi/gcc*/temp/gcc-config.logs.tar.xz Expected Results: it should build fine.
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.