public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* libstdc++.so: undefined reference to `___tls_get_addr'
@ 2007-01-10 15:25 marco turchi
  2007-01-10 15:46 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: marco turchi @ 2007-01-10 15:25 UTC (permalink / raw)
  To: gcc-help

Dear All,
I'm a new user of this mailing list.
I've this problem.
I had an old gcc version on my laptop so I downloaded the 4.1 and I
installed it using the following commands:

configure --enable-shared --with-gnu-as --with-gnu-ld --enable-languages=c,c++
make bootstrap
make install
everything worked, but now when I have to install some software and
when I run the configure file of this software, I obtain the following
error during the configure phase:
configure:2348: checking for C++ compiler default output file name
configure:2375: g++    conftest.cpp  >&5
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libstdc++.so:
undefined reference to `___tls_get_addr'
collect2: ld returned 1 exit status

Please, can u help me??
Thanks a lot for your time
Marco Turchi

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

* Re: libstdc++.so: undefined reference to `___tls_get_addr'
  2007-01-10 15:25 libstdc++.so: undefined reference to `___tls_get_addr' marco turchi
@ 2007-01-10 15:46 ` Ian Lance Taylor
  2007-01-10 16:13   ` marco turchi
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2007-01-10 15:46 UTC (permalink / raw)
  To: marco turchi; +Cc: gcc-help

"marco turchi" <marco.turchi@gmail.com> writes:

> Dear All,
> I'm a new user of this mailing list.
> I've this problem.
> I had an old gcc version on my laptop so I downloaded the 4.1 and I
> installed it using the following commands:
> 
> configure --enable-shared --with-gnu-as --with-gnu-ld --enable-languages=c,c++
> make bootstrap
> make install
> everything worked, but now when I have to install some software and
> when I run the configure file of this software, I obtain the following
> error during the configure phase:
> configure:2348: checking for C++ compiler default output file name
> configure:2375: g++    conftest.cpp  >&5
> /usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libstdc++.so:
> undefined reference to `___tls_get_addr'
> collect2: ld returned 1 exit status

You are compiling a program which uses __thread.  This requires
support from the compiler, the linker, and the C library.  It looks
like you need to upgrade your C library.

Or perhaps you can simply configure the program you want to use to
not use __thread (also known as TLS).

Ian

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

* Re: libstdc++.so: undefined reference to `___tls_get_addr'
  2007-01-10 15:46 ` Ian Lance Taylor
@ 2007-01-10 16:13   ` marco turchi
  2007-01-10 16:44     ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: marco turchi @ 2007-01-10 16:13 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

Thanks a lot.
If I update the C library, then wuold have I to install again the gcc?

Thanks a lot
Marco

On 10 Jan 2007 07:46:16 -0800, Ian Lance Taylor <iant@google.com> wrote:
> "marco turchi" <marco.turchi@gmail.com> writes:
>
> > Dear All,
> > I'm a new user of this mailing list.
> > I've this problem.
> > I had an old gcc version on my laptop so I downloaded the 4.1 and I
> > installed it using the following commands:
> >
> > configure --enable-shared --with-gnu-as --with-gnu-ld --enable-languages=c,c++
> > make bootstrap
> > make install
> > everything worked, but now when I have to install some software and
> > when I run the configure file of this software, I obtain the following
> > error during the configure phase:
> > configure:2348: checking for C++ compiler default output file name
> > configure:2375: g++    conftest.cpp  >&5
> > /usr/local/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libstdc++.so:
> > undefined reference to `___tls_get_addr'
> > collect2: ld returned 1 exit status
>
> You are compiling a program which uses __thread.  This requires
> support from the compiler, the linker, and the C library.  It looks
> like you need to upgrade your C library.
>
> Or perhaps you can simply configure the program you want to use to
> not use __thread (also known as TLS).
>
> Ian
>

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

* Re: libstdc++.so: undefined reference to `___tls_get_addr'
  2007-01-10 16:13   ` marco turchi
@ 2007-01-10 16:44     ` Ian Lance Taylor
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2007-01-10 16:44 UTC (permalink / raw)
  To: marco turchi; +Cc: gcc-help

"marco turchi" <marco.turchi@gmail.com> writes:

> If I update the C library, then wuold have I to install again the gcc?

No, that shouldn't be necessary.

Ian

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

end of thread, other threads:[~2007-01-10 16:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-10 15:25 libstdc++.so: undefined reference to `___tls_get_addr' marco turchi
2007-01-10 15:46 ` Ian Lance Taylor
2007-01-10 16:13   ` marco turchi
2007-01-10 16:44     ` Ian Lance Taylor

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 read-only IMAP folder(s) and NNTP newsgroup(s).