On 16 October 2012 19:09, Catalin Patulea <catal...@google.com> wrote: > On Tue, Oct 16, 2012 at 8:50 AM, Peter Maydell <peter.mayd...@linaro.org> > 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