• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • Last Modified:

Compiling the kernel

I'm still having problems compiling a new kernel.   Can someone tell me - is Xconfig a program, like Configure and Menuconfig that comes with the new kernel source?  I ort to be able to invoke this compiler after I've uncompressed a new kernel to its rightful place in /usr/scr.   But I can't.   I've got all the programs that are recommended for installing a new kernel, but where is XCONFIG?   Please someone tell me.

thanks

MAC
0
cliffhanger121599
Asked:
cliffhanger121599
  • 5
  • 3
1 Solution
 
maswanCommented:
Xconfig is not a separate program, but something that is invoked from the makefile.

Just type "make xconfig" in the source directory. (/usr/src/linux, or wherever you put it.)

Or "make menuconfig", "make config" depending on how you want to config the kernel.
0
 
cliffhanger121599Author Commented:
Thanks for your reply
I forgot to mention that I'm doing all you suggest and I'm getting the following:
rm -f include/asm
(cd include ;ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: entering directory /usr/scr/linux/scripts
gcc -06 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s -mpentium -
mcpu=pentium-march=pentium -ffast-maths -fexpensive-optimizations -c -o tkparse.o tkparse.c
cc1:invalid option 'pentium'
...................................'cpu pentium'
...................................'arch=pentium'
....................................-fno-exceptions
make[1]***[kparse.o] Error 1
make[1] Leaving directory as above
make:***{xconfig] Error 2
Any ideas!!!!

MAC

0
 
maswanCommented:
Ok, then I try harder. :)

What version of gcc do you have? Perhaps upgrading/reinstalling gcc would help?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
cliffhanger121599Author Commented:
Thanks for your reply, I forgot to mention that i've already done what you suggest and get a garbled output, the giste of which is
gcc -o6 -fomit-frame-pointer-fno-exceptions etc
cc1: invalid option 'pentium'
cc1 ........................... 'cpu=pentium'
cc1............................. 'arch=pentium'
cc1..............................'-fno-exceptions'
make{1} tkparse Error1
make*** xconfig Error2

Any ideas?

MAC
0
 
cliffhanger121599Author Commented:
Sorry i've just repeated myself ignore that.

The gcc version is 2.7.2.3-14 which I beleive is very recent

MAC
0
 
maswanCommented:
Does it work if you try and compile it with the "gcc -O6"... line manually, without the options it complains on?
0
 
cliffhanger121599Author Commented:
Sorry, I'm new to linux you will have to spoon feed me.   What would I type to use the gcc -06 line manually?

thanks
MAC
0
 
cliffhanger121599Author Commented:
Many thanks for all the contribution.   I've solved it by matching the ver. of gcc and cpp.   Worked first time.

Regards

MAC
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now