View previous topic :: View next topic |
Author |
Message |
MxxCon n00b
Joined: 01 Apr 2005 Posts: 31
|
Posted: Wed Jan 25, 2006 4:02 pm Post subject: Can't compile kernel [solved] |
|
|
i finally got around to updating my kernel. i'm currently running 2.6.12-gentoo-r10 and decided to upgrade to 2.6.15-gentoo-r1(latest stable at this time).
however upon emering new kernel, i'm unable to compile using either genkernel or plain 'make menuconfig' or anything else related to that..
here's log output of genkernel
Code: | * Gentoo Linux Genkernel; Version 3.3.10[0m
* Running with options: --menuconfig --bootloader=grub all
* Linux Kernel 2.6.15-gentoo-r1[0m for x86[0m...
* kernel: >> Running mrproper...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" mrproper
CLEAN .config include/linux/version.h
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.6
* Previous config backed up to .config.bak
* >> Running oldconfig...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" oldconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
* Gentoo Linux Genkernel; Version 3.3.10[0m
* Running with options: --menuconfig --bootloader=grub all
* ERROR: Failed to compile the "oldconfig" 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!
*
* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" clean
awk: cmd. line:1: fatal: cannot open file `/usr/src/linux-2.6.15-gentoo-r1/include/linux/version.h' for reading (No such file or directory)
* config: >> Invoking menuconfig...
COMMAND: make j1 menuconfig
* Gentoo Linux Genkernel; Version 3.3.10[0m
* Running with options: --menuconfig --bootloader=grub all
* ERROR: Failed to compile the "menuconfig" 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!
* |
Code: | wks09 linux # emerge --info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups curl directfb dts eds emboss encode exif expat fam ffmpeg flac foomaticdb fortran gdbm ggi gif glut gpm gstreamer gtk gtk2 hal idn imagemagick imlib java jpeg kde kdeenablefinal lcms libcaca libg++ libwww mad mikmod mng motif mp3 mpeg mxx ncurses nls nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl pic png python qt quicktime readline samba sdl spell sse sse2 ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS |
during emerge i noticed one (possibly important) error.
right after it finished applying patches i got the following message
Code: | awk: cmd. line:1: fatal: cannot open file `/var/tmp/portage/gentoo-sources-2.6.15-r1/work/linux-2.6.15-gentoo-r1/include/linux/version.h' for reading (No such file or directory) |
please help.
Last edited by MxxCon on Thu Jan 26, 2006 2:41 pm; edited 1 time in total |
|
Back to top |
|
|
sundialsvc4 Guru
Joined: 10 Nov 2005 Posts: 436
|
Posted: Wed Jan 25, 2006 6:48 pm Post subject: |
|
|
I don't have an answer for you, but I can say that I did notice the same "error message" that you did. It concerned me too, but my latest kernel update did compile in spite of it. |
|
Back to top |
|
|
MxxCon n00b
Joined: 01 Apr 2005 Posts: 31
|
Posted: Wed Jan 25, 2006 7:16 pm Post subject: |
|
|
after bashing my head a bit, i think i solved it.
looking at "asm/socket.h: No such file or directory " error i started digging around.
so i created a symlink in /usr/include named "asm" pointing to /usr/src/linux/include/asm-i386.
after that it seems like everything compiled w/o any problems.
going to reboot now to make sure...
update: yup, i'm back and everything seem to be working just dandy |
|
Back to top |
|
|
|
|
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
|
|