[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv3] tests/tcg: fix build
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCHv3] tests/tcg: fix build |
Date: |
Tue, 16 Oct 2012 19:47:13 +0100 |
On 16 October 2012 19:09, Catalin Patulea <address@hidden> wrote:
> On Tue, Oct 16, 2012 at 8:50 AM, Peter Maydell <address@hidden> wrote:
>> I can't work out how to get a working i386 compiler on my 64-bit Ubuntu
>> system
>> but I think that's an Ubuntu issue :-) Tests run ok on a 32 bit native box
>> (there are some failures, as you say, but I'm unsurprised given how long it's
>> been since we ran them last.)
> I'm running x86_64 precise with CC_I386="gcc -m32" (autodetected by
> configure) - does that not work for you? Is there anything wrong with
> building 32-bit binaries this way?
I think that should work but my setup is broken somehow: it can't
find the 32 bit libgcc (and in passing finds and discards the 64 bit
version):
cam-vm-266:precise:tcg$ make linux-test
ccache gcc -m32 -Wall -O2 -g -fno-strict-aliasing -o linux-test
linux-test.c -lm
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc_s.so when searching for
-lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [linux-test] Error 1
I have a feeling that precise's mostly-working multiarch support
may be the issue...
-- PMM
- [Qemu-devel] [PATCHv3] tests/tcg: fix build, Catalin Patulea, 2012/10/16
- Re: [Qemu-devel] [PATCHv3] tests/tcg: fix build, Peter Maydell, 2012/10/16
- [Qemu-devel] [PATCHv4] tests/tcg: fix build, Catalin Patulea, 2012/10/16
- [Qemu-devel] [PATCHv5] tests/tcg: fix build, Catalin Patulea, 2012/10/16
- Re: [Qemu-devel] [PATCHv5] tests/tcg: fix build, Peter Maydell, 2012/10/16
- Re: [Qemu-devel] [PATCHv5] tests/tcg: fix build, Aurelien Jarno, 2012/10/19