LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   make bzImage failure: make[1]: *** [init/version.o] Error 1 (https://www.linuxquestions.org/questions/linux-kernel-70/make-bzimage-failure-make%5B1%5D-%2A%2A%2A-%5Binit-version-o%5D-error-1-a-464631/)

nmainak 07-16-2006 03:59 PM

make bzImage failure: make[1]: *** [init/version.o] Error 1
 
Hi all,

Im running suse 9.3 and i downloaded the kernel 2.6.17.5 and installed
it in /home/nick/build/. I also did:
- make mrproper
- make menuconfig and configured the kernel
(I saved the configration as kernel-config )
- make clean
- make bzImage

After this last step, I get the following output:
Code:

nkiguta@linux:~/build/linux-2.6.17.5-test9> make bzImage
  CHK    include/linux/version.h
  SPLIT  include/linux/autoconf.h -> include/config/*
  CC      arch/i386/kernel/asm-offsets.s
  GEN    include/asm-i386/asm-offsets.h
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/genksyms/lex.o
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  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
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
  CC      init/main.o
  CHK    include/linux/compile.h
  UPD    include/linux/compile.h
  CC      init/version.o
init/version.c:18: error: syntax error before "value"
make[1]: *** [init/version.o] Error 1
make: *** [init] Error 2
nkiguta@linux:~/build/linux-2.6.17.5-test9>

Has anyone seen this before? IM basically trying to compile this new
kernel to use in learning to write device drivers.

I opened the file version.c and saw that theres a macro defined
version_string which has the same name as a function that comes right
under it. Is this the problem and how do i fix it w/out messing up any
other code that depends on either the macro or function? If not, how do
I fix this issue? Thank you so much!

Nick../
BTW, I checked and verified that I have the correct versions of all
required tools for kernel compilation.

Berto 07-16-2006 04:14 PM

"- make menuconfig and configured the kernel
(I saved the configration as kernel-config )
- make clean"

Might be wrong here but I think you are wiping your config and make parameters by running make clean after you config.

nmainak 07-16-2006 05:06 PM

Quote:

Originally Posted by Berto
"- make menuconfig and configured the kernel
(I saved the configration as kernel-config )
- make clean"

Might be wrong here but I think you are wiping your config and make parameters by running make clean after you config.

Thanks for the reply. Im following the Kernel-BUild-HOWTO documented at http://www.digitalhermit.com/linux/K...WTO.html#INTRO
which highlights the steps to take and thats the sequence written there.

Nick../


All times are GMT -5. The time now is 07:20 PM.