I'm trying to build a cross-compiler for i486-linux-gnu for amd64
Debian and it fails. I know, I know, there is gcc -m32. But I need to
test cross-compiling and I don't have an arm cpu to test with.
I followed the instructions on http://emdebian.org/tools/crossdev.html
export GCC_TARGET=i386
debian/rules control
dpkg-buildpackage -b -rfakeroot
The problem is that there is no 64bit libc in /usr/i486-linux-gnu/lib/.
I linked /usr/i486-linux-gnu/lib64 -> ../lib64 so there is an
/usr/i486-linux-gnu/lib64/libc.so that it should use. But the command
line specifically says -B/usr/i486-linux-gnu/lib/.
It looks to me like building a cross-compiler is incompatible with
multilib.
Kernel: Linux 2.6.29.4-frosties-2 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.3 depends on:
ii binutils 2.19.51.20090805-1 The GNU assembler, linker and bina
ii cpp-4.3 4.3.4-1 The GNU C preprocessor
ii gcc-4.3-base 4.3.4-1 The GNU Compiler Collection (base
ii libc6 2.10.1-2 GNU C Library: Shared libraries
ii libgcc1 1:4.4.1-1 GCC support library
ii libgomp1 4.4.1-1 GCC OpenMP (GOMP) support library
Versions of packages gcc-4.3 recommends:
ii libc6-dev 2.10.1-2 GNU C Library: Development Librari
Versions of packages gcc-4.3 suggests:
ii gcc-4.3-doc 4.3.2.nf1-1 documentation for the GNU compiler
pn gcc-4.3-locales <none> (no description available)
pn gcc-4.3-multilib <none> (no description available)
pn libgcc1-dbg <none> (no description available)
pn libgomp1-dbg <none> (no description available)
pn libmudflap0-4.3-dev <none> (no description available)
pn libmudflap0-dbg <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
03-09-2010, 02:51 PM
Giel van Schijndel
Bug#554690: Building cross-compiler for multilib arch fails
On Fri, Nov 06, 2009 at 12:38:33AM +0100, Goswin von Brederlow wrote:
> I'm trying to build a cross-compiler for i486-linux-gnu for amd64
> Debian and it fails. I know, I know, there is gcc -m32. But I need to
> test cross-compiling and I don't have an arm cpu to test with.
>
> I followed the instructions on http://emdebian.org/tools/crossdev.html
>
> export GCC_TARGET=i386
> debian/rules control
> dpkg-buildpackage -b -rfakeroot
>
> The problem comes when building a 64bit libgcc:
I had the same problem. Further considering that I simply don't need to
use the i486-linux-gnu compiler to build binaries for x86_64-linux-gnu
(I can use the native compiler for that). Thus I disabled lib64 support
of the cross compiler by setting this environment variable:
> DEB_CROSS_NO_BIARCH=yes
--
Met vriendelijke groet,
With kind regards,
Giel van Schijndel
--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100309155142.GA31550@vps.mortis.eu">http://lists.debian.org/20100309155142.GA31550@vps.mortis.eu
03-09-2010, 11:33 PM
Giel van Schijndel
Bug#554690: Building cross-compiler for multilib arch fails
On Tue, Mar 09, 2010 at 04:51:42PM +0100, Giel van Schijndel wrote:
> On Fri, Nov 06, 2009 at 12:38:33AM +0100, Goswin von Brederlow wrote:
>> I'm trying to build a cross-compiler for i486-linux-gnu for amd64
>> Debian and it fails. I know, I know, there is gcc -m32. But I need to
>> test cross-compiling and I don't have an arm cpu to test with.
>>
>> I followed the instructions on http://emdebian.org/tools/crossdev.html
>>
>> export GCC_TARGET=i386
>> debian/rules control
>> dpkg-buildpackage -b -rfakeroot
>>
>> The problem comes when building a 64bit libgcc:
>
> I had the same problem. Further considering that I simply don't need
> to use the i486-linux-gnu compiler to build binaries for
> x86_64-linux-gnu (I can use the native compiler for that). Thus I
> disabled lib64 support of the cross compiler by setting this
> environment variable:
>> DEB_CROSS_NO_BIARCH=yes
PS I documented the build process a bit more thoroughly on my blog [1].