Compile Error [SOLVED]
wisemagic
Status: New User - Welcome
Joined: 21 Jul 2013
Posts: 4
Reply Quote
Hi, I'm kind of new at compiling kernels, but have done 8 or 9 from https://www.kernel.org/ without much problem.

Basically after I get the archive downloaded and extracted I run these commands

tar xvf linux-3.10.1.tar.xz
cd linux-3.10.1/
cat /boot/config-`uname -r`>.config
make oldconfig
make-kpkg clean
make menuconfig
time fakeroot make-kpkg -j6 --initrd kernel_image kernel_headers
sudo dpkg -i ../linux-image-3.10.1_3.10.1-10.00.Custom_amd64.deb ../linux-headers-3.10.1_3.10.1-10.00.Custom_amd64.deb

inxi -F
System: Host liberty Kernel 3.10.1 x86_64 (64 bit) Distro SolydXK 1 solydxk
CPU: Hexa core Intel Core i7-3930K (-HT-MCP-) cache 12288 KB flags (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips 38398.7
Clock Speeds: (1) 1200.00 MHz (2) 1200.00 MHz (3) 1200.00 MHz (4) 1200.00 MHz (5) 1200.00 MHz (6) 1200.00 MHz (7) 1200.00 MHz (8) 1200.00 MHz (9) 1200.00 MHz (10) 1200.00 MHz (11) 1200.00 MHz (12) 1200.00 MHz
Graphics: Card NVIDIA GF114 [GeForce GTX 560] X.Org 1.12.4 Res: 1920x1080@60.0hz
GLX Renderer GeForce GTX 560/PCIe/SSE2 GLX Version 4.3.0 NVIDIA 319.32 Direct Rendering Yes
Audio: Card-1 Intel C600/X79 series chipset High Definition Audio Controller driver snd_hda_intel BusID: 00:1b.0
Card-2 NVIDIA GF114 HDMI Audio Controller driver snd_hda_intel BusID: 02:00.1
Sound: Advanced Linux Sound Architecture Version k3.10.1
Network: Card-1 Broadcom NetLink BCM57781 Gigabit Ethernet PCIe driver tg3 v: 3.132 BusID: 07:00.0
Card-2 Ralink corp. RT3062 Wireless 802.11n 2T/2R driver rt2800pci v: 2.3.0 BusID: 0b:00.0
Disks: HDD Total Size: 400.1GB (22.1% used) 1: /dev/sda Corsair_Force_3 240.1GB
2: /dev/sdf HTS541616J9SA00 160.0GB
Partition: ID:/ size: 220G used: 29G (14%) fs: rootfs ID:/ size: 220G used: 29G (14%) fs: ext4
Sensors: System Temperatures: cpu: 42.0C mobo: 43.0C gpu: 0.0:40C
Fan Speeds (in rpm): cpu: N/A fan-1: 0 fan-2: 2170 fan-3: 0 fan-4: 0 fan-5: 2109
Info: Processes 288 Uptime 32 min Memory 3906.5/15998.3MB Runlevel 2 Client Shell inxi 1.4.23

The CPU is running ondemand governor, and I'm overclocked to 4.0Ghz in the eUFI. And, I'm not running a swap partition and have disabled it in the previous kernels that I've compiled.

I downloaded zen-kernel-3.10-master, and extracted it
When I begin the
time fakeroot make-kpkg -j6 --initrd kernel_image kernel_headers
I abort with
fs/open.c:35:22: fatal error: internal.h: No such file or directory
compilation terminated.

Not sure where to go from this. I'm looking to squeeze more performance from this machine, and had heard your kernel would be my best choice.

Any guidance would surely be appreciated. Thanks

EDIT: THIS HAS BEEN RESOLVED.

I don't know if there was a problem with extracting the source files from the .zip file, but internal.h was a symbolic link. I replaced it with the file from git, and this error went away.

I then ran into several errors ( files not found ) in the drivers/ata section. I simply copied the missing files from kernel source 3.10.1 that I had downloaded from kernel.org.
Compile completed, and kernel is now installed, up and running. Thanks!
Back to top
arclance
Status: Interested
Joined: 26 May 2012
Posts: 41
Reply Quote
If you downloaded the github branch in zip format your probably ran into a memory use bug in unzip that affects large archives.
:: Quote ::

When unzipping some large zipfiles with many entries, unzip may
sometimes treat regular files as symlinks if a symlink appeared earlier
in the zipfile. This can be seen with:

...

The problem seems to be that unzip reuses memory without properly
reinitializing it. Some discussion (and another example), along with a
patch that clears up the problem can be found here:

If that is the case just use "git clone" in the future to work around it until the bug is fixed in Debian.
Back to top
wisemagic
Status: New User - Welcome
Joined: 21 Jul 2013
Posts: 4
Reply Quote
Thanks. I do remember something about the zip problem. I suppose that would also have been the problem with the missing files too. I had used zip, simply because the file was offered by a link to the zip.
I prefer tar.gz or tar.xz ( tar.xz is what kernel.org uses now ).

All worked out now. Thanks again.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours