* [Bug bootstrap/37308] bootstrap hug on libstdc++.a
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
@ 2008-09-01 9:54 ` paolo dot carlini at oracle dot com
2008-09-01 10:16 ` cnstar9988 at gmail dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-09-01 9:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2008-09-01 09:53 -------
Do you mean *hangs* during bootstrap?? Sorry, but it's not at all clear what is
happening exactly on your side.
David, can you follow a bit this... ?
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dje at watson dot ibm dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hug on libstdc++.a
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
2008-09-01 9:54 ` [Bug bootstrap/37308] " paolo dot carlini at oracle dot com
@ 2008-09-01 10:16 ` cnstar9988 at gmail dot com
2008-09-01 10:24 ` cnstar9988 at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: cnstar9988 at gmail dot com @ 2008-09-01 10:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from cnstar9988 at gmail dot com 2008-09-01 10:15 -------
(In reply to comment #1)
> Do you mean *hangs* during bootstrap?? Sorry, but it's not at all clear what is
> happening exactly on your side.
> David, can you follow a bit this... ?
the bootrap stop at ./conftest for a long time.
I will "remove" TLS check code in libstdc++-v3/configure and test again.
==================================================================
# For TLS support.
enable_tls=no
gcc_cv_have_tls=no
# For _Unwind_GetIPInfo.
======================================================
conftest.c
===============
__thread int a,b;
int main()
{
return a==b;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hug on libstdc++.a
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
2008-09-01 9:54 ` [Bug bootstrap/37308] " paolo dot carlini at oracle dot com
2008-09-01 10:16 ` cnstar9988 at gmail dot com
@ 2008-09-01 10:24 ` cnstar9988 at gmail dot com
2008-09-01 10:26 ` [Bug bootstrap/37308] bootstrap hangs in libstdc++ paolo dot carlini at oracle dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: cnstar9988 at gmail dot com @ 2008-09-01 10:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from cnstar9988 at gmail dot com 2008-09-01 10:23 -------
$ oslevel -r
5100-09
with all latest AIX 5.1 patch.
=================================
I can compile gcc 4.2.4, works ok, and used for bootstrap gcc.
gcc 4.2.4 can't support TLS "__thread", "test.c:1: error: thread-local storage
not supported for this target"
=================================
when build gcc 4.3.2, both --disable-tls or not failed, *hangs* at same code.
stop at ./conftest for a long time.
Target: powerpc-ibm-aix5.1.0.0
Configured with: ../src/configure --prefix=/opt/gcc-4.3.2
--with-gmp=/opt/gcc-4.3.2 --with-mpfr=/opt/gcc-4.3.2 --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --disable-nls --disable-tls --disable-shared
--disable-libgomp --enable-languages=c,c++ --enable-threads
--enable-version-specific-runtime-libs --build=powerpc-ibm-aix5.1.0.0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hangs in libstdc++
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
` (2 preceding siblings ...)
2008-09-01 10:24 ` cnstar9988 at gmail dot com
@ 2008-09-01 10:26 ` paolo dot carlini at oracle dot com
2008-09-01 10:43 ` Andrew Thomas Pinski
2008-09-01 10:35 ` cnstar9988 at gmail dot com
` (4 subsequent siblings)
8 siblings, 1 reply; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-09-01 10:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from paolo dot carlini at oracle dot com 2008-09-01 10:25 -------
Note that the TLS check code is used in libstdc++-v3, but it's actually part of
the general GCC config infrastructure: tls.m4. It's also used in libjava, for
example.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|bootstrap hug on libstdc++.a|bootstrap hangs in libstdc++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Bug bootstrap/37308] bootstrap hangs in libstdc++
2008-09-01 10:26 ` [Bug bootstrap/37308] bootstrap hangs in libstdc++ paolo dot carlini at oracle dot com
@ 2008-09-01 10:43 ` Andrew Thomas Pinski
0 siblings, 0 replies; 13+ messages in thread
From: Andrew Thomas Pinski @ 2008-09-01 10:43 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
Sent from my iPhone
On Sep 1, 2008, at 3:25, "paolo dot carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org
> wrote:
>
>
> ------- Comment #4 from paolo dot carlini at oracle dot com
> 2008-09-01 10:25 -------
> Note that the TLS check code is used in libstdc++-v3, but it's
> actually part of
> the general GCC config infrastructure: tls.m4. It's also used in
> libjava, for
> example.
The other thing is that _thread is emulated on targets that don't
support it.
>
>
>
> --
>
> paolo dot carlini at oracle dot com changed:
>
> What |Removed |Added
> ---
> ---
> ----------------------------------------------------------------------
> Summary|bootstrap hug on libstdc++.a|bootstrap hangs in
> libstdc++
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hangs in libstdc++
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
` (3 preceding siblings ...)
2008-09-01 10:26 ` [Bug bootstrap/37308] bootstrap hangs in libstdc++ paolo dot carlini at oracle dot com
@ 2008-09-01 10:35 ` cnstar9988 at gmail dot com
2008-09-01 10:45 ` pinskia at gmail dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: cnstar9988 at gmail dot com @ 2008-09-01 10:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from cnstar9988 at gmail dot com 2008-09-01 10:34 -------
gcc 4.2.4 doesn't support tls on AIX 5.1.
Does gcc 4.3.2 support tls on AIX 5.1? Maybe stage3 gcc can compile "__thread",
but can't run well?
why I configure with --disable-tls, gcc 4.3.2 always use and check tls?
IBM XLC 9.0 says "Only supported on AIX for POWER version 5.3 with the 5300-05
Technology Level and higher."
Thanks.
I will "remove" TLS check code in libstdc++-v3/configure and test again.
======================================================================
# For TLS support.
enable_tls=no
gcc_cv_have_tls=no
# For _Unwind_GetIPInfo.
--
cnstar9988 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet|powerpc-ibm-aix5.1.0.0 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hangs in libstdc++
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
` (4 preceding siblings ...)
2008-09-01 10:35 ` cnstar9988 at gmail dot com
@ 2008-09-01 10:45 ` pinskia at gmail dot com
2008-09-01 11:11 ` paolo dot carlini at oracle dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: pinskia at gmail dot com @ 2008-09-01 10:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gmail dot com 2008-09-01 10:43 -------
Subject: Re: bootstrap hangs in libstdc++
Sent from my iPhone
On Sep 1, 2008, at 3:25, "paolo dot carlini at oracle dot com"
<gcc-bugzilla@gcc.gnu.org
> wrote:
>
>
> ------- Comment #4 from paolo dot carlini at oracle dot com
> 2008-09-01 10:25 -------
> Note that the TLS check code is used in libstdc++-v3, but it's
> actually part of
> the general GCC config infrastructure: tls.m4. It's also used in
> libjava, for
> example.
The other thing is that _thread is emulated on targets that don't
support it.
>
>
>
> --
>
> paolo dot carlini at oracle dot com changed:
>
> What |Removed |Added
> ---
> ---
> ----------------------------------------------------------------------
> Summary|bootstrap hug on libstdc++.a|bootstrap hangs in
> libstdc++
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hangs in libstdc++
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
` (5 preceding siblings ...)
2008-09-01 10:45 ` pinskia at gmail dot com
@ 2008-09-01 11:11 ` paolo dot carlini at oracle dot com
2008-09-01 11:26 ` cnstar9988 at gmail dot com
2008-09-02 20:17 ` dje at gcc dot gnu dot org
8 siblings, 0 replies; 13+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-09-01 11:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from paolo dot carlini at oracle dot com 2008-09-01 11:09 -------
(In reply to comment #6)
> The other thing is that __thread is emulated on targets that don't
> support it.
That's interesting, I didn't notice we are actually doing that, right now (I
remember some discussions...). Then, however, I'm missing more... Why we are
running the check in libstdc++-v3 and libjava two times instead of just running
it once and, if necessary, instantiating the emulation and, in case, passing
down the info to the libraries?!?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hangs in libstdc++
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
` (6 preceding siblings ...)
2008-09-01 11:11 ` paolo dot carlini at oracle dot com
@ 2008-09-01 11:26 ` cnstar9988 at gmail dot com
2008-09-02 20:17 ` dje at gcc dot gnu dot org
8 siblings, 0 replies; 13+ messages in thread
From: cnstar9988 at gmail dot com @ 2008-09-01 11:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from cnstar9988 at gmail dot com 2008-09-01 11:24 -------
When I remove TLS check code in libstdc++-v3/configure, bootstrap OK!!!
Does there have anything harm when remove the TLS check code? affect only C++?
Thanks!
==================================================================
# For TLS support.
enable_tls=no
gcc_cv_have_tls=no
# For _Unwind_GetIPInfo.
======================================================
conftest.c
===============
__thread int a,b;
int main()
{
return a==b;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug bootstrap/37308] bootstrap hangs in libstdc++
2008-09-01 5:40 [Bug bootstrap/37308] New: bootstrap hug on libstdc++.a cnstar9988 at gmail dot com
` (7 preceding siblings ...)
2008-09-01 11:26 ` cnstar9988 at gmail dot com
@ 2008-09-02 20:17 ` dje at gcc dot gnu dot org
8 siblings, 0 replies; 13+ messages in thread
From: dje at gcc dot gnu dot org @ 2008-09-02 20:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from dje at gcc dot gnu dot org 2008-09-02 20:16 -------
GNU Java does not work on AIX, so TLS is irrelevant there.
AIX 5.1 no longer is supported in general. I no longer have access to AIX 5.1
systems. GCC currently does not explicitly support AIX TLS -- __thread calls
are not converted to AIX TLS.
If libstdc++ can accomodate AIX 5.1, that is great. I am not sure what else to
pursue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37308
^ permalink raw reply [flat|nested] 13+ messages in thread