Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge gentoo-sources doesn't create the /usr/src/linux dir
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dkostic
Apprentice
Apprentice


Joined: 24 May 2006
Posts: 220
Location: Madison, NJ

PostPosted: Wed May 24, 2006 2:40 am    Post subject: emerge gentoo-sources doesn't create the /usr/src/linux dir Reply with quote

Hey everybody! I'm running a stage 1 install of gentoo 2006.0 onto a brand-new Toshiba Satellite A105 laptop (1.7 mHz Celeron M processor, 512 Mb RAM, 100 Gb hard drive). I've done this before, so I'm not a total newbie, but something weird happens when I try to emerge the gentoo-sources. Portage seems to emerge the package correctly and without incident, but when I ls, I get...

Code:

livecd src # ls -al /usr/src/
total 8
drwxr-xr-x   2 root root 4096 May 23 16:15 .
drwxr-xr-x  13 root root 4096 May 22 23:02 ..
-rw-r--r--   1 root root    0 Feb 13 18:03 .keep
lrwxrwxrwx   1 root root   22 May 23 16:15 linux -> linux-2.6.16-gentoo-r8


The problem is that linux-2.6.16-gentoo-r8 isn't a directory, and I can't change dirs....

Code:

livecd src # cd /usr/src/linux
bash: cd: /usr/src/linux: No such file or directory


...which means I can't configure the kernel :cry:. I've seen other posts in this forum where people have similar problems, but none of them clearly explain why this is happening (it doesn't happen on my desktop). Is this supposed to happen (something new in 2006.0?) or am I doing something wrong? Any help will be much appreciated.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed May 24, 2006 2:43 am    Post subject: Reply with quote

From the code listings you posted, it looks like you aren't inside the chroot. It looks to me like you are listing the directories in the ramdisk created by the livecd. What does "ls -la /mnt/gentoo/usr/src" show?
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
dkostic
Apprentice
Apprentice


Joined: 24 May 2006
Posts: 220
Location: Madison, NJ

PostPosted: Wed May 24, 2006 4:10 am    Post subject: Reply with quote

I'm pretty sure I did chroot, and anyway, I get...

Code:

livecd src # ls -al /mnt/gentoo/usr/src
ls: /mnt/gentoo/usr/src: No such file or directory


...and even...

Code:

livecd src # ls -al /mnt/gentoo
ls: /mnt/gentoo: No such file or directory


(Thanks for the reply though!)
Back to top
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Wed May 24, 2006 4:56 am    Post subject: Reply with quote

Your symlink points to a non-existent directory. Try remergring the kernel sources
Code:
emerge gentoo-sources
Back to top
View user's profile Send private message
dkostic
Apprentice
Apprentice


Joined: 24 May 2006
Posts: 220
Location: Madison, NJ

PostPosted: Wed May 24, 2006 5:03 am    Post subject: Reply with quote

I've tried that already; it doesn't do anything. Here's the output though, if you can see something I can't...

Code:

livecd src # emerge gentoo-sources
Calculating dependencies... done!
>>> Emerging (1 of 1) sys-kernel/gentoo-sources-2.6.16-r8 to /
>>> Creating Manifest for /usr/portage/sys-kernel/gentoo-sources
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking linux-2.6.16.tar.bz2 ;-)
>>> checking genpatches-2.6.16-10.base.tar.bz2 ;-)
>>> checking genpatches-2.6.16-10.extras.tar.bz2 ;-)
>>> Checking linux-2.6.16.tar.bz2's mtime...
>>> Checking genpatches-2.6.16-10.base.tar.bz2's mtime...
>>> Checking genpatches-2.6.16-10.extras.tar.bz2's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> It appears that gentoo-sources is already compiled; skipping.
>>> (clean to force compilation)
>>> It appears that gentoo-sources has already been tested; skipping.

>>> Install gentoo-sources-2.6.16-r8 into /var/tmp/portage/gentoo-sources-2.6.16-r8/image/ category sys-kernel
chown: cannot access `*': No such file or directory
chmod: cannot access `*': No such file or directory
/usr/portage/eclass/kernel-2.eclass: line 561: cd: /var/tmp/portage/gentoo-sources-2.6.16-r8/work/linux-2.6.16-gentoo-r8: No such file or directory
>>> Copying sources ...
/usr/portage/eclass/kernel-2.eclass: line 579: /var/tmp/portage/gentoo-sources-2.6.16-r8/work/linux-2.6.16-gentoo-r8/patches.txt: No such file or directory
sed: can't read Documentation/DocBook/Makefile: No such file or directory
 * Installing manpages ...
make: *** No rule to make target `installmandocs'.  Stop.                                                             [ !! ]sed: can't read Documentation/DocBook/Makefile: No such file or directory
mv: cannot stat `/var/tmp/portage/gentoo-sources-2.6.16-r8/work/linux*': No such file or directory
>>> Completed installing gentoo-sources-2.6.16-r8 into /var/tmp/portage/gentoo-sources-2.6.16-r8/image/

man:
./
./usr/
./usr/src/
>>> Done.
>>> Extracting info
>>> Extracting gentoo-sources-2.6.16-r8
>>> Merging sys-kernel/gentoo-sources-2.6.16-r8 to /
--- /usr/
--- /usr/src/
>>> Safely unmerging already-installed instance...
bzip2: Output file /var/db/pkg/sys-kernel/gentoo-sources-2.6.16-r8/environment already exists.
--- !empty dir /usr/src
--- !empty dir /usr
>>> Original instance of package unmerged safely.

 * After installing a new kernel of any version, it is important
 * that you have the appropriate /etc/modules.autoload.d/kernel-X.Y
 * created (X.Y is the first 2 parts of your new kernel version)

 * For example, this kernel will require:
 * /etc/modules.autoload.d/kernel-2.6

 * If you are upgrading from a previous kernel, you may be interested
 * in the following documents:
 *   - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
 *   - 2.4 to 2.6 migration guide: http://www.gentoo.org/doc/en/migration-to-2.6.xml
 * As of 2.6.13 the support for devfs has been removed.
 * You will be required to either manage a static /dev
 * or to ensure that udev is starting on boot.


 * For more info on this patchset, and how to report problems, see:
 * http://dev.gentoo.org/~dsd/genpatches
>>> Regenerating /etc/ld.so.cache...
>>> sys-kernel/gentoo-sources-2.6.16-r8 merged.

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 4 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.


...and then...

Code:

livecd src # ls -al linux
lrwxrwxrwx  1 root root 22 May 23 16:15 linux -> linux-2.6.16-gentoo-r8
livecd src # cd linux
bash: cd: linux: No such file or directory


...so no luck. Thanks though!
Back to top
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Wed May 24, 2006 5:10 am    Post subject: Reply with quote

An excerpt of your output
Code:
>>> Install gentoo-sources-2.6.16-r8 into /var/tmp/portage/gentoo-sources-2.6.16-r8/image/ category sys-kernel
chown: cannot access `*': No such file or directory
chmod: cannot access `*': No such file or directory
/usr/portage/eclass/kernel-2.eclass: line 561: cd: /var/tmp/portage/gentoo-sources-2.6.16-r8/work/linux-2.6.16-gentoo-r8: No such file or directory
>>> Copying sources ...
/usr/portage/eclass/kernel-2.eclass: line 579: /var/tmp/portage/gentoo-sources-2.6.16-r8/work/linux-2.6.16-gentoo-r8/patches.txt: No such file or directory
sed: can't read Documentation/DocBook/Makefile: No such file or directory
 * Installing manpages ...
make: *** No rule to make target `installmandocs'.  Stop.                                                             [ !! ]sed: can't read Documentation/DocBook/Makefile: No such file or directory
mv: cannot stat `/var/tmp/portage/gentoo-sources-2.6.16-r8/work/linux*': No such file or directory


See all of those "No such file or directory" errors? I don't think you're properly chrooted or you missed a step or something. You could always log out and then back in, and then re-enter the chroot just to make sure.
Back to top
View user's profile Send private message
dkostic
Apprentice
Apprentice


Joined: 24 May 2006
Posts: 220
Location: Madison, NJ

PostPosted: Wed May 24, 2006 6:00 am    Post subject: Reply with quote

Hmm...didn't notice those "no such file or directory"'s in the output. I did what Ast0r suggests: logged out, logged back in, and chrooted into the new environment. Here's what I did...

Code:

livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update
>>> Regenerating /etc/ld.so.cache...
livecd / # source /etc/profile


Nothing weird there, I think. (This is all I have to do to chroot, right?) Then I noticed that my /etc/make.profile wasn't symlinked to anything...

Code:

livecd / # ls -l /etc/make.profile/
total 12
-rw-r--r--  1 root root 607 May 18 09:36 make.defaults
-rw-r--r--  1 root root 663 Jan 18 15:19 packages
-rw-r--r--  1 root root   3 Jan 18 15:19 parent
livecd / # ln -snf /usr/portage/profiles/default-linux/x86/2006.0/ /etc/make.profile/
livecd / # ls -al /etc/make.profile/
total 20
drwxr-xr-x   2 root root 4096 May 23 19:38 .
drwxr-xr-x  10 root root 4096 May 22 20:36 ..
lrwxrwxrwx   1 root root   47 May 23 19:38 2006.0 -> /usr/portage/profiles/default-linux/x86/2006.0/
-rw-r--r--   1 root root  607 May 18 09:36 make.defaults
-rw-r--r--   1 root root  663 Jan 18 15:19 packages
-rw-r--r--   1 root root    3 Jan 18 15:19 parent


I think this was also the case before I had logged out. However, I unmerged and then merged gentoo-sources again, and I still get the same issue as before; I still can't cd into /usr/src/linux. But maybe you guys are onto something with the chroot; why wasn't /etc/make.profile linked to anything right after I chrooted? Do you think that might have something to do with the /usr/src/linux issue?
Back to top
View user's profile Send private message
dkostic
Apprentice
Apprentice


Joined: 24 May 2006
Posts: 220
Location: Madison, NJ

PostPosted: Wed May 24, 2006 6:09 am    Post subject: Reply with quote

One more thing, maybe it's related. I just noticed that /etc/mtab doesn't exist in my chrooted (I think) environment.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed May 24, 2006 8:12 pm    Post subject: Reply with quote

I think your best bet would be to start over at the point where you format your partitions, then continue following the stage3 installation manual.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
dkostic
Apprentice
Apprentice


Joined: 24 May 2006
Posts: 220
Location: Madison, NJ

PostPosted: Wed May 24, 2006 8:18 pm    Post subject: Reply with quote

That's actually what I spent this morning doing :( . Thanks to you guys for all your help! I'm leaving this thread open in case others are having the same errors, and since we never exactly figured out what was going on.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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