Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Compilation problems
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
rsd
n00b
n00b


Joined: 10 Mar 2005
Posts: 1

PostPosted: Thu Mar 10, 2005 9:50 pm    Post subject: Kernel Compilation problems Reply with quote

Edit
Code:
livecd / # ls -l /usr/src/linux
lrwxrwxrwx  1 root root 22 Mar 10 01:50 /usr/src/linux -> linux-2.4.28-gentoo-r8

/Edit

I've followed the handbook to the letter - installing via SSH, and I have had to close and start a new session at one point (if that makes any difference) i redid the chrooting after that cause the genkernel command didnt work at all.

I'm a total noob. (first attempt at installing any linux distro, first time using linux)

I'm running:
Code:
#genkernel all


This is the log (massive, sorry 8O):

Code:
* Gentoo Linux Genkernel; Version 3.1.1b

* Compiling Linux Kernel 2.4.28 for x86...
* kernel: >> Running mrproper...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" mrproper
make[1]: Entering directory `/usr/src/linux-2.4.28-gentoo-r8/arch/i386/boot'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
rm -f tools/build
rm -f setup bootsect zImage compressed/vmlinux.out
rm -f bsetup bbootsect bzImage compressed/bvmlinux.out
make[2]: Entering directory `/usr/src/linux-2.4.28-gentoo-r8/arch/i386/boot/compressed'
rm -f vmlinux bvmlinux _tmp_*
make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r8/arch/i386/boot/compressed'
make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r8/arch/i386/boot'
find . \( -name '*.[oas]' -o -name core -o -name '.*.flags' \) -type f -print \
| grep -v lxdialog/ | xargs rm -f
rm -f kernel/ksyms.lst include/linux/compile.h vmlinux System.map .tmp* drivers/char/consolemap_deftbl.c drivers/video/promcon_tbl.c drivers/char/conmakehash drivers/char/drm/*-mod.c drivers/pci/devlist.h drivers/pci/classlist.h drivers/pci/gen-devlist drivers/zorro/devlist.h drivers/zorro/gen-devlist drivers/sound/bin2hex drivers/sound/hex2hex drivers/atm/fore200e_mkfirm drivers/atm/{pca,sba}*{.bin,.bin1,.bin2} drivers/scsi/aic7xxx/aicasm/aicasm drivers/scsi/aic7xxx/aicasm/aicasm_gram.c drivers/scsi/aic7xxx/aicasm/aicasm_gram.h drivers/scsi/aic7xxx/aicasm/aicasm_macro_gram.c drivers/scsi/aic7xxx/aicasm/aicasm_macro_gram.h drivers/scsi/aic7xxx/aicasm/aicasm_macro_scan.c drivers/scsi/aic7xxx/aicasm/aicasm_scan.c drivers/scsi/aic7xxx/aicasm/aicdb.h drivers/scsi/aic7xxx/aicasm/y.tab.h drivers/scsi/53c700_d.h drivers/tc/lk201-map.c net/khttpd/make_times_h net/khttpd/times.h submenu* drivers/ieee1394/oui.c
rm -rf modules
make -C Documentation/DocBook clean
make[1]: Entering directory `/usr/src/linux-2.4.28-gentoo-r8/Documentation/DocBook'
rm -f core *~
rm -f wanbook.sgml z8530book.sgml mcabook.sgml videobook.sgml kernel-api.sgml parportbook.sgml kernel-hacking.sgml kernel-locking.sgml via-audio.sgml mousedrivers.sgml sis900.sgml deviceiobook.sgml procfs-guide.sgml tulip-user.sgml journal-api.sgml libata.sgml
rm -f  wanbook.dvi  z8530book.dvi  mcabook.dvi  videobook.dvi  kernel-api.dvi  parportbook.dvi  kernel-hacking.dvi  kernel-locking.dvi  via-audio.dvi  mousedrivers.dvi  sis900.dvi  deviceiobook.dvi  procfs-guide.dvi  tulip-user.dvi  journal-api.dvi  libata.dvi  wanbook.aux  z8530book.aux  mcabook.aux  videobook.aux  kernel-api.aux  parportbook.aux  kernel-hacking.aux  kernel-locking.aux  via-audio.aux  mousedrivers.aux  sis900.aux  deviceiobook.aux  procfs-guide.aux  tulip-user.aux  journal-api.aux  libata.aux  wanbook.tex  z8530book.tex  mcabook.tex  videobook.tex  kernel-api.tex  parportbook.tex  kernel-hacking.tex  kernel-locking.tex  via-audio.tex  mousedrivers.tex  sis900.tex  deviceiobook.tex  procfs-guide.tex  tulip-user.tex  journal-api.tex  libata.tex  wanbook.log  z8530book.log  mcabook.log  videobook.log  kernel-api.log  parportbook.log  kernel-hacking.log  kernel-locking.log  via-audio.log  mousedrivers.log  sis900.log  deviceiobook.log  procfs-guide.log  tulip-user.log  journal-api.log  libata.log  wanbook.out  z8530book.out  mcabook.out  videobook.out  kernel-api.out  parportbook.out  kernel-hacking.out  kernel-locking.out  via-audio.out  mousedrivers.out  sis900.out  deviceiobook.out  procfs-guide.out  tulip-user.out  journal-api.out  libata.out
rm -f  parport-share.png  parport-multi.png  parport-structure.png  parport-share.eps  parport-multi.eps  parport-structure.eps
rm -f procfs_example.sgml
make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r8/Documentation/DocBook'
find . \( -size 0 -o -name .depend \) -type f -print | xargs rm -f
rm -f include/linux/autoconf.h include/linux/version.h lib/crc32table.h lib/gen_crc32table drivers/net/hamradio/soundmodem/sm_tbl_{afsk1200,afsk2666,fsk9600}.h drivers/net/hamradio/soundmodem/sm_tbl_{hapn4800,psk4800}.h drivers/net/hamradio/soundmodem/sm_tbl_{afsk2400_7,afsk2400_8}.h drivers/net/hamradio/soundmodem/gentbl drivers/sound/*_boot.h drivers/sound/.*.boot drivers/sound/msndinit.c drivers/sound/msndperm.c drivers/sound/pndsperm.c drivers/sound/pndspini.c drivers/atm/fore200e_*_fw.c drivers/atm/.fore200e_*.fw .version .config* config.in config.old scripts/tkparse scripts/kconfig.tk scripts/kconfig.tmp scripts/lxdialog/*.o scripts/lxdialog/lxdialog .menuconfig.log include/asm .hdepend scripts/mkdep scripts/split-include scripts/docproc /usr/src/linux-2.4.28-gentoo-r8/include/linux/modversions.h kernel.spec
rm -rf include/config /usr/src/linux-2.4.28-gentoo-r8/include/linux/modules
make -C Documentation/DocBook mrproper
make[1]: Entering directory `/usr/src/linux-2.4.28-gentoo-r8/Documentation/DocBook'
rm -f core *~
rm -f wanbook.sgml z8530book.sgml mcabook.sgml videobook.sgml kernel-api.sgml parportbook.sgml kernel-hacking.sgml kernel-locking.sgml via-audio.sgml mousedrivers.sgml sis900.sgml deviceiobook.sgml procfs-guide.sgml tulip-user.sgml journal-api.sgml libata.sgml
rm -f  wanbook.dvi  z8530book.dvi  mcabook.dvi  videobook.dvi  kernel-api.dvi  parportbook.dvi  kernel-hacking.dvi  kernel-locking.dvi  via-audio.dvi  mousedrivers.dvi  sis900.dvi  deviceiobook.dvi  procfs-guide.dvi  tulip-user.dvi  journal-api.dvi  libata.dvi  wanbook.aux  z8530book.aux  mcabook.aux  videobook.aux  kernel-api.aux  parportbook.aux  kernel-hacking.aux  kernel-locking.aux  via-audio.aux  mousedrivers.aux  sis900.aux  deviceiobook.aux  procfs-guide.aux  tulip-user.aux  journal-api.aux  libata.aux  wanbook.tex  z8530book.tex  mcabook.tex  videobook.tex  kernel-api.tex  parportbook.tex  kernel-hacking.tex  kernel-locking.tex  via-audio.tex  mousedrivers.tex  sis900.tex  deviceiobook.tex  procfs-guide.tex  tulip-user.tex  journal-api.tex  libata.tex  wanbook.log  z8530book.log  mcabook.log  videobook.log  kernel-api.log  parportbook.log  kernel-hacking.log  kernel-locking.log  via-audio.log  mousedrivers.log  sis900.log  deviceiobook.log  procfs-guide.log  tulip-user.log  journal-api.log  libata.log  wanbook.out  z8530book.out  mcabook.out  videobook.out  kernel-api.out  parportbook.out  kernel-hacking.out  kernel-locking.out  via-audio.out  mousedrivers.out  sis900.out  deviceiobook.out  procfs-guide.out  tulip-user.out  journal-api.out  libata.out
rm -f  parport-share.png  parport-multi.png  parport-structure.png  parport-share.eps  parport-multi.eps  parport-structure.eps
rm -f procfs_example.sgml
rm -f  wanbook.ps  z8530book.ps  mcabook.ps  videobook.ps  kernel-api.ps  parportbook.ps  kernel-hacking.ps  kernel-locking.ps  via-audio.ps  mousedrivers.ps  sis900.ps  deviceiobook.ps  procfs-guide.ps  tulip-user.ps  journal-api.ps  libata.ps  wanbook.pdf  z8530book.pdf  mcabook.pdf  videobook.pdf  kernel-api.pdf  parportbook.pdf  kernel-hacking.pdf  kernel-locking.pdf  via-audio.pdf  mousedrivers.pdf  sis900.pdf  deviceiobook.pdf  procfs-guide.pdf  tulip-user.pdf  journal-api.pdf  libata.pdf
rm -f -r  wanbook  z8530book  mcabook  videobook  kernel-api  parportbook  kernel-hacking  kernel-locking  via-audio  mousedrivers  sis900  deviceiobook  procfs-guide  tulip-user  journal-api  libata
rm -f .depend
rm -f /usr/src/linux-2.4.28-gentoo-r8/scripts/mkdep-docbook
rm -rf DBTOHTML_OUTPUT*
make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r8/Documentation/DocBook'
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.4
*         Previous config backed up to .config.bak
*         >> Running oldconfig...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" oldconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
/bin/sh scripts/Configure -d arch/i386/config.in
#
# Using defaults found in .config
#
*
* Code maturity level options
*


Then piles of stuff which looks like it would be little help, then:
Code:
CRC32 functions (CONFIG_CRC32) [Y/m/n/?]
Hotplug firmware loading support (EXPERIMENTAL) (CONFIG_FW_LOADER) [Y/m/n/?]

*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.

* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" clean
make[1]: Entering directory `/usr/src/linux-2.4.28-gentoo-r8/arch/i386/boot'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
rm -f tools/build
rm -f setup bootsect zImage compressed/vmlinux.out
rm -f bsetup bbootsect bzImage compressed/bvmlinux.out


Then more stuff, then:

Code:
scripts/mkdep -- `find /usr/src/linux-2.4.28-gentoo-r8/include/asm /usr/src/linux-2.4.28-gentoo-r8/include/linux /usr/src/linux-2.4.28-gentoo-r8/include/scsi /usr/src/linux-2.4.28-gentoo-r8/include/net /usr/src/linux-2.4.28-gentoo-r8/include/math-emu \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
scripts/mkdep -- init/*.c > .depend
*         >> Compiling 2.4.28 bzImage...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
. scripts/mkversion > .tmpversion
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28-gentoo-r8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c


aaaargh, more stuff followed by:
Code:
ld -r -o pwc.o pwc-if.o pwc-misc.o pwc-ctrl.o pwc-uncompress.o
ld -r -o auerswald.o auerbuf.o auerchain.o auerchar.o auermain.o auerisdn.o auerisdn_b.o
make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r8/drivers/usb'
make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r8/drivers'
* Gentoo Linux Genkernel; Version 3.1.1b

* ERROR: Failed to compile the "modules" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
livecd / #


Any advice? Anything else I can provide that might help you help me? :D

Thanks

Ross
Back to top
View user's profile Send private message
hollerith
Apprentice
Apprentice


Joined: 21 May 2004
Posts: 204

PostPosted: Thu Mar 10, 2005 10:29 pm    Post subject: make modules Reply with quote

Failed to make modules isn't much to go on.

Try this :

(Others may disagree)

cd /usr/src/linux
make modules

I'm hoping it picks up the kernel config file generated by genkernel and outputs something more helpful.
Back to top
View user's profile Send private message
cottonmouthking
n00b
n00b


Joined: 12 Mar 2005
Posts: 1

PostPosted: Sat Mar 12, 2005 6:41 pm    Post subject: Reply with quote

Oh, man...I got the kernel compile error AND the chroot mystery. The really frustrating thing about the compile error
Code:
ERROR: failed to compile the "modules" target
is that it doesn't appear to occur until the bitter end of the compile...I mean I went through every page of genkernel.log (and there must be a few hundred of em I swear) and there doesn't appear to be any problem until the end.
Meanwhile,
Code:
chroot /mnt/gentoo /bin/bash
does...nothing! Nothing changes, not the command shell, not the command prompt...AND, as ridiculous as this must sound, I now appear to be trapped in the cd environment...ever since the kernel compile, the
Quote:
gentoo
directory has disappeared. From:

Code:
LiveCD/#


typing either
Code:
 cd /mnt/gentoo
OR
Code:
 cd mnt/gentoo
there is no gentoo directory.
_________________
reality is for people who can't handle drugs
Back to top
View user's profile Send private message
hollerith
Apprentice
Apprentice


Joined: 21 May 2004
Posts: 204

PostPosted: Sat Mar 12, 2005 9:46 pm    Post subject: genkernel all fails - need more info! Reply with quote

Thusfar you've unpacked some stage out into some filesystem you created. You've got all the source code and a basic system right there. You've chrooted into this basic system. You've set the appropriate compile flags for your hardware. You've got genkernel to automatically build you a kernel just like the fat LiveCD one plus all the modules (drivers etc) it thinks you need.

Except that at the end, it says 'failed to build modules'. Why? There must be some more compile errors (don't worry about warnings that flash by like 'function is deprecated' or 'never declared that' type 'oooh isn't he a naughty developer stuff'). Are you still in the chrooted environment? /mnt/gentoo is in the LiveCD environment. Try lspci - the LiveCD has it, your system probably doesn't. Type uname -r, then pwd.

Are you sure it has failed? Have you got anything in /lib/kernel-2.4-whatever/modules/ at all? Or did it just make the bzImage (the kernel) and then go "modules? what modules?".

If you are not still in go back a couple of Handbook steps; try rebooting from the LiveCD, mounting the filesystem and chrooting back into your basic system then:

Code:

cd /usr/src/linux


You should have a .config file generated by genkernel here. (If not here then in /etc/genkernel or something)

EDIT:/usr/share/genkernel/x86/kernel-config-2.4 actually

Now try manually compiling the modules:

Code:

make modules


or if you can sit through the kernel again

Code:

make deps && make bzImage modules


What happens?
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