Gentoo Archives: gentoo-user

From: Raymond Lewis Rebbeck <dystopianray@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] QEMU compile problem
Date: Fri, 05 Jan 2007 04:22:37
Message-Id: 200701051448.02888.dystopianray@gmail.com
In Reply to: [gentoo-user] QEMU compile problem by Adam Carter
1 On Friday, 5 January 2007 10:50, Adam Carter wrote:
2 > gcc -g -Wl,-shared -o qemu-i386 elfload.o main.o syscall.o mmap.o
3 > signal.o path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o -lm
4 > /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/l
5 > d: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches
6 > non-TLS reference in libqemu.a(helper2.o)
7 > /lib/libc.so.6: could not read symbols: Bad value
8 > collect2: ld returned 1 exit status
9 > make[1]: *** [qemu-i386] Error 1
10 > make[1]: Leaving directory
11 > `/var/tmp/portage/qemu-user-0.8.0/work/qemu-0.8.0/i386-user'
12 > make: *** [all] Error 1
13 >
14 > !!! ERROR: app-emulation/qemu-user-0.8.0 failed.
15 > Call stack:
16 > ebuild.sh, line 1546: Called dyn_compile
17 > ebuild.sh, line 937: Called src_compile
18 > qemu-user-0.8.0.ebuild, line 73: Called die
19 >
20 > !!! make failed
21 > !!! If you need support, post the topmost build error, and the call
22 > stack if relevant.
23 >
24 >
25 > I tried rebuilding glibc, as /lib/libc.so.6 was mentioned, but it didnt
26 > help.
27 >
28 > Any ideas? Are there any other sparc emulators?
29 >
30 > Cheers,
31 > Adam
32
33 You need to compile QEMU with gcc 3.x, it will NOT work with gcc 4.x, the
34 ebuild should tell you this.
35
36 --
37 Raymond Lewis Rebbeck
38 --
39 gentoo-user@g.o mailing list