Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Gentoo - The Developers Method - Stage1 and NPTL
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 23, 24, 25  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 449

PostPosted: Sat Nov 27, 2004 9:19 am    Post subject: Reply with quote

slycordinator wrote:


Add nptlonly to your USE flag list and then remerge glibc.

edit: What it's doing is when you have USE="nptl" it compiles glibc twice, once with linuxthreads and once with nptl but it defaults to using the old linuxthreads version (this is the standard way that most linuxes do).
Are you sure about this, in the ebuild it says it will use nptl by default with just USE="nptl"?
_________________
/Joakim

Living on earth is expensive, but it includes a free trip around the sun
every year.
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Sat Nov 27, 2004 9:44 am    Post subject: Reply with quote

I only used nptl in my use flags, but /lib/libc.so.6 shows my "Native POSIX Threads Library" as expected.

but another point:
i stumbled about two other questions in the bootstrap procedure. I posted them here, because i thougth they would get more attention there than in the middle of a 14-side-thread ;)
anyway maybe someone of "our bootstrap experienced" here can also take a look at it ;)

Last question:
Whats the reason why ali3nx put every available use flag in the USE Flag of his make.conf? I bet on a server you actually dont need 90% of them and even on a desktop most of them are only needed for special cases. So it only installs you a lot of unneeded stuff during emerge system and increases the danger of any strange packet get stucked during install.
So in my personal opinion its better du reduce use flags to the minimum during bootstrap and emerge system and then add them "as you need them" when configuring the rest of the system.
Luckily we have that nice --newuse option for emerge ;)

CU
Imago
Back to top
View user's profile Send private message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 449

PostPosted: Sat Nov 27, 2004 11:10 am    Post subject: Reply with quote

[Imago] wrote:
I only used nptl in my use flags, but /lib/libc.so.6 shows my "Native POSIX Threads Library" as expected.


Well for # /lib/libc.so.6 I got
Code:
merc2 ~ # /lib/libc.so.6
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3  (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6).
Compiled on a Linux 2.6.8 system on 2004-11-24.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
but for # /lib/tls/libc.so.6 I got
Code:
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3  (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6).
Compiled on a Linux 2.6.8 system on 2004-11-24.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        Native POSIX Threads Library by Ulrich Drepper et al
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
so I think that's right as bare use of 'nptl' also leave fallback support for old packages. But as soon as you compile a new package it's supposed to use the /lib/tls/libc.so.6 version. I don't know how to check if this really is happening though, and if there is packages that must use the old threeding model?.
[Imago] wrote:

but another point:
i stumbled about two other questions in the bootstrap procedure. I posted them here, because i thougth they would get more attention there than in the middle of a 14-side-thread ;)
anyway maybe someone of "our bootstrap experienced" here can also take a look at it ;)
I'm not that experiences, so can't really make any valid comments in the new threed, but it seam like you have found something there. I would suggest that you go ahead and file a bug, as I think devs doesn't read the forum that much.

[Imago] wrote:

Last question:
Whats the reason why ali3nx put every available use flag in the USE Flag of his make.conf? I bet on a server you actually dont need 90% of them and even on a desktop most of them are only needed for special cases. So it only installs you a lot of unneeded stuff during emerge system and increases the danger of any strange packet get stucked during install.
So in my personal opinion its better du reduce use flags to the minimum during bootstrap and emerge system and then add them "as you need them" when configuring the rest of the system.
Luckily we have that nice --newuse option for emerge ;)

CU
Imago
I think he's spoiled with big and fast boxes :lol:
I sure didn't use all his flags, bootstrapped with just USE="nptl" and then added my own set of of flags I have defined since before, which have a lot of -flag's as it's a server box and I don't want X and other bloat. Bottom line I think is, ali3nx expect us to use our own brains as well and some common sense :lol:
_________________
/Joakim

Living on earth is expensive, but it includes a free trip around the sun
every year.
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Sat Nov 27, 2004 11:27 am    Post subject: Reply with quote

concerning the libc.so.6 questions, have look at this thread

to sum it up:
installing latest ~x86 glibc with "nptl": glibc is installed twice as MoonWalker mentioned in /lib and /lib/tls. while the one in /lib/tls with NPTL support is used by default(you can check that with "ldd `which $prog`")
installing latest ~x86 with "nptl nptlonyl": installs only the NPTL libc in /lib
installing the latest x86 glibc with "nptl": only the nptl libc is installed in /lib

Cu
Imago
Back to top
View user's profile Send private message
dazcon5
n00b
n00b


Joined: 20 Sep 2004
Posts: 2

PostPosted: Sat Nov 27, 2004 12:22 pm    Post subject: Checking kernel version (>=2.6.5) ... no Reply with quote

noob question... I have tried several of the fixes in this topic but I can't get past a glibc error when bootstrapping even though I have installed the 2.6 headers. I am installing from a knoppix 3.6 cd and have been following the tutorial to the letter. I started with a 2004.3 stage 1.

>output

* Checking gcc for __thread support ... yes
* Checking kernel version (>=2.6.5) ... no

* You need a kernel of at least version 2.6.5
* for NPTL support!

!!! ERROR: sys-libs/glibc-2.3.4.20041102 failed.
!!! Function check_nptl_support, Line 170, Exitcode 0
!!! Kernel version too low!
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Sat Nov 27, 2004 1:06 pm    Post subject: Reply with quote

hmm maybe the kernel you booted from the knoppix cd is not a 2.6.x kernel?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Sat Nov 27, 2004 4:51 pm    Post subject: Reply with quote

I'm quite sure I had nptl and nptlonly in my USE flag during install.
Code:
enoch@steelbox ~ $ cat /etc/make.conf | grep nptl
     nagios-ssh native net network nis nptl ntplonly ntlm nvidia nviz oav ocaml\


Dunno why emerge glibc appears to ignore nptlonly in my case, cos /lib/tls/libc.so.6 reports nptl extension as MoonWalker has posted.

Nvm... I'll leave this setup for a week then blow it away and redo with USE="nptl nptlonly" in make.conf. ;-)

EDIT: Darn it! Relooking my post I discovered the "ntplonly" typo, instead of "nptlonly". Argh!
*narrowly resists urge to bang head against screen*
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sat Nov 27, 2004 7:04 pm    Post subject: Reply with quote

dazcon5
When you boot with knoppix scroll through the boot options and see if they have an "smp" option. That should be a 2.6 kernel.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
XyryX
n00b
n00b


Joined: 24 Nov 2004
Posts: 10

PostPosted: Sat Nov 27, 2004 8:49 pm    Post subject: Reply with quote

/lib/libc.so.6 even after compiling with USE="nptl nptlonly" still always shows the normal threads message..

I also checked the /lib/tls/ directory and it also shows the same message..

This is after I bootstrap / emerge system btw.. If I compile it previously it works fine..

Actually.. the one question I really want answered..

How can some of us be getting all these errors yet others do not ??? Is it simply anybody after the 19/20th November is downloading bugged code ???

Personally I have used 5.5 GB of downloads in the last week.. And the only comps connected to that connection are the 2 I am attempting to get Gentoo running on.. Mind you I have done about 12 complete reinstalls trying to get this working..
Back to top
View user's profile Send private message
geekporn
n00b
n00b


Joined: 17 Jan 2004
Posts: 17

PostPosted: Sat Nov 27, 2004 9:04 pm    Post subject: Reply with quote

this rocks, just got through the bootstrap, something must have changed in the last two days, which is good. Thanks to everyone for all the posts and the help! now lets see if emerge system will work!
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3059
Location: Korea

PostPosted: Sat Nov 27, 2004 9:49 pm    Post subject: Reply with quote

MoonWalker wrote:
slycordinator wrote:


Add nptlonly to your USE flag list and then remerge glibc.

edit: What it's doing is when you have USE="nptl" it compiles glibc twice, once with linuxthreads and once with nptl but it defaults to using the old linuxthreads version (this is the standard way that most linuxes do).
Are you sure about this, in the ebuild it says it will use nptl by default with just USE="nptl"?


Yes. I am sure. That was the ONLY WAY I was able to get nptl to be used.
Back to top
View user's profile Send private message
CompNerd
Retired Dev
Retired Dev


Joined: 16 Mar 2003
Posts: 311
Location: 127.0.0.1

PostPosted: Sun Nov 28, 2004 1:20 am    Post subject: Reply with quote

I have heard many complaints about gcc 3.4.3 breaking gcc-config. The following is a pretty good fix if you are using ~x86 to bootstrap.

When bootstrap fails:

mkdir /usr/lib/gcc-lib/$CHOST
ln -s /usr/lib/gcc/$CHOST/3.4.3 /usr/lib/gcc-lib/$CHOST/3.4.3

You should replace $CHOST with the proper CHOST, although BASH should be smart enough to do the replacement for you (better safe than sorry...even though I am using a ~x86 system :roll:)

CompNerd
Back to top
View user's profile Send private message
Hobbit_HK
n00b
n00b


Joined: 11 Nov 2004
Posts: 54
Location: Israel

PostPosted: Sun Nov 28, 2004 9:58 am    Post subject: Reply with quote

Great guide, but maybe you should add the /etc/locales.build file? So you can choose what locales you want to build... Saves times when installing glibc (the Gentoo Handbook does that)
_________________
- Hobbit HK :)

Don't use stage1\2 tarballs
Do a stage1 install from a stage3 tarball
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Sun Nov 28, 2004 11:19 am    Post subject: Reply with quote

@CompNerd
to avoid the annoying process of "starting bootstrap, bootstrap failed,fixing,bootstrop restart" its much easier to apply the patch to gcc-config i posted in bugzilla, before starting to bootstrap. See Bug: #72557

Code:

wget -O /root/gcc-config.patch http://bugs.gentoo.org/attachment.cgi?id=44780
cd /usr/bin
patch < /root/gcc-config.patch


@Hobbit_HK
i agree it should be added.But atm this doesnt work during bootstraping. See Bug #72596

[edited: fixed typo, thx to kimchi_sg]
Cu
Imago


Last edited by Imago on Sun Nov 28, 2004 1:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Sun Nov 28, 2004 11:24 am    Post subject: Reply with quote

slycordinator wrote:
MoonWalker wrote:
slycordinator wrote:


Add nptlonly to your USE flag list and then remerge glibc.

edit: What it's doing is when you have USE="nptl" it compiles glibc twice, once with linuxthreads and once with nptl but it defaults to using the old linuxthreads version (this is the standard way that most linuxes do).
Are you sure about this, in the ebuild it says it will use nptl by default with just USE="nptl"?


Yes. I am sure. That was the ONLY WAY I was able to get nptl to be used.


i solemnly echo that. after recompiling glibc with nptlonly set, only then did it default to nptl in libc.so.6.

now redoing install... see if i can get it right from the start. and slim down the set of USE flags that ali3nx provided us.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Sun Nov 28, 2004 11:35 am    Post subject: Reply with quote

[Imago] wrote:
Last question:
Whats the reason why ali3nx put every available use flag in the USE Flag of his make.conf? I bet on a server you actually dont need 90% of them and even on a desktop most of them are only needed for special cases. So it only installs you a lot of unneeded stuff during emerge system and increases the danger of any strange packet get stucked during install.

in spite of how complete his listing of USE flags may appear at the casual glance, they are by no means exhaustive. if you look closely, you won't find many important things for desktop installations like "alsa" or "ldap" or "samba". i added those, and i also added "ithreads", which i think is particulary spongeworthy for NPTL.

maybe he used so many USE flags because of the name on this thread: The Developer's Method. Software developers have to worry about things like compatability, while people designing servers worry more about optimizing for speed in performing an extremely limited number of tasks.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Sun Nov 28, 2004 11:38 am    Post subject: Reply with quote

compnerd, every time i see your avatar, i mistakenly think that ali3nx is posting a valuable update to this thread! :oops: i wish guys on this forum would all use unique avatars.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Sun Nov 28, 2004 1:09 pm    Post subject: Reply with quote

[Imago] wrote:
@CompNerd
to avoid the annoying process of "starting bootstrap, bootstrap failed,fixing,bootstrop restart" its much easier to apply the patch to gcc-config i posted in bugzilla, before starting to bootstrap. See Bug: #72557

Code:

wget -O /root/gcc-config.patch http://bugs.gentoo.org/attachment.cgi?id=44780
cd /usr/bin
patch < /root/gcc-config


a little typo there... the last line should read "patch < /root/gcc-config.patch" ;-)
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Sun Nov 28, 2004 1:13 pm    Post subject: Reply with quote

of course ;)
fixed that. Thx

CU
Imago
Back to top
View user's profile Send private message
thecrazyperson_ws
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2004
Posts: 89

PostPosted: Sun Nov 28, 2004 7:11 pm    Post subject: Reply with quote

Oktane wrote:
-TooL wrote:
So, do we use the 2004.2 cd to boot smp?

The new 2004.3 miniman and live cd wont give the smp option.

2004.3 uses 2.6 (SMP) kernel as a default, so you don't have to worry about it.


Um... didn't I say that a while back?

dazcon5: when booting knoppix, instead of just pushing enter at the boot prompt, type "knoppix26" then push enter. You're greeted with kernel 2.6.6 or newer. I also said this a long time ago in this thread.

To all wondering if their boxes are NPTL enabled: YES. instead of
Code:
# /lib/libc.so.6


do
Code:
# /lib/tls/libc.so.6
. the one installed in /lib/tls is the default.

Also, I don't understand why everybody's having so much trouble. If you follow the tutorial to the letter (only changing architecture specific stuff) it should work the first time. It did for me. I'm using Gentoo 2004.3 which i compiled from stage 1 onward. It has NPTL support, and it's running kernel 2.6.9-nitro4 and KDE 3.3.1, both compiled with GCC 3.4.3 (the default for ~x86 installations). I daresay that this is the fastest I have ever seen my machine run. It eats 50.00 loads for breakfast, and it's only a P3-450.

Just my two cents.
_________________
Bevelle: Dual Athlon MP 2000+, 1.25G ram, 120G HD, Gentoo 2005.1-r1, Kernel 2.6.15-gentoo-r5

Gagazet: Pentium 2-266, 288M ram, 240G HD, currently installing gentoo

Besaid: p-150, 80M ram, win2k pro
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Sun Nov 28, 2004 9:59 pm    Post subject: Reply with quote

Thought this bug had been squashed already. But my bootstrap / emerge system (can't tell which one exactly) is still aborting with the last few lines being:

Code:
>>> md5 src_uri ;-) gettext-1.03.tar.gz
/usr/portage/eclass/perl-module.eclass: line 168: perl: command not found
...(several similar lines)...
make: *** No targets specified and no makefile found. Stop.


:-(

EDIT: For those who don't want to scroll back several pages for the solution to this one, emerge libperl && emerge system does the trick.

But it shows that something is still b0rked. :-(

System: sempron 2200+, nforce2, with stock stage1 x86 tarball. USE flags are same as provided make.conf, except added alsa, cdr, ithreads and removed any that starts with dvd. ;-) CFLAGS is that of athlon-xp.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.


Last edited by kimchi_sg on Sun Nov 28, 2004 10:50 pm; edited 3 times in total
Back to top
View user's profile Send private message
CompNerd
Retired Dev
Retired Dev


Joined: 16 Mar 2003
Posts: 311
Location: 127.0.0.1

PostPosted: Sun Nov 28, 2004 10:00 pm    Post subject: Reply with quote

Imago, I didnt know about the patch. I will look into that.

CompNerd

PS. Sorry for confusing you all the time Bob P :oops:
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Sun Nov 28, 2004 10:15 pm    Post subject: Reply with quote

@CompNerd
no need for my patch anymore. gcc-config 1.3.6-r4 fixes the problem ;)

CU
Imago
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Sun Nov 28, 2004 10:17 pm    Post subject: Reply with quote

And so does 1.3.7-r2 ;)
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 612
Location: Winnipeg, Canada

PostPosted: Sun Nov 28, 2004 11:05 pm    Post subject: Reply with quote

hehe... The bleeding edge has triumphed once again 8)
Thanx for the cvs fix Travis :D
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 14, 15, 16 ... 23, 24, 25  Next
Page 15 of 25

 
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