View previous topic :: View next topic |
Author |
Message |
fxlamare n00b
Joined: 11 Dec 2002 Posts: 36 Location: LILLE, France
|
Posted: Thu Aug 12, 2004 6:15 am Post subject: |
|
|
Hi!
i also failed compiling glibc with ntpl support.
Followed steps in this thread with the bootstrap26.sh script.
Guess i should try again the full setup with the updated wiki.
Had 2.6.5 kernel and 2.6.7 headers but the problem is not here (emerged 2.6.5 headers without success).
The last difference is that I boot with smb-nofb for scrolling performance reasons.
Will post my results when i'll back home.
FX
----------------------------------------
from france, where it's rainy today |
|
Back to top |
|
|
preacher n00b
Joined: 09 Jan 2004 Posts: 55 Location: Göteborg, Sweden
|
Posted: Thu Aug 12, 2004 9:11 am Post subject: |
|
|
If you check this thread, you can read about my experiences with nptl.
I could bootstrap and emerge system fine, but it's day-to-day emerging that doesn't seem to utilize my quad cpu system as much as it did before. |
|
Back to top |
|
|
OneOfMany Tux's lil' helper
Joined: 19 Nov 2003 Posts: 108 Location: Portland, OR USA
|
Posted: Thu Aug 12, 2004 12:28 pm Post subject: |
|
|
One last thing I can think of is the keywords. If you haven't either enabled "ACCEPT_KEYWORDS=~x86", or whatever it should be for your CPU's architecture, in /etc/make.conf for all packages or the linux26-headers specifically (by doing the "mkdir /etc/portage" and creating a package.keywords file with "sys-kernel/linux26-headers ~x86" in it) then emerge won't install the right headers (running "emerge -s linux26-headers should tell you if you've got them installed).
Wrongs headers then you won't get the enabled glibc. Beyond that...I guess you're just cursed . |
|
Back to top |
|
|
fxlamare n00b
Joined: 11 Dec 2002 Posts: 36 Location: LILLE, France
|
Posted: Fri Aug 13, 2004 12:52 am Post subject: |
|
|
Back home (it's 2am...)
Ok, i saved my downloaded files to spare time downloading them (hey we're late in France, 512kbps for about 30$/month ).
To make it short, I tried again and followed the wiki page's instructions. I discovered I had forgotten to set my CHOST to i686 in my make.conf (in stage 1 it comes with i386).
I guess it was the reason why it didn't work past times (shouldn't work that late..).
Now i'm waiting for the bootstrap step to finish in a few minutes. I guess it's OK now because some nptl-related strings appeared during compilation (i missed the beginning of glibc's compilation -- number 2 )
thanks!! |
|
Back to top |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Sat Aug 14, 2004 5:11 am Post subject: |
|
|
Hmm, I recompiled glibc with nptl flag, the /lib/libc.so.6 output shows nptl is there:
Code: | $ /lib/libc.so.6
GNU C Library stable release version 2.3.3, 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.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6).
Compiled on a Linux 2.6.5-gentoo-win4lin system on 2004-08-14.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
NPTL 0.61 by Ulrich Drepper
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <bugs@gnu.org>. |
However, I don't have linux26-headers on my system:
Code: | $ emerge -s linux26-headers
Searching...
[ Results for search key : linux26-headers ]
[ Applications found : 1 ]
* sys-kernel/linux26-headers [ Masked ]
Latest version available: 2.6.7-r4
Latest version installed: [ Not Installed ]
Size of downloaded files: 34,269 kB
Homepage: http://www.kernel.org/ http://www.gentoo.org/
Description: Linux 2.6.7 headers from kernel.org
License: GPL-2
|
Does this mean nptl doesn't really need 2.6 headers? _________________ AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl
Do I like to compile everything?
Positive definite! |
|
Back to top |
|
|
Snooper Apprentice
Joined: 02 May 2004 Posts: 182 Location: San Antonio, TX
|
Posted: Sat Aug 14, 2004 2:31 pm Post subject: |
|
|
If you compiled glibc with nptl after you had a built system with a 2.6 kernel installed i have heard the build script will look and see if the install kernel source is 2.6 if so it will use that and ignore the installed headers package. But if you don't install the 2.6 headers and bootstrap then glibc won't be nptl because there where no 2.6 headers found. Also unless you do a emerge -e world "i think" everything will be built against the 2.4 headers and not 2.6 witch may not be a problem but it could lead to issues... _________________ ftp://lila-project.ath.cx |
|
Back to top |
|
|
Digital Storm Tux's lil' helper
Joined: 07 Mar 2003 Posts: 116 Location: Toronto, Canada
|
Posted: Sun Aug 15, 2004 5:44 am Post subject: |
|
|
Hi
I just recently reinstalled my gentoo install with nptl...The only thing I changed in the guide was the bootstrapping, where I manually editted the "bootstrap-2.6.sh" as it was complaining about linux headers...I had removed the old one and installed the new ones just like the guide said...So I editted the "bootstrap-2.6.sh" and removed the portion where it wanted to emerge the headers, ran it and went onto "emerge system" and everything came out fine with nptl running... |
|
Back to top |
|
|
Snooper Apprentice
Joined: 02 May 2004 Posts: 182 Location: San Antonio, TX
|
Posted: Sun Aug 15, 2004 7:45 am Post subject: |
|
|
You actually don't have to run bootstrap-2.6.sh that i imagine is just still left behind from when the 2.6 headers where still part of the linux-headers ebuild. running plain bootstrap.sh will work just fine and it will not try and download the 2.6 headers and install them again. It's just there from the good ole days when you could just add linux-headers -* to package.keywords and run bootstrap-2.6.sh and it took care of everything but the move to linux26-headers from linux-headers blocks each other from both being installed and the script doesn't know to uninstall the old headers first then install the new ones... Maybe it will be fixed or they will release 2 stages one based on 2.6 headers, and another on the 2.4 headers so both groups could follow the Gentoo Handbook for installing _________________ ftp://lila-project.ath.cx |
|
Back to top |
|
|
jetblack Guru
Joined: 15 Jan 2003 Posts: 340 Location: Evanston, IL, USA
|
Posted: Tue Aug 17, 2004 5:16 am Post subject: |
|
|
Great HOWTO, Snooper. I just followed it to reinstall gentoo on my laptop with NPTL support, and it worked like a charm. |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Fri Aug 27, 2004 2:19 pm Post subject: |
|
|
Just wondering where teh GCC section is in this howto?
Following the instructions seems to still build gcc 3.3
Also, following instructions, /lib/libc.so.6 is still built with 2.4.21 kernel, and there is no nptl.. any ideas?
cheers _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
Snooper Apprentice
Joined: 02 May 2004 Posts: 182 Location: San Antonio, TX
|
Posted: Fri Aug 27, 2004 3:46 pm Post subject: |
|
|
Are you doing a clean bootstrap.sh from a stage1? I don't go into how to update an existing install.
But to get rolling you need a Gentoo LiveCD with a 2.6 kernel. 2004.1 or 2004.2 will do. when the boot prompt comes up asking for what kernel you want to boot with type smp this is a 2.6 kernel and supports nptl.
Now you will need to download a stage1 and emerge sync (follow the guide) and add nptl to USE in /etc/make.conf then remove the old linux-headers, emerge the linux26-headers (following the guide) and you should have a 2.6 system w/nptl support. _________________ ftp://lila-project.ath.cx |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Sat Aug 28, 2004 12:03 am Post subject: |
|
|
Snooper wrote: | Are you doing a clean bootstrap.sh from a stage1? I don't go into how to update an existing install.
But to get rolling you need a Gentoo LiveCD with a 2.6 kernel. 2004.1 or 2004.2 will do. when the boot prompt comes up asking for what kernel you want to boot with type smp this is a 2.6 kernel and supports nptl.
Now you will need to download a stage1 and emerge sync (follow the guide) and add nptl to USE in /etc/make.conf then remove the old linux-headers, emerge the linux26-headers (following the guide) and you should have a 2.6 system w/nptl support. |
Yep, that's exactly what I did.. (2004.2, smp, stage1, etc) I'll try again and see
I have done it before! So it was strange that it didn't work this time.
Anyhow, could you tell me is there a better way to get GCC 3.4 into my system? In the past I just hacked ebuilds etc (since the very first one available ).
Then last time I remember doing something with make.profile or some such.
Any ideas?
edit: never mind, foud your thoughts on page 2
Cheers! _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
hadees Tux's lil' helper
Joined: 17 Dec 2003 Posts: 137
|
Posted: Sat Aug 28, 2004 8:59 pm Post subject: |
|
|
I am kind of confused, at the top of this post it says it is for using gcc 3.4 but on the wiki it makes no mention of it. So how do I do all this and add gcc 3.4? can you add the instructions to the wiki |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Sat Aug 28, 2004 11:36 pm Post subject: |
|
|
hadees wrote: | I am kind of confused, at the top of this post it says it is for using gcc 3.4 but on the wiki it makes no mention of it. So how do I do all this and add gcc 3.4? can you add the instructions to the wiki |
it is on page 2,
[quote]The frame work is done for using a 2.6 kernel, and headers. It's very simple to configure.
You will need to:
A. Boot with the "smp" kernel.
B. Download the stage1 2004.2 image.
C. emerge sync
D. rm /etc/make.profile && ln -sf /usr/portage/profiles/gcc34-x86-2004.2 /etc/make.profile
E. ensure "ACCEPT_KEYWORDS="~x86" is in your make.conf
F. emerge -C linux-headers
G. emerge --oneshot --nodeps linux26-headers
H. scripts/bootstrap-2.6.sh
[/code]
basically you just remove /etc/make.profile after you have emerge sync'd
then you link the gcc 3.4 profile to /etc/make.profile
and add ACCEPT_KEYWORDS="~x86" to you make.conf, and continue with the install.. _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
Snooper Apprentice
Joined: 02 May 2004 Posts: 182 Location: San Antonio, TX
|
|
Back to top |
|
|
javock Tux's lil' helper
Joined: 01 Jan 2004 Posts: 106 Location: Babeland... yeah! I wish!
|
Posted: Wed Oct 06, 2004 9:01 pm Post subject: Re: Configuring Gentoo 2004.2 for linux 2.6 and NPTL (Update |
|
|
Hello,
Is this particular kernel the ONLY one that works with NPTL? I've tried to compile nitro / mm kernels with no success... I NEED reiser4 and gentoo-sources does not have it (4kb not compiled)... I will try gentoo-dev-sources, but I would really like to have a nitro kernel...
Great Howto...
Regards _________________ The heart has reasons that the reason will never understand.
-- La Renga. El final es donde partí |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Oct 06, 2004 10:23 pm Post subject: |
|
|
generally any kernel has worked for me
the thing that HASN'T worked is genkernel.. dietlibc crashes out when trying to build the initrd, which is most frustrating
but if I do a manual build everything seems to work.. development, vanilla, gentoo-dev, mm-sources, ck-sources etc.. _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
javock Tux's lil' helper
Joined: 01 Jan 2004 Posts: 106 Location: Babeland... yeah! I wish!
|
Posted: Wed Oct 06, 2004 11:40 pm Post subject: |
|
|
taskara wrote: | generally any kernel has worked for me
development, vanilla, gentoo-dev, mm-sources, ck-sources etc.. |
Ahhhhhhhhhh.....
Must ... Not ... Become ... more ... no0b ...
will try again
... and again...
... and again....
Thanks. _________________ The heart has reasons that the reason will never understand.
-- La Renga. El final es donde partí |
|
Back to top |
|
|
Lepaca Kliffoth l33t
Joined: 28 Apr 2004 Posts: 737 Location: Florence, Italy
|
Posted: Mon Oct 11, 2004 2:52 pm Post subject: |
|
|
Help! I used this guide and everything worked fine!! WHY??? _________________ It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox! |
|
Back to top |
|
|
zerojay Veteran
Joined: 09 Aug 2003 Posts: 1033
|
Posted: Mon Oct 11, 2004 3:19 pm Post subject: |
|
|
Lepaca Kliffoth wrote: | Help! I used this guide and everything worked fine!! WHY??? |
Hah. Give this guy a ceee-gar. |
|
Back to top |
|
|
-=Zepplock=- n00b
Joined: 08 Apr 2004 Posts: 73 Location: Sunnyvale, CA
|
Posted: Tue Oct 12, 2004 4:53 pm Post subject: |
|
|
This was an excellent tutorial.
Everything worked.
Thank you. _________________ -=] Led Zeppelin Forever [=-
Vova.Org - Make Love Not War |
|
Back to top |
|
|
the_real_one_maniac n00b
Joined: 19 Aug 2004 Posts: 7
|
Posted: Mon Nov 01, 2004 8:57 pm Post subject: |
|
|
warning: my english is bad.
I have one very strange and maybe stupid question
I take a look on yours output of /lib/libc.6.so (when you have nptl) and I notice that everyone have:
Quote: |
Available extensions:
...
NPTL 0.61 by Ulrich Drepper
...
|
But I have:
Quote: |
...
Native POSIX Threads Library by Ulrich Drepper et al
...
|
I just have finish stage1->stage2 phase
I realize that I have nptl built , but I see everyone in this thread have different from mine string in "available extensions". And just ask this (maybe) stupid question. Is everything ok ?
@Snooper: Realy great tutorial ! But if you don't read the thread man will not understand some things about installation of nptl (you need either headers of 2.6 kernel or working 2.6 kernel for example ). _________________ Intel inside ... Be Free ! Use Linux ... |
|
Back to top |
|
|
wharding n00b
Joined: 02 Nov 2004 Posts: 7
|
Posted: Wed Nov 03, 2004 1:28 pm Post subject: |
|
|
the_real_one_maniac: I was about to post the exact same message. I have a feeling that the string was updated.
I am just finishing a full install on my laptop that includes:
1) nitro-sources 2.6.9-nitro2
2) reiser4
Laptop is running like a rocket now and I am really happy.
If anyone is looking for a LiveCD that includes nitro sources as well as reiser4 support I found one here: http://lxnay.dnsalias.org/.
Good luck and happy nptl'ing.
P.S. If you are wondering whether its worth it to convert to NPTL and/or reiser4 all I can say is that I have NEVER seen my laptop run as fast as it i running right now
xorg, firefox, tbird, gimp, xmms streaming audio, 4 compiles all running at the same time on a P4 1.6Ghz with 512MB RAM, and it's looking at me like "Is that all you got?" |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Nov 03, 2004 1:44 pm Post subject: |
|
|
I have built three gentoo machiens lately, and installed with nptl as I have the previous 5 times before that.. but this time when I check libc.so.6, there is no NPTL listed.. am I crazy?
Code: | master root # /lib/libc.so.6
GNU C Library 20041006 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.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5).
Compiled on a Linux 2.6.8 system on 2004-10-18.
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.
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Glibc-2.0 compatibility add-on by Cristian Gafton
GNU Libidn by Simon Josefsson
libthread_db work sponsored by Alpha Processor Inc
Thread-local storage support included. |
_________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
SchAmane Tux's lil' helper
Joined: 11 Sep 2004 Posts: 107
|
Posted: Fri Nov 05, 2004 7:28 pm Post subject: |
|
|
taskara wrote: | I have built three gentoo machiens lately, and installed with nptl as I have the previous 5 times before that.. but this time when I check libc.so.6, there is no NPTL listed.. am I crazy? |
I have the same problem.
libc is compilet for nptl and non-ntpl support.
I am not sure, but maybe USE="nptlonly" should help. There is /lib/tls/libc.so.6 with ntpl also, but i think all apps do not use it. |
|
Back to top |
|
|
|