You are not logged in.

#1 2010-01-20 10:37:35

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Can't compile any kernel newer than 2.6.32.2 [solved]

Hi,
I'm running Arch i686 (fully updated) and a custom kernel (no patches, just a custom config). This always worked fine without any problems. I'm using my own kernel compile script for this task. I know there are PKGBUILDS for this, but I like it the way it is... The problem is I can't compile 2.6.32.3 and 2.6.32.4. All earlier kernels work still fine and can be compiled but with both of them I always become error-messages when trying to make the kernel:

*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

scripts/kconfig/conf -s arch/x86/Kconfig
  CLEAN   /home/goldstein/Codes/new-kernel/2.6.32.4-van-1/linux-2.6.32.4
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CLEAN   .tmp_versions
  HOSTCC  scripts/pnmtologo
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
fixdep: scripts/.pnmtologo.d: No such file or directory
make[1]: *** [scripts/pnmtologo] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/bounds.s
  GEN     include/linux/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  HOSTCC  scripts/mod/sumversion.o
  GEN     include/asm/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTLD  scripts/mod/modpost
make: *** [scripts] Error 2

Any idea what goes wrong since 2.6.32.3? Has the make command changed (I highlighted it in the pastebin-link above) ?

Last edited by Rorschach (2010-01-21 13:16:43)

Offline

#2 2010-01-20 23:48:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Can't compile any kernel newer than 2.6.32.2 [solved]

Interesting.  I've not tried 2.6.32.3 yet, but I do have a custom kernel 2.6.32.2 as well as the ARCH kernel.  Your make output seems to be unhappy with a missing script called pnmtologo.

These files exist in my source trees:
/usr/src/linux-2.6.32-ARCH/scripts/.pnmtologo.cmd
/usr/src/linux-2.6.32-ARCH/scripts/pnmtologo
/usr/src/linux-2.6.32-ARCH/scripts/pnmtologo.c
/usr/src/linux-2.6.32.2/scripts/.pnmtologo.cmd
/usr/src/linux-2.6.32.2/scripts/pnmtologo
/usr/src/linux-2.6.32.2/scripts/pnmtologo.c

Look to see if these files exist in your 2.6.32.3 tree.
If they are missing from the tree, you might try symlinking to these files elsewhere on your system (YMMV)
You might also try turning off the logo options in your config file.  It might work.

This looks like it could be a bug in the packaging, but since you are using source from kernel.org it seems unlikely.
If the files do exist in the tree, it could be a permissions problem.
Based upon what I see, I assume you are expecting the Tux logo, not the Arch logo.

[edit: fixed typo]

Last edited by ewaller (2010-01-20 23:50:35)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-01-21 13:16:13

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: Can't compile any kernel newer than 2.6.32.2 [solved]

Hi,
I got the problem fixed. I changed two things:
1.) I now do a "make mrproper" after extracting the archive
2.) I now just compile it with "make -j3" and don't execute a "make clean" anymore

One of this things fixed the problem and I can now compile 2.6.32.3+ kernels smile .

Offline

Board footer

Powered by FluxBB