Skip to contentSkip to conversation

Problem compiling Qemu related to TLS (?)

Qemu-devel Ismail Donmez 2 participants 3 messages Feb 18, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,

I am getting this error with qemu 0.7 and 0.8 :

make[1]: Entering directory `/home/cartman/qemu-0.8.0/i386-user' gcc -g -Wl,-shared -o qemu-i386 elfload.o main.o syscall.o mmap.o signal.o
path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o -lm
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in libqemu.a(helper2.o)
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/home/cartman/qemu-0.8.0/i386-user'
make: *** [all] Error 1

Googling a bit shows that this might be a bug in binutils but my binutils is recent enough :

GNU assembler version 2.16.1 (i686-pc-linux-gnu) using BFD version 2.16.1

Any ideas what might be wrong?

Regards,
ismail

#1 lore raw
Quoted 10 lines · Ismail Donmez

make[1]: Entering directory `/home/cartman/qemu-0.8.0/i386-user'
gcc -g -Wl,-shared -o qemu-i386 elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o -lm
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in libqemu.a(helper2.o) /lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/home/cartman/qemu-0.8.0/i386-user'
make: *** [all] Error 1

Any ideas what might be wrong?

i fixed this some time ago, but somehow forgot to submit the patch... Attached.

target-i386/helper2.c +1 -0
@@ -24,6 +24,7 @@
 #include <inttypes.h>
 #include <signal.h>
 #include <assert.h>
+#include <errno.h>
 
 #include "cpu.h"
 #include "exec-all.h"
#2 lore raw

Cumartesi 18 Şubat 2006 23:59 tarihinde şunları yazmıştınız:

Quoted 12 lines
Quoted 11 lines · Ismail Donmez

make[1]: Entering directory `/home/cartman/qemu-0.8.0/i386-user' gcc -g -Wl,-shared -o qemu-i386 elfload.o main.o syscall.o mmap.o
signal.o path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o -lm
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in libqemu.a(helper2.o) /lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/home/cartman/qemu-0.8.0/i386-user'
make: *** [all] Error 1

Quoted 4 lines
Quoted 1 line

Any ideas what might be wrong?

i fixed this some time ago, but somehow forgot to submit the patch... Attached.

Thank you! This fixed the problem.

Regards,
ismail