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 05-01-2012, 11:04 AM
Matthias Klose
 
Default Bug#669904: gcc-4.7-source: GCC failed to compile for cross-compiler amd64/x86-64 and maybe other architectures

> 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

find out where this file gets installed instead. I think that nobody tried yet
to build a cross compiler targeting a biarch target. patches welcome.



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4F9FC355.1050001@debian.org">http://lists.debian.org/4F9FC355.1050001@debian.org
 
Old 05-02-2012, 07:28 AM
Adrian Ban
 
Default Bug#669904: gcc-4.7-source: GCC failed to compile for cross-compiler amd64/x86-64 and maybe other architectures

Hi,

I'm using this:
export DEB_CROSS_NO_BIARCH=yes

before starting to compile the GCC.

I've take a look found that libgcc_s.so.1 is in this folder:

debian/tmp/usr/x86_64-linux-gnu/lib64
not in
debian/tmp/usr/x86_64-linux-gnu/lib

Best regards,
Adrian

On 05/01/2012 02:04 PM, Matthias Klose wrote:

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

find out where this file gets installed instead. I think that nobody tried yet
to build a cross compiler targeting a biarch target. patches welcome.




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FA0E239.8070402@mantech.ro">http://lists.debian.org/4FA0E239.8070402@mantech.ro
 
Old 05-02-2012, 10:12 AM
Adrian Ban
 
Default Bug#669904: gcc-4.7-source: GCC failed to compile for cross-compiler amd64/x86-64 and maybe other architectures

For example if I'm trying to build the gcc-4.6 the error at the end is:

dh_installdeb -pgcc-4.6-x86-64-linux-gnu-base
dh_md5sums -pgcc-4.6-x86-64-linux-gnu-base
dh_builddeb -pgcc-4.6-x86-64-linux-gnu-base
dpkg-deb: building package `gcc-4.6-x86-64-linux-gnu-base' in
`../gcc-4.6-x86-64-linux-gnu-base_4.6.3-5_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/libmudflap0-4.6-dev-amd64-cross
dh_installdirs -plibmudflap0-4.6-dev-amd64-cross
usr/share/doc/gcc-4.6-x86-64-linux-gnu-base/mudflap
DH_COMPAT=2 dh_movefiles -plibmudflap0-4.6-dev-amd64-cross
usr/lib/gcc/x86_64-linux-gnu/4.6/include/mf-runtime.h

dh_movefiles: Compatibility levels before 5 are deprecated (level 2 in use)
dh_installdirs -plibmudflap0-4.6-dev-amd64-cross
usr/lib/gcc/x86_64-linux-gnu/4.6
DH_COMPAT=2 dh_movefiles -plibmudflap0-4.6-dev-amd64-cross
usr/lib/gcc/x86_64-linux-gnu/4.6/libmudflap*.a

dh_movefiles: Compatibility levels before 5 are deprecated (level 2 in use)
rm -f debian/tmp/usr/x86_64-linux-gnu/lib/libmudflap*.so
mv debian/tmp/usr/x86_64-linux-gnu/lib/libmudflap*.a
debian/libmudflap0-4.6-dev-amd64-cross/usr/lib/gcc/x86_64-linux-gnu/4.6/
mv: cannot stat `debian/tmp/usr/x86_64-linux-gnu/lib/libmudflap*.a': No
such file or directory

make[1]: *** [stamps/08-binary-stamp-libmudflapdev] Error 1
make[1]: Leaving directory `/home/adrian/devel/cross-compiler/gcc-4.6-4.6.3'
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2


And I found the files libmudflap*.a in the director lib64 not in lib.


On 05/02/2012 10:28 AM, Adrian Ban wrote:

Hi,

I'm using this:
export DEB_CROSS_NO_BIARCH=yes

before starting to compile the GCC.

I've take a look found that libgcc_s.so.1 is in this folder:

debian/tmp/usr/x86_64-linux-gnu/lib64
not in
debian/tmp/usr/x86_64-linux-gnu/lib

Best regards,
Adrian

On 05/01/2012 02:04 PM, Matthias Klose wrote:

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
find out where this file gets installed instead. I think that nobody
tried yet

to build a cross compiler targeting a biarch target. patches welcome.




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FA1088E.6000802@mantech.ro">http://lists.debian.org/4FA1088E.6000802@mantech.ro
 
Old 05-02-2012, 10:21 AM
Adrian Ban
 
Default Bug#669904: gcc-4.7-source: GCC failed to compile for cross-compiler amd64/x86-64 and maybe other architectures

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.

On 05/02/2012 01:12 PM, Adrian Ban wrote:

For example if I'm trying to build the gcc-4.6 the error at the end is:

dh_installdeb -pgcc-4.6-x86-64-linux-gnu-base
dh_md5sums -pgcc-4.6-x86-64-linux-gnu-base
dh_builddeb -pgcc-4.6-x86-64-linux-gnu-base
dpkg-deb: building package `gcc-4.6-x86-64-linux-gnu-base' in
`../gcc-4.6-x86-64-linux-gnu-base_4.6.3-5_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/libmudflap0-4.6-dev-amd64-cross
dh_installdirs -plibmudflap0-4.6-dev-amd64-cross
usr/share/doc/gcc-4.6-x86-64-linux-gnu-base/mudflap
DH_COMPAT=2 dh_movefiles -plibmudflap0-4.6-dev-amd64-cross
usr/lib/gcc/x86_64-linux-gnu/4.6/include/mf-runtime.h
dh_movefiles: Compatibility levels before 5 are deprecated (level 2 in
use)
dh_installdirs -plibmudflap0-4.6-dev-amd64-cross
usr/lib/gcc/x86_64-linux-gnu/4.6
DH_COMPAT=2 dh_movefiles -plibmudflap0-4.6-dev-amd64-cross
usr/lib/gcc/x86_64-linux-gnu/4.6/libmudflap*.a
dh_movefiles: Compatibility levels before 5 are deprecated (level 2 in
use)

rm -f debian/tmp/usr/x86_64-linux-gnu/lib/libmudflap*.so
mv debian/tmp/usr/x86_64-linux-gnu/lib/libmudflap*.a
debian/libmudflap0-4.6-dev-amd64-cross/usr/lib/gcc/x86_64-linux-gnu/4.6/
mv: cannot stat `debian/tmp/usr/x86_64-linux-gnu/lib/libmudflap*.a':
No such file or directory

make[1]: *** [stamps/08-binary-stamp-libmudflapdev] Error 1
make[1]: Leaving directory
`/home/adrian/devel/cross-compiler/gcc-4.6-4.6.3'

make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2


And I found the files libmudflap*.a in the director lib64 not in lib.


On 05/02/2012 10:28 AM, Adrian Ban wrote:

Hi,

I'm using this:
export DEB_CROSS_NO_BIARCH=yes

before starting to compile the GCC.

I've take a look found that libgcc_s.so.1 is in this folder:

debian/tmp/usr/x86_64-linux-gnu/lib64
not in
debian/tmp/usr/x86_64-linux-gnu/lib

Best regards,
Adrian

On 05/01/2012 02:04 PM, Matthias Klose wrote:

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
find out where this file gets installed instead. I think that nobody
tried yet

to build a cross compiler targeting a biarch target. patches welcome.




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FA10A94.1050000@mantech.ro">http://lists.debian.org/4FA10A94.1050000@mantech.ro
 
Old 05-02-2012, 10:32 AM
Matthias Klose
 
Default Bug#669904: gcc-4.7-source: GCC failed to compile for cross-compiler amd64/x86-64 and maybe other architectures

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?



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FA10D52.4030002@debian.org">http://lists.debian.org/4FA10D52.4030002@debian.org
 
Old 05-02-2012, 11:10 AM
Adrian Ban
 
Default 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_INDE PENDNET,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?




--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FA11634.1050308@mantech.ro">http://lists.debian.org/4FA11634.1050308@mantech.ro
 

Thread Tools




All times are GMT. The time now is 03:43 AM.

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