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

Bug#669904: gcc-4.7-source: GCC failed to compile for cross-compiler amd64/x86-64 and maybe other architectures



The system on which I've tried to compile

root@MyDebian:/home/adrian/devel/cross-compiler/gcc-4.6-4.6.3/debian/rules.d# uname -a Linux MyDebian 3.3.0-1-686-pae #1 SMP Sun Apr 29 05:37:54 EEST 2012 i686 GNU/Linux

I'm using those values to compile cross-compiler GCC:

unset ARCH          # make sure it's not exported
export ARCH=amd64 # set to the value we want to use
export cARCH=i386   # set current arch
export DEBIAN_KERNEL_JOBS=$(echo `grep "Processor" /proc/cpuinfo | wc -l`*2 | bc)

#GCCVER=4.7
#GCCSUBVER=4.7.0
#GCCPATCH=4
GCCVER=4.6
GCCSUBVER=4.6.3
GCCPATCH=5
BINUTILSVER=2.22

# Build and install GCC
cd gcc-${GCCVER}-${GCCSUBVER}
export GCC_TARGET=$ARCH
export DEB_CROSS_INDEPENDENT=yes
export WITHOUT_LANG=java,fortran,pascal,obj,obj-c++,ada,treelang
export DEB_CROSS_NO_BIARCH=yes
export USE_NJOBS=$(echo $(cat /proc/cpuinfo | grep ^processor | wc -l)*2 | bc) #export DEBUILD_PRESERVE_ENVVARS=GCC_TARGET,DEB_CROSS_INDEPENDNET,WITHOUT_LANG,DEB_CROSS_NO_BIARCH,USE_NJOBS

chmod ugo+x debian/rules
debian/rules control
dpkg-buildpackage -us -uc -b -rfakeroot
cd ..

#sudo dpkg -i *-VERSION-$ARCH-linux-gnu*.deb *-$ARCH-cross_VERSION*.deb


From the gcc compilation:

checking build system type... i486-pc-linux-gnu
checking host system type... i486-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for i486-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out

Hope those info helps.

Best regards

On 05/02/2012 01:32 PM, Matthias Klose wrote:
On 02.05.2012 12:21, Adrian Ban wrote:
My guess is that the problem is not in the GCC package, but somewhere in the
debian/rules.d/ files.
But I'm not familiar with the make files.
guesses don't help.

you never said something about the configuration options, e.g. about host, build
and target. to not get confused, maybe target a powerpc biarch compiler first?



Reply to: