[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#391445: gcc-4.1: cross-compile broken for powerpc: Link tests are not allowed after GCC_NO_EXECUTABLES



Package: gcc-4.1
Version: 4.1.1ds1-13
Severity: serious
Justification: no longer builds from source

Building gcc as a cross compiler for powerpc target on i386 platform, 
gcc will not build.  The following components are in use.

binutils 2.17-2
libc6_2.3.6.ds1-4_powerpc.deb
libc6-dev_2.3.6.ds1-4_powerpc.deb
lib64gcc1_4.1.1-13_powerpc.deb
libc6-ppc64_2.3.6.ds1-4_powerpc.deb
libc6-dev-ppc64_2.3.6.ds1-4_powerpc.deb
linux-kernel-headers_2.6.17.10-3_powerpc.deb

The binutils package was built using the line
androcross:/usr/src/cross-toolchain/binutils-2.17# TARGET=powerpc-linux-gnu fakeroot debian/rules binary-cross

The libraries and kernel headers were converted using dpkg-cross
androcross:/usr/src/cross-toolchain# dpkg-cross -a powerpc -b l*.deb

All of the above were installed using dpkg -i

GCC was built using GCC_TARGET=powerpc, like this
androcross:/usr/src/cross-toolchain# cd gcc-4.1-4.1.1ds1/
androcross:/usr/src/cross-toolchain/gcc-4.1-4.1.1ds1# export GCC_TARGET=powerpc
androcross:/usr/src/cross-toolchain/gcc-4.1-4.1.1ds1# debian/rules control
androcross:/usr/src/cross-toolchain# dpkg-buildpackage -us -uc -rfakeroot -b > ../gcc.build 2>&1 || echo 'Build error'

The tail of the file with the resulting error was
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for library containing gettext... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[3]: *** [configure-target-libstdc++-v3] Error 1
make[3]: Leaving directory `/usr/src/cross-toolchain/gcc-4.1-4.1.1ds1/build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/cross-toolchain/gcc-4.1-4.1.1ds1/build' s=`cat status`; rm -f status; test $s -eq 0
make[1]: *** [stamps/05-build-stamp] Error 1
make[1]: Leaving directory `/usr/src/cross-toolchain/gcc-4.1-4.1.1ds1'
make: *** [stamps/05-build-stamp] Error 2

Additional information.  I backed up to gcc-4.1_4.1.1-5 and tried the 
same build using the same libraries and binutils, and it succeeded 
although there were lots of warnings about packages in the control file 
but not in the files list.  I have not tried that compiler yet.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-3-386
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)



Reply to: