FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 04-21-2012, 07:58 PM
Adrian Ban
 
Default Bug#669904: gcc-4.7-source: GCC failed to compile for cross-compiler amd64/x86-64 and maybe other architectures

Package: gcc-4.7-source
Version: 4.7.0-3
Severity: normal

Hi,

I'm trying to build a cross-compiler but it fails and the end. I've tried on 2
separate machines, both with i386 Debian Wheezy installed.

Im using this script (also I've tried to put only GCC_TARGET and
DEB_CROSS_NO_BIARCH):

# 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_INDE PENDNET,WITHOUT_LANG,DEB_CROSS_NO_BIARCH,USE_NJOBS

debian/rules control
#dpkg-buildpackage -us -uc -rfakeroot -b > ../gcc.build 2>&1 || echo 'Build
error'
dpkg-buildpackage -us -uc -b -rfakeroot
cd ..


The output:

libtool: install: warning: remember to run `libtool --finish /usr/x86_64-linux-
gnu/lib/../lib64'
test -z "/usr/share/info" || /bin/mkdir -p "/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/debian/tmp/usr/share/info"
/usr/bin/install -c -m 644 ./libitm.info '/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/debian/tmp/usr/share/info'
install-info --info-dir='/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/debian/tmp/usr/share/info' '/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/debian/tmp/usr/share/info/libitm.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
make[6]: Leaving directory `/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/build/x86_64-linux-gnu/libitm'
make[5]: Leaving directory `/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/build/x86_64-linux-gnu/libitm'
make[4]: Leaving directory `/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/build/x86_64-linux-gnu/libitm'
make[3]: Leaving directory `/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/build'
make[2]: Leaving directory `/home/adrian/devel/cross-
compiler/gcc-4.7-4.7.0/build'
: # FIXME: the libstdc++ gdb.py file is installed with a wrong name
for i in $(find debian/tmp/usr -name libstdc++_pic.a-gdb.py); do
[ -f $i ] || continue;
d=$(dirname $i);
b=$(basename $i);
t=$(cd $d; echo libstdc++.so.*.*.*)-gdb.py;
mv $i $d/$t;
done
: # remove rpath settings from binaries and shared libs
for i in $(chrpath -k debian/tmp/usr/bin/* debian/tmp/usr/lib*/lib*.so.*
debian/tmp/usr/lib/i386-linux-gnu/lib*.so.*
debian/tmp/usr/lib*/gcj-4.7*/lib*.so.* 2>/dev/null | awk -F: '/RPATH=/ {print
$1}');
do
case "$i" in ecj1|*gij-*|*libjawt*|*libjvm*) continue; esac;
[ -h $i ] && continue;
chrpath --delete $i;
echo "removed RPATH: $i";
done
: # remove '*.la' and '*.lai' files, not shipped in any package.
find debian/tmp -name '*.la' -o -name '*.lai' | xargs -r rm -f
rm -f debian/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/adalib/lib*.so*
for i in gcc gcov; do
I=`echo $i | tr a-z A-Z`;
sed -e "s/@NAME@/$I-4.7/g" -e "s/@name@/$i-4.7/g"
debian/dummy-man.1 > debian/tmp/usr/share/man/man1/$i.1;
done
chmod 755 debian/dh_*
touch stamps/07-install-stamp
make[1]: Leaving directory `/home/adrian/devel/cross-compiler/gcc-4.7-4.7.0'
/usr/bin/make -f debian/rules2 binary
make[1]: Entering directory `/home/adrian/devel/cross-compiler/gcc-4.7-4.7.0'
dh_testdir
dh_testroot
rm -rf debian/gcc-4.7-x86-64-linux-gnu-base
dh_installdirs -pgcc-4.7-x86-64-linux-gnu-base
usr/lib/gcc/x86_64-linux-gnu/4.7
ln -sf 4.7
debian/gcc-4.7-x86-64-linux-gnu-base/usr/lib/gcc/x86_64-linux-
gnu/4.7.0
for link in ; do
ln -sf 4.7
debian/gcc-4.7-x86-64-linux-gnu-base/$(dirname usr/lib/gcc/x86_64
-linux-gnu/4.7)/$link;
done
dh_installdocs -pgcc-4.7-x86-64-linux-gnu-base debian/README.Debian.amd64
dh_installchangelogs -pgcc-4.7-x86-64-linux-gnu-base
dh_compress -pgcc-4.7-x86-64-linux-gnu-base
dh_fixperms -pgcc-4.7-x86-64-linux-gnu-base
dh_gencontrol -pgcc-4.7-x86-64-linux-gnu-base -- -v4.7.0-3
'-Vgcc:Version=4.7.0-3' '-Vgcc:EpochVersion=1:4.7.0-3' '-Vgcc:SoftVersion=4.7'
'-Vgdc:Version=' '-Vgcj:Version=4.7.0-3' '-Vgcj:SoftVersion=4.7'
'-Vgcj:BaseVersion=4.7' '-Vgnat:Version=4.7.0-3' '-Vbinutils:Version=2.21.1'
'-Vdep:libgcc=libgcc1-amd64-cross (>= 1:4.7.0-3)' '-Vdep:libgccbiarch='
'-Vdep:libc=libc6 (>= 2.11)' '-Vdep:libcdev=libc6-dev-amd64-cross (>= 2.13-5)'
'-Vdep:libcbiarch=' '-Vdep:libcbiarchdev=' '-Vdep:libunwinddev='
'-Vdep:libcxxbiarch=' '-Vdep:libcxxbiarchdbg=' '-Vdep:libgobiarch='
'-Vdep:libgobiarchdbg=' '-Vdep:libgnat=' '-Vdep:ecj=' '-Vdep:libcloog='
'-Vgcc:multilib=gcc-4.7-multilib-x86-64-linux-gnu'
'-Vgxx:multilib=g++-4.7-multilib-x86-64-linux-gnu'
'-Vgobjc:multilib=gobjc-4.7-multilib-x86-64-linux-gnu'
'-Vgobjcxx:multilib=gobjc++-4.7-multilib-x86-64-linux-gnu'
'-Vgfortran:multilib=gfortran-4.7-multilib-x86-64-linux-gnu' '-Vdep:gold
=binutils-gold (>= 2.21.1)' '-Vdep:libgomp=libgomp1-amd64-cross (>=
${gcc:Version})' '-Vdep:libitm=libitm1-amd64-cross (>= ${gcc:Version})'
'-Vdep:libqmath=libquadmath0-amd64-cross (>= ${gcc:Version})'
'-Vdep:gcj=gcc-4.7 (>= 4.7)' '-Vmultiarch:breaks=gcc-4.1, gcc-4.3 (<< 4.3.6-1),
gcc-4.4 (<< 4.4.6-4), gcc-4.5 (<< 4.5.3-2)'
dh_installdeb -pgcc-4.7-x86-64-linux-gnu-base
dh_md5sums -pgcc-4.7-x86-64-linux-gnu-base
dh_builddeb -pgcc-4.7-x86-64-linux-gnu-base
dpkg-deb: building package `gcc-4.7-x86-64-linux-gnu-base' in
`../gcc-4.7-x86-64-linux-gnu-base_4.7.0-3_i386.deb'.
touch stamps/08-binary-stamp-base
dh_testdir
dh_testroot
mv stamps/07-install-stamp stamps/07-install-stamp-tmp
rm -rf debian/libgcc1-amd64-cross debian/libgcc1-dbg-amd64-cross
dh_installdirs -plibgcc1-amd64-cross usr/share/doc/libgcc1-amd64-cross
usr/x86_64-linux-gnu/lib
mv debian/tmp/usr/x86_64-linux-gnu/lib/libgcc_s.so.1
debian/libgcc1-amd64-cross/usr/x86_64-linux-gnu/lib/.
mv: cannot stat `debian/tmp/usr/x86_64-linux-gnu/lib/libgcc_s.so.1': No such
file or directory
make[1]: *** [stamps/08-binary-stamp-libgcc] Error 1
make[1]: Leaving directory `/home/adrian/devel/cross-compiler/gcc-4.7-4.7.0'
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2



-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-1, LC_CTYPE=en_US.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120421195826.8737.6781.reportbug@MyDebian.ro.eu. ericsson.se">http://lists.debian.org/20120421195826.8737.6781.reportbug@MyDebian.ro.eu. ericsson.se
 

Thread Tools




All times are GMT. The time now is 04:00 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org