Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bootstrap-2.6.sh glibc error - still not solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
protosub
n00b
n00b


Joined: 24 Jun 2004
Posts: 14
Location: England

PostPosted: Tue Jun 29, 2004 1:13 am    Post subject: bootstrap-2.6.sh glibc error - still not solved Reply with quote

When there's something strange and glibc wont compile, who you gonna call... Gentoo Forums!!!

Ok as you may have gathered by now I have encountered a problem whilst installing Gentoo on my iBook G4 800MHz. I was doing a new installation from the 2004.1 minimal installation cd. Everything is going fine until I ran bootstrap-2.6.sh. Before I go any further here are my USE and CFLAGS:

Code:

CFLAGS="-mcpu=7450 -O3 -fno-strict-aliasing -fomit-frame-pointer -pipe -maltivec -mabi=altivec"
USE="-gtk -gnome kde qt alasa cdr dvd altivec nptl"


Ok there may be the odd typo in the above as I copied this by hand and its getting kinda late. Any constructive criticism / recommendations about the above are welcome. Ok so as you can see I had put nptl in the USE variable as, yes you guessed it, I wish to have nptl support in glibc.

So I had manually unmasked (is the correct terminology, unmask?) the latest linux-headers (2.6.7-r1, perhaps I should use an older version?) and ran bootstrap-2.6.sh. Everything compiles fine until right after gcc when glibc fails with the error:

Code:

running configure fragment for nptl/sysdeps/unix/sysv/linux
running configure fragment for nptl/sysdeps/pthread
configure: error: working compiler support for visibility attribute is required

!!! ERROR: sys-libs/glibc-2.3.3.20040420 failed.
!!! Function src_compile, Line 544, Exitcode 1
!!! (no error message)


A quick search on google turned up a few other cases such as this but alas no solution :(

And that ladies and gents is what brought me back here. So suggestions please! Hopefully I have done something uber noobish and you will all be able to point me in the correct direction in no time.
_________________
<insert witty sig here>


Last edited by protosub on Wed Jun 30, 2004 12:30 pm; edited 3 times in total
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Tue Jun 29, 2004 2:38 am    Post subject: Reply with quote

What version of gcc do you have? I haven't upgraded to NPTL myself, but from the sound of things, you may need to upgrade gcc from 3.2 to 3.3 before you go down that path.
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Vancouver, BC, Canada

PostPosted: Tue Jun 29, 2004 10:18 am    Post subject: Reply with quote

I have the same problem, using the latest gcc (3.3.3) glibc etc.

I seem to have solved this by recompiling gcc (thus compiling gcc 3.3.3 w/ gcc 3.3.3, instead of an earlier gcc).
Back to top
View user's profile Send private message
protosub
n00b
n00b


Joined: 24 Jun 2004
Posts: 14
Location: England

PostPosted: Tue Jun 29, 2004 12:57 pm    Post subject: Reply with quote

stimuli wrote:
I have the same problem, using the latest gcc (3.3.3) glibc etc.

I seem to have solved this by recompiling gcc (thus compiling gcc 3.3.3 w/ gcc 3.3.3, instead of an earlier gcc).


Ok thanks I will give this a try. One question though, if I rerun the bootstrap script surely it will skip the gcc compilation etc since it has already compiled it. I guess I will just have to do 'emerge gcc' and then continue with the bootstrapping process...?

Anyway thanks again
_________________
<insert witty sig here>
Back to top
View user's profile Send private message
protosub
n00b
n00b


Joined: 24 Jun 2004
Posts: 14
Location: England

PostPosted: Tue Jun 29, 2004 2:54 pm    Post subject: Reply with quote

ok so running bootstrap again does recompile everything. Im guessing that it will use the previously compiled gcc to compile everything now, would that be correct? Anyway im gonna have to wait and see if this avoids my previous error.

[Edit] hmm it didnt work. Maybe I should have cleared out my /var/tmp/portage ? I will try that now. [/Edit]
_________________
<insert witty sig here>
Back to top
View user's profile Send private message
protosub
n00b
n00b


Joined: 24 Jun 2004
Posts: 14
Location: England

PostPosted: Tue Jun 29, 2004 7:33 pm    Post subject: Reply with quote

Arrrrrrrrrgh! None of the above resolved my issue (unless im not recompiling gcc 3.3.3 with gcc 3.3.3 properly)! This is really starting to bug me, can anyone offer a solution?

UPDATE:

ok so I found the files that are doing this test for visibility and the code but unfortunatly I dont understand it:


Code:

if test "x${libc_cv_visibility_attribute}" != xyes ||
   test "x${libc_cv_broken_visibility_attribute}" != xno; then
  { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
   { (exit 1); exit 1; }; }
fi


The above code is present in both 'configure' and configure.in' under /var/tmp/portage/glibc-2.3.3.20040420/work/glibc-2.3.2/nptl/sysdeps/pthread/

I thought this may be of some use to in your efforts to help me solve my problem

_________________
<insert witty sig here>
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Vancouver, BC, Canada

PostPosted: Wed Jun 30, 2004 5:04 am    Post subject: Reply with quote

All I know is, I upgraded gentoo 1.4 to gcc 3.3.3-something, glibc-2.something, etc, by using ~ppc, and I could not get glibc to recompile with nptl due to the same error, and then I upgraded my kernel headers to match my kernel (2.6.7) which may or may not be necessary, and it still would not work. I suspected the problem lay with gcc, as the error is simply testing gcc and it fails, so I recompiled gcc (same version, maybe w/ new headers if that makes any difference) successfully, and glibc recompiled after that with nptl enabled without a hitch. Everything seems stable, although I have not had much opportunity to test things.

Disabling the code that produces the error will not solve your problem. The error should not be there in the first place. I believe, based on my experience, that the error lies with gcc. Hopefully I have also solved other problems, ie: perl not building due to errors, etc that I had before this fiasco.

good luck!
Back to top
View user's profile Send private message
protosub
n00b
n00b


Joined: 24 Jun 2004
Posts: 14
Location: England

PostPosted: Wed Jun 30, 2004 12:28 pm    Post subject: Reply with quote

Stimuli the difference is that I am doing a new installation whereas you have already said you were upgrading your system. I realise that disabling the code would not achieve anything I just thought it might have been useful. Anyway I seem to be getting nowhere with Gentoo at the moment, hopefully I will manage to get past this sometime soon.
_________________
<insert witty sig here>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum