LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-16-2006, 03:59 PM   #1
nmainak
LQ Newbie
 
Registered: Mar 2005
Location: Iowa City
Distribution: SUSE Linux
Posts: 9

Rep: Reputation: 0
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.
 
Old 07-16-2006, 04:14 PM   #2
Berto
Member
 
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232

Rep: Reputation: 30
"- 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.
 
Old 07-16-2006, 05:06 PM   #3
nmainak
LQ Newbie
 
Registered: Mar 2005
Location: Iowa City
Distribution: SUSE Linux
Posts: 9

Original Poster
Rep: Reputation: 0
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../
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make bzImage error TedNugent Slackware 1 03-13-2005 11:41 PM
Error during make bzImage Sid2004 Linux - Newbie 1 10-25-2004 01:38 PM
make bzImage error XPediTioN Debian 2 06-02-2004 12:39 PM
Error with make bzImage abefroman Slackware 1 04-26-2004 09:02 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration