qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Problems compiling qemu-snapshot
@ 2005-06-01 18:29 bent jakobsen
  2005-06-01 20:38 ` Grzegorz Kulewski
  0 siblings, 1 reply; 3+ messages in thread
From: bent jakobsen @ 2005-06-01 18:29 UTC (permalink / raw)
  To: qemu-devel

Hi,

When I try to compile the lastest qemu-snapshot (2005-05-31_23) I get
the following error:

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


Has anyone seen this before ?  Or am I the only one who has seen this ?

I think this started to happen when I updated the Linux kernel (to
2.6.11.11), or perhaps when I updated to glibc version 2.3.5

Best regards

Bent Jakobsen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Problems compiling qemu-snapshot
  2005-06-01 18:29 [Qemu-devel] Problems compiling qemu-snapshot bent jakobsen
@ 2005-06-01 20:38 ` Grzegorz Kulewski
  2005-06-02  3:14   ` bent jakobsen
  0 siblings, 1 reply; 3+ messages in thread
From: Grzegorz Kulewski @ 2005-06-01 20:38 UTC (permalink / raw)
  To: bent jakobsen, qemu-devel

On Wed, 1 Jun 2005, bent jakobsen wrote:

> Hi,
>
> When I try to compile the lastest qemu-snapshot (2005-05-31_23) I get
> the following error:
>
> 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
>
>
> Has anyone seen this before ?  Or am I the only one who has seen this ?
>
> I think this started to happen when I updated the Linux kernel (to
> 2.6.11.11), or perhaps when I updated to glibc version 2.3.5

Probably glibc...

TLS = mechanizm for having some variables per-thread. It requires new gcc, 
binutils and maybe glibc.

errno = global variable (or macro or something - differs from one compiler 
to another...) that was defined in ancient days of early UNIXes ('70 
probably) to hold last error after syscall. But when you have multiple 
threads this variable must be par-thread to actually mean something (if it 
would be global you would never know if it holds last error for your 
thread or some other thread in your app). So newer glibcs set it probably 
as per-thread rather than global.

Are you absolutely sure that you have compatible and well compiled set of 
kernel, kernel headers, gcc, glibc? Because it looks like something could 
be broken here. How did you upgrade your glibc? What is your 
distributions? What are your versions of above core packages?


Grzegorz Kulewski

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Problems compiling qemu-snapshot
  2005-06-01 20:38 ` Grzegorz Kulewski
@ 2005-06-02  3:14   ` bent jakobsen
  0 siblings, 0 replies; 3+ messages in thread
From: bent jakobsen @ 2005-06-02  3:14 UTC (permalink / raw)
  To: Grzegorz Kulewski, qemu-devel

Hi,

On 6/1/05, Grzegorz Kulewski <kangur@polcom.net> wrote:
> On Wed, 1 Jun 2005, bent jakobsen wrote:
> 
> > Hi,
> >
> > When I try to compile the lastest qemu-snapshot (2005-05-31_23) I get
> > the following error:
> >
> > 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
> >
> >
> > Has anyone seen this before ?  Or am I the only one who has seen this ?
> >
> > I think this started to happen when I updated the Linux kernel (to
> > 2.6.11.11), or perhaps when I updated to glibc version 2.3.5
> 
> Probably glibc...
> 
> TLS = mechanizm for having some variables per-thread. It requires new gcc,
> binutils and maybe glibc.
> 
> errno = global variable (or macro or something - differs from one compiler
> to another...) that was defined in ancient days of early UNIXes ('70
> probably) to hold last error after syscall. But when you have multiple
> threads this variable must be par-thread to actually mean something (if it
> would be global you would never know if it holds last error for your
> thread or some other thread in your app). So newer glibcs set it probably
> as per-thread rather than global.
> 
> Are you absolutely sure that you have compatible and well compiled set of
> kernel, kernel headers, gcc, glibc? Because it looks like something could
> be broken here. How did you upgrade your glibc? What is your
> distributions? What are your versions of above core packages?
> 
> 
> Grzegorz Kulewski
> 

Hi,

I'm almost sure that I have the latest versions :)  This might also be
the problem :)

What is my distribution: Sorcerer
How did I update: augur easy

For your information:
Sorcerer is an sourcebased distribution like gentoo, it is just more
up to date, in regards to the different applications, and then it is a
lot easier to keep up to date, and to install (in my thoughts - but
one might have a different views upon these points).

But yes of course I can have a broken dependency on my box(es), if so
I'll be glad if anyone could say where it is broken, as qemu-snapshot
is the only application (which I know off) that I can not compile
successfully. But I'll of course keep updateing the box.

Now the versions:

glibc: 2.3.5
gcc:  3.4.4
linux: 2.6.11.11
binutils: 2.16
coreutils: 5.2.1

Did I miss any ? If so I'll gladly provide them

Best regards

Bent Jakobsen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-02  3:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-01 18:29 [Qemu-devel] Problems compiling qemu-snapshot bent jakobsen
2005-06-01 20:38 ` Grzegorz Kulewski
2005-06-02  3:14   ` bent jakobsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).