Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248632 - cross-armeb-elf/gcc-4.1.2 - gcc stage2 fails
Summary: cross-armeb-elf/gcc-4.1.2 - gcc stage2 fails
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-24 13:38 UTC by Nabeel Sowan
Modified: 2008-12-04 10:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/cross-armeb-elf-info.log (cross-armeb-elf-info.log,12.87 KB, text/plain)
2008-11-24 13:40 UTC, Nabeel Sowan
Details
/var/log/portage/cross-armeb-elf-gcc-stage2.log (cross-armeb-elf-gcc-stage2.log,740.25 KB, text/plain)
2008-11-24 13:40 UTC, Nabeel Sowan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nabeel Sowan 2008-11-24 13:38:20 UTC
Command: crossdev -s4 -t armeb-elf --g 4.1.2 --without-headers
--------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   arm
 * Target System:         armeb-elf
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-4.1.2
 * libc:                  newlib-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/armeb-elf
 * PORTAGE_TMPDIR:        /var/tmp/cross/armeb-elf
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...     [ ok ]
 * Log: /var/log/portage/cross-armeb-elf-binutils.log
 * Emerging cross-binutils ...                                            [ ok ]
 * Log: /var/log/portage/cross-armeb-elf-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                          [ ok ]
 * Log: /var/log/portage/cross-armeb-elf-newlib.log
 * Emerging cross-newlib ...                                              [ ok ]
 * Log: /var/log/portage/cross-armeb-elf-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-armeb-elf-info.log
 * /var/log/portage/cross-armeb-elf-gcc-stage2.log

Warning and error output:
...
configure: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: stdlib.h: proceeding with the compiler's result
...
configure: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: stdio.h: proceeding with the compiler's result
...
configure: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: string.h: proceeding with the compiler's result
...
configure: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: stddef.h: proceeding with the compiler's result
...
configure: WARNING: math.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: math.h: proceeding with the compiler's result
...
configure: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: unistd.h: proceeding with the compiler's result
...
configure: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: signal.h: proceeding with the compiler's result
...
configure: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: time.h: proceeding with the compiler's result
...
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
...
configure: WARNING: sys/times.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/times.h: proceeding with the compiler's result
...
configure: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/resource.h: proceeding with the compiler's result
...
configure: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/types.h: proceeding with the compiler's result
...
configure: WARNING: sys/stat.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/stat.h: proceeding with the compiler's result
...
configure: WARNING: ieeefp.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: ieeefp.h: proceeding with the compiler's result
...
configure: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: float.h: proceeding with the compiler's result
...
checking for getrusage... configure: error: Link tests are not allowed after 
GCC_NO_EXECUTABLES.
no
...
checking complex.h usability... make[1]: *** [configure-target-libgfortran] Error 1
make[1]: *** Waiting for unfinished jobs....
yes
...
checking for extra compiler flags for building...
checking for thread model used by GCC... checking for stdint.h... single
configure: WARNING: No native atomic operations are provided for this platform.
configure: WARNING: They cannot be faked when thread support is disabled.
configure: WARNING: Thread-safety of certain classes is not guaranteed.
...
make[2]: Leaving directory `/var/tmp/cross/armeb-elf/portage/cross-armeb-elf/gcc-4.1.2/work/build/armeb-elf/libstdc++-v3/include'
make[1]: Leaving directory `/var/tmp/cross/armeb-elf/portage/cross-armeb-elf/gcc-4.1.2/work/build'
make: *** [all] Error 2
 *
 * ERROR: cross-armeb-elf/gcc-4.1.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4675:  Called toolchain_src_compile
 *             environment, line 5193:  Called gcc_src_compile
 *             environment, line 3007:  Called gcc_do_make
 *             environment, line 2830:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with all
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/cross/armeb-elf/portage/cross-armeb-elf/gcc-4.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/cross/armeb-elf/portage/cross-armeb-elf/gcc-4.1.2/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *

>>> Failed to emerge cross-armeb-elf/gcc-4.1.2, Log file:

>>>  '/var/tmp/cross/armeb-elf/portage/cross-armeb-elf/gcc-4.1.2/temp/build.log'

Steps to reproduce:
crossdev -s4 -t armeb-elf --g 4.1.2 --without-headers

Reproducible: Always

As a side note:
I can build arm-elf and various other toolchains with no errors on the same system, it only fails with armeb-elf.
Comment 1 Nabeel Sowan 2008-11-24 13:40:02 UTC
Created attachment 173211 [details]
/var/log/portage/cross-armeb-elf-info.log
Comment 2 Nabeel Sowan 2008-11-24 13:40:36 UTC
Created attachment 173213 [details]
/var/log/portage/cross-armeb-elf-gcc-stage2.log
Comment 3 Nabeel Sowan 2008-11-27 10:30:41 UTC
Same problem confirmed on an Intel Atom system (i686)
Logs available upon request.
Comment 4 SpanKY gentoo-dev 2008-12-01 23:01:08 UTC
configure fails for gfortran tests.  i dont think gfortran is going to work for elf targets.
Comment 5 Nabeel Sowan 2008-12-02 09:45:08 UTC
How is this issue avoided when building arm-elf toolchain?
Comment 6 Nabeel Sowan 2008-12-02 10:56:33 UTC
Since this clearly isn't a problem when building arm-elf toolchain, what is the motivation for WONTFIX?
Comment 7 SpanKY gentoo-dev 2008-12-02 22:37:44 UTC
we dont protect users from themselves.  if you tell crossdev to build gfortran, it's going to try.  so dont do it.
Comment 8 Nabeel Sowan 2008-12-02 23:12:25 UTC
(In reply to comment #7)
> we dont protect users from themselves.  if you tell crossdev to build gfortran,
> it's going to try.  so dont do it.

How can I not tell crossdev to build gfortran?
Comment 9 SpanKY gentoo-dev 2008-12-03 01:54:49 UTC
crossdev isnt magic.  it merely runs emerge.  so if you dont want gfortran in gcc, then do it like any other package.  features are controlled by USE flags.
Comment 10 Nabeel Sowan 2008-12-04 10:29:38 UTC
Apparently crossdev keeps deleting my 
cross-armeb-elf/gcc -fortran 
USE flag from 
/etc/portage/package.use
(it replaces them each time crossdev is run)

The solution was to put -fortran in make.conf