Results 1 to 7 of 7

Thread: knoppix 3.3 feb edition will not compile kernel

  1. #1
    Junior Member registered user
    Join Date
    Feb 2004
    Posts
    11

    knoppix 3.3 feb edition will not compile kernel

    Whenever I try to compile any kernel (with default config or otherwise) on the feb edition of knoppix 3.3, make always exits with error 2. The beta edition would compile the kernel sources, but the sound wouldn't work. Has anyone had a problem with this?

  2. #2
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272

    Re: knoppix 3.3 feb edition will not compile kernel

    Quote Originally Posted by coindood
    Whenever I try to compile any kernel (with default config or otherwise) on the feb edition of knoppix 3.3, make always exits with error 2.
    Do you mean something like this?

    root@abc:/usr/src/linux# make menuconfig
    HOSTCC scripts/fixdep
    In file included from /usr/include/bits/posix1_lim.h:130,
    from /usr/include/limits.h:144,
    from /usr/lib/gcc-lib/i486-linux/3.3.3/include/limits.h:122,
    from /usr/lib/gcc-lib/i486-linux/3.3.3/include/syslimits.h:7,
    from /usr/lib/gcc-lib/i486-linux/3.3.3/include/limits.h:11,
    from scripts/fixdep.c:105:
    /usr/include/bits/local_lim.h:36:26: linux/limits.h: Tiedostoa tai hakemistoa e
    i ole
    scripts/fixdep.c: In function `use_config':
    scripts/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
    scripts/fixdep.c:193: error: (Each undeclared identifier is reported only once
    scripts/fixdep.c:193: error: for each function it appears in.)
    scripts/fixdep.c:193: warning: unused variable `s'
    scripts/fixdep.c: In function `parse_dep_file':
    scripts/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
    scripts/fixdep.c:289: warning: unused variable `s'
    make[1]: *** [scripts/fixdep] Error 1
    make: *** [scripts/fixdep] Error 2
    root@abc:/usr/src/linux

    Make sure you have right asm symlink in /usr/src/kernel-source-2.6.x/iinclude pointing to asm-i386:

    root@abc:/usr/src/kernel-source-2.6.4/include# la
    lrwxrwxrwx 1 root root 8 2004-04-05 19:27 asm -> asm-i386


    There could be something wrong with symbolic link /usr/include/asm too (kernel headers).

    You have removed old symlink linux 'rm -f linux' and made a new one pointing to your new kernel-source, e.g 'ln -s /usr/src/kernel-source-2.6.5 linux'?


    I have also had difficulties to compile the new kernel but after playing some times with asm and asm-generic symlinks I have succeeded. But there's something wrong somewhere, I agree.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    276
    coindood, welcome to the fold and if you want, check out posts under my nick. I did about a dozen kernel compiles and almost as many installs trying to get lm sensors to work with the last knoppix kernel - 2.4.24-xfs. Though I managed to trick out and get them to boot, programs would not compile without error against that kernel.

    I am far from a distro proselitzer (sp?) but I finally switched to Kanotix (knoppix derivative) where the developer had a script for installing proper kernel source after a hd install and it works! I cannot believe how much smoother things are going. Including the dreaded lm sensors!

    Everyone who responded to me that had been successful with lm sensors (which absolutely positively needs the running kernel source) had been running 2.2 or 2.4.22, not 2.4.24, as far as I can see. You might want to give the kanotix a try. It is still a baby comparatively (yes, it is wonderful kanotix fans!) and you cannot beat kano's script for getting the source kernel installed.

    Knoppix is fabulous, but if you need kernel source on it, your best bet is http://developer.linuxtag.net/knoppi...Custom_all.deb
    I think a lot of programs will compile against it - lm sensors is the only one I know personally won't.

  4. #4
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272

    Re: knoppix 3.3 feb edition will not compile kernel

    Quote Originally Posted by tr
    I have also had difficulties to compile the new kernel.
    I think the problem is with linux-kernel-headers-knoppix. After removing it and installing linux-kernel-heades with Apt, no problem with 'make menuconfig' anymore

  5. #5
    Junior Member registered user
    Join Date
    Feb 2004
    Posts
    11
    Thanks, everybody. I have been able to compile the kernel, but whenever I boot up, I get a fatal error saying it cannot mount the filesystem and just hangs there. I don't know what's wrong!

  6. #6
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    24
    You are unable to mount the filesystem because Knoppix by default loads filesystem modules through initrd.

    Try compiling your filesystem modules directly into your kernel.

  7. #7
    Junior Member registered user
    Join Date
    May 2004
    Posts
    16
    OK. On the same subject, I am using the Feb 3.3 edition of Knoppix, and I am trying to install Kernel 2.6.4.

    I can get a Kernel compiled, however, firstly, my boot sequence displays a blank screen only, and when KDE finally loads, my mouse doesn't work.


    How do I get the new Kernel running

Similar Threads

  1. How do I install kernel source and config/compile kernel??
    By cfish in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 04-25-2005, 07:31 AM
  2. How to compile the kernel ?
    By davidwahlstedt in forum Customising & Remastering
    Replies: 0
    Last Post: 03-17-2005, 05:42 PM
  3. Kernel compile problem - first Knoppix kernel compile
    By Nigel_Tufnel in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-20-2003, 01:09 PM
  4. how to compile kernel ?
    By nhoxanh in forum General Support
    Replies: 0
    Last Post: 07-28-2003, 04:23 AM
  5. gcc version used to compile Knoppix kernel?
    By thincritter in forum General Support
    Replies: 4
    Last Post: 07-01-2003, 03:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HYNIX HMT31GR7BFR4C-H9 8GB PC3-10600R DDR3-1333MHZ 2Rx4 (LOT OF 8) DRAT-3 picture

HYNIX HMT31GR7BFR4C-H9 8GB PC3-10600R DDR3-1333MHZ 2Rx4 (LOT OF 8) DRAT-3

$999.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Crucial 8GB 1x8GB PC RAM PC3L 12800U DDR3 1600MHz Desktop Memory DIMM picture

Crucial 8GB 1x8GB PC RAM PC3L 12800U DDR3 1600MHz Desktop Memory DIMM

$8.99



[ BULK LOT OF 20 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc. picture

[ BULK LOT OF 20 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc.

$179.99



Team Group Elite+ 16GB (8GBx2) DDR4 2400MHz RAM (TPRD48G2400HC16BK) picture

Team Group Elite+ 16GB (8GBx2) DDR4 2400MHz RAM (TPRD48G2400HC16BK)

$23.99



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$22.45



LOT 2x 16GB (32GB) Corsair Vengeance LPX CMK16GX4M1B3000C15 3000MHz Desktop RAM picture

LOT 2x 16GB (32GB) Corsair Vengeance LPX CMK16GX4M1B3000C15 3000MHz Desktop RAM

$34.99



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel

$33.99



128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM picture

128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM

$127.96



Micron 64GB 3200 REG MTA36ASF8G72PZ-3G2E1 MTA36ASF8G72PZ-3G2B2 Server Memory RAM picture

Micron 64GB 3200 REG MTA36ASF8G72PZ-3G2E1 MTA36ASF8G72PZ-3G2B2 Server Memory RAM

$129.99