Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring Gentoo 2004.2 for linux 2.6 and NPTL (Updated)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
blackwhite
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 250

PostPosted: Thu Jul 29, 2004 2:08 am    Post subject: Reply with quote

thanks. I try it again. I definitely do it following the HOWTO.
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Thu Jul 29, 2004 11:08 am    Post subject: :. copied to gentoo-wiki.com Reply with quote

I have copied this HOWTO, with permission of Snooper to gentoo-wiki.com
http://gentoo-wiki.com/HOWTO_Gentoo_2004.2_for_linux_2.6_and_NPTL
If you see anything that should be added or changed, feel free to do so.

Thank you for a great HOWTO.
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
blackwhite
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 250

PostPosted: Thu Jul 29, 2004 2:21 pm    Post subject: need help. Reply with quote

I did it again according to the HOWTO exactly. there are still same problems.
after the Bootstrapping the system: (Stage1 to Stage2)
Code:
cd /usr/portage
scripts/bootstrap-2.6.sh && env-update && source /etc/profile

After executing /lib/libc.so.6, I just see this output
Code:
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.7 system on 2004-07-29.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.
.There is no NPTL.

Now my question is: Is there NPTL in the output now after the stage from 1 to 2?
Thanks for your help.
Back to top
View user's profile Send private message
blackwhite
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 250

PostPosted: Thu Jul 29, 2004 6:23 pm    Post subject: Reply with quote

I have done it correctly. Maybe I make some errors in the installaion.
Quote:
livecd portage # /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.7 system on 2004-07-29.
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>.

Thanks.
Back to top
View user's profile Send private message
lutel
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 93
Location: Pomroczna

PostPosted: Thu Jul 29, 2004 8:49 pm    Post subject: Reply with quote

Snooper thank you for this very nice and helpful howto. Could you expand it on how to make bootstrap with gcc-3.4.x ?
Back to top
View user's profile Send private message
Snooper
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 182
Location: San Antonio, TX

PostPosted: Fri Jul 30, 2004 11:21 am    Post subject: Tip: Styles can be applied quickly to selected text. Reply with quote

Ignore my earlier post on using the gcc34-x86-2004.2 profile.

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

The profile is all ready configured to install the 2.6 headers... Just follow the Gentoo Handbook with the exception of adding ACCEPT_KEYWORDS="~x86" to make.conf, and creating a link to gcc34-x86-2004.2 profile :roll: (I stand corrected the dv just changed the profile back to linux-headers so just change the linu-headers in the virtual file back to linux26-headers. you can follow the profile in the GCC 3.4 topic just do a search for it, it's like a good 67 pages long so far i have got the base and system to compile and bootsplash, udev,hotplug,grub,syslog-ng,vixie-cron,ufed,genlop,gentoolkit to compile and genkernel doesn't work until dietlibc is updates it's not compliant with gcc 3.4, and i'm trying to get xorg-x11 to compile right now my first attempt didn't work but i think that was a hardware issue and not software (i hope anyway)...
_________________
ftp://lila-project.ath.cx
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 821
Location: Alaska

PostPosted: Wed Aug 04, 2004 7:35 am    Post subject: Reply with quote

Thanks for this how-to. I'm trying to speed my system up - it is a
Pentium 4 HT 2.8 with SATA harddrives and I got a system running but am disappointed with the performance. Hence one thing led to another and I gave this a shot on an already installed system. (Am I showing my ignorance?)

Anyway, things were progressing until about 60 of 89 compiles were done when I got this error:
Code:
glibc/glibc-bugs.h -I../include-glibc -I//usr/include -DIPSEC_DEBUG -DIPSEC -DINET6 -Wall   -c -o ipsec_get_policylen.o ipsec_get_policylen.c
mv y.tab.c policy_parse.c
mv: cannot stat `y.tab.c': No such file or directory
make: *** [policy_parse.c] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-misc/iputils-021109-r3 failed.
!!! Function src_compile, Line 63, Exitcode 2
!!! libipsec failed



A quick paste into search led me here:
https://forums.gentoo.org/viewtopic.php?t=206109&highlight=iputils021109r3+failed&sid=276ca27f923a429869a495e11bc9e0ca

I've made his fix and hit emerge -e system again and was a bit surprise to see it start back at 1 of 89. Dang! Guess I better read up some more but is this natural behavior?

Off to bed for now.. cheers, Hunky
Back to top
View user's profile Send private message
iptech
n00b
n00b


Joined: 04 Apr 2003
Posts: 12
Location: Mobile, AL

PostPosted: Thu Aug 05, 2004 4:14 pm    Post subject: Reply with quote

I followed the instructions exactly, with the exception of choosing the latest love-sources (2.6.8-rc2-love3) for the kernel (I followed the wiki that was posted by dmitrio). Looking at the /lib/libc.so.6 did show that nptl was installed. It starts booting OK, but I get the following halfway through:

Code:
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing unused kernel memory: 180k freed
Warning: unable to open an initial console.
Kernel panic: no init found.  Try passing init= option to kernel.


I do have all the necessary items selected in the kernel and grub appears to be configured correctly.
When rebooting with the 2004.2 live cd, it will not chroot; it says the kernel is too old. Using the love-sources live-cd v2 does let me chroot. I checked things out and tried a few options in grub, such as passing nodevfs to the kernel, with no success. Any thoughts? This is not my first time installing Gentoo, but it has been a while. Here are some details on the system:

    Dell Inspiron 3700
    PIII 500Mhz 512MB RAM, 40GB HD, DVD/CDRW
    /dev/hda1 - Dell hibernation partition
    /dev/hda2 - /boot (ext2)
    /dev/hda3 - NTFS
    /dev/hda4 - extended
    /dev/hda5 - swap
    /dev/hda6 - / (reiserfs)
    /dev/hda7 - /home (reiserfs)
    /dev/hda8 - /var (reiserfs)
    /dev/hda9 - /usr (resierfs)
Back to top
View user's profile Send private message
Snooper
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 182
Location: San Antonio, TX

PostPosted: Fri Aug 06, 2004 1:45 am    Post subject: Reply with quote

Can you post your grub config file: /boot/grub/grub.conf and kernel config /usr/src/linux/.config

Are you running udev or devfs?
_________________
ftp://lila-project.ath.cx
Back to top
View user's profile Send private message
iptech
n00b
n00b


Joined: 04 Apr 2003
Posts: 12
Location: Mobile, AL

PostPosted: Fri Aug 06, 2004 3:54 pm    Post subject: Reply with quote

OK Snooper, here is my current configs

grub.conf:

Code:
timeout 30
default 0
fallback 1
splashimage=(hd0,1)/grub/splash.xpm.gz

# For booting Linux
title  Gentoo Linux
root (hd0,1)
kernel /bzImage root=/dev/hda2

# For booting Windows XP
title Windows XP
rootnoverify (hd0,2)
makeactive
chainloader  +1


.config

Code:

#removed to make the thread smaller  :D



I had Gentoo running on this laptop with a 2.4 kernel, but it was out of date and I wanted to do a complete reinstall to refresh my memory and set up the partitions a little better. When I saw this tip on installing nptl support, it gave me even more reason to reinstall. This kernel config is very much like the old one, but I used LILO on the old setup.


Last edited by iptech on Fri Aug 13, 2004 6:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
iptech
n00b
n00b


Joined: 04 Apr 2003
Posts: 12
Location: Mobile, AL

PostPosted: Fri Aug 06, 2004 3:57 pm    Post subject: Reply with quote

Forgot to mention... I did emerge udev according to the wiki, and I tried passing nodevfs to the kernel in grub.conf to see if that would help. It did not.
Back to top
View user's profile Send private message
iptech
n00b
n00b


Joined: 04 Apr 2003
Posts: 12
Location: Mobile, AL

PostPosted: Fri Aug 06, 2004 6:26 pm    Post subject: Reply with quote

Doh.. I found it. Grub was pointing the root to /dev/hda2 when it should be /dev/hda6. :oops: Time to go lick my wounds and finish installing. Thanks for the help.
Back to top
View user's profile Send private message
Eowyn
n00b
n00b


Joined: 01 Jun 2002
Posts: 21

PostPosted: Tue Aug 10, 2004 4:02 am    Post subject: Re: Configuring Gentoo 2004.2 for linux 2.6 and NPTL (Update Reply with quote

Snooper wrote:

Bootstrapping the system: (Stage1 to Stage2)
Code:
cd /usr/portage
scripts/bootstrap.sh && env-update && source /etc/profile



is bootstrap.sh right or is it bootstrap-2.6.sh?
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Tue Aug 10, 2004 6:27 am    Post subject: Reply with quote

hmm, i unmerged my linux headers and then couldn't compile the new ones. even with most basic cflags. i don't like this new method.
Back to top
View user's profile Send private message
OneOfMany
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 108
Location: Portland, OR USA

PostPosted: Tue Aug 10, 2004 10:59 am    Post subject: Reply with quote

Eowyn:
I'm pretty sure (assuming you emerged the linux26-headers by hand) that you're supposed to use bootstrap.sh for now. bootstrap-2.6.sh tries to merge your headers for you (and currently that points only to the 2.4 headers...for some reason the 2.6 headers aren't just a new version of "sys-kernel/linux-headers").

thechris:
Specific error(s) you hit? I don't think much is actually compiled in the headers (they're basically just a bunch of text files that are included by a ton of stuff). So I doubt your cflags would matter much...
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Tue Aug 10, 2004 5:25 pm    Post subject: :. can i use nptl on single CPU box? Reply with quote

can i use nptl on single CPU box?
Code:
#uname -a
 Linux axon 2.6.7-gentoo-r11 #3 Fri Aug 6 09:19:13 CDT 2004 i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux


emerge -u glibc gave me
Code:
 * Caching service dependencies...
>>> emerge (2 of 2) sys-libs/glibc-2.3.3.20040420-r1 to /
>>> md5 src_uri ;-) glibc-2.3.2.tar.bz2
>>> md5 src_uri ;-) glibc-linuxthreads-2.3.2.tar.bz2
>>> md5 src_uri ;-) glibc-2.3.3-branch-update-20040420.patch.bz2
nptl
 * Checking kernel headers for broken sysctl.h ...
nonptl
 * You have "nptl" in your USE, but your kernel version or
 * architecture does not support it!


and output of /lib/libc.so.6 after compilation is
Code:
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.7 system on 2004-08-10.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.

can enabling SMP in /usr/src/llinux/.config help me?
Code:
# CONFIG_SMP is not set
CONFIG_PREEMPT=y

_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Tue Aug 10, 2004 6:52 pm    Post subject: Reply with quote

ok, i'll come back for NPTL. i'm pretty mad about the linux26-headers name-change -- wtf it is 10x harder now.

here is where i'm at now. finished bootstrap. emerged linux26-headers and unmerged linux-headers. attempted to re-emerge glibc -- it warns me that I WON'T GET NPTL!!!

do i have to re-bootstrap?
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Tue Aug 10, 2004 7:45 pm    Post subject: Reply with quote

attempted tore-bootstrap. in a stroke of pure luck i checked the status just as it told me NPTL wasn't gonna happen. so my question is how do i enable NPTL support after bootstrap?
Back to top
View user's profile Send private message
Half_Elf
n00b
n00b


Joined: 16 Jul 2003
Posts: 1
Location: Montreal, Canada

PostPosted: Tue Aug 10, 2004 8:08 pm    Post subject: Reply with quote

Nice tutorial but I found a very bad error in it.

When you give this CFLAGS example, you are using double "--" syntax that GCC doesn't (seems to) support.
Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe [b]--[/b]fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"


the "--fomit-frame-pointer" was causing error there, I had to change it to "-fomit-frame-pointer".
configure script weregiving me error about "your C compiler cannot create executable file". Pretty confusing, I had hard time to find were this was coming from.
_________________
I'm crazy. Watch out.
Back to top
View user's profile Send private message
OneOfMany
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 108
Location: Portland, OR USA

PostPosted: Tue Aug 10, 2004 9:44 pm    Post subject: Reply with quote

dmitrio:
Yes, you can use nptl on a single CPU box. As I say below...to use nptl you need the 2.6 headers (and to be running a 2.6 kernel...which is the reason you choose "smp" at the LiveCD boot prompt--the "gentoo" kernel is 2.4, the "smp" kernel is 2.6) and to have nptl in your USE= line of make.conf.


thechris:
Did you do this part?
Code:
mkdir /etc/portage
nano -w /etc/portage/package.keywords

(then inside the file you just created...add)
sys-kernel/linux26-headers ~x86

And I assume you removed the old linux-headers then emerged linux26-headers (the reverse of what you said). Assuming you have only the 2.6 headers installed and "nptl" in your use flags, then you should be set when you re-emerge glibc. You are doing this inside a 2.6 version kernel, right?
Back to top
View user's profile Send private message
Snooper
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 182
Location: San Antonio, TX

PostPosted: Wed Aug 11, 2004 3:45 am    Post subject: Reply with quote

http://gentoo-wiki.com/HOWTO_Gentoo_2004.2_for_linux_2.6_and_NPTL

Use the version of this tutorial there i keep it updated more than this one it's to much work to go back and forth.

I'm also working on a stage1 tarball that will be ready to just bootstrap without messing with the 2.6 headers or nptl it's using a custom profile that i made that will take care of it all. only thing it's also using udev by default and gcc-3.4.1 and glibc-2.3.4 it's based on the gcc34 profile but modified to replace devfs with udev and added gentoolkit to the system and added nptl to use in the profile so you don't have to put it in make.conf:-) i'll create a new topic when i release it hopefully this weekend...
_________________
ftp://lila-project.ath.cx
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Wed Aug 11, 2004 12:35 pm    Post subject: Reply with quote

OneOfMany wrote:
Yes, you can use nptl on a single CPU box. As I say below...to use nptl you need the 2.6 headers (and to be running a 2.6 kernel...which is the reason you choose "smp" at the LiveCD boot prompt--the "gentoo" kernel is 2.4, the "smp" kernel is 2.6) and to have nptl in your USE= line of make.conf.

Hmm, I used smp boot up kernel with 2004.2
as you see in output i have nptl in my /etc/make.conf
and compilation just ignored it :(
I used wiki's guide.
Cann't figure out where to dig :(

2 Snooper I left some notes on talk page
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Wed Aug 11, 2004 4:39 pm    Post subject: Reply with quote

has anyone actually gotten this to work because it won't work for me. it keeps saying that i need a new kernel version. i'm assuming its becuase the linux26-headers aren't detected as 2.6 headers by the glibc 2.3.3 ebuilds. is everyone using glibc2.3.4?
Back to top
View user's profile Send private message
zerojay
Veteran
Veteran


Joined: 09 Aug 2003
Posts: 1033

PostPosted: Wed Aug 11, 2004 4:57 pm    Post subject: Reply with quote

thechris wrote:
has anyone actually gotten this to work because it won't work for me. it keeps saying that i need a new kernel version. i'm assuming its becuase the linux26-headers aren't detected as 2.6 headers by the glibc 2.3.3 ebuilds. is everyone using glibc2.3.4?


Nope, worked perfectly fine here for me with glibc 2.3.3.
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Thu Aug 12, 2004 1:32 am    Post subject: Reply with quote

i guess i'm unlucky then.

i wonder if NPTL will affec my acovea runs? if so i guess i should enable it...
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, 4  Next
Page 2 of 4

 
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