LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-06-2007, 02:43 PM   #1
echnat0n
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
recompile?


Hello,

After my lfs installation i got the warning:

interface eth0 does not exist.

Now i want to recompile the kernel and i did the following using the life cd

Code:
make clean
make mrproper
make menuconfig
make
After selecting the correct network support i get the following error:

Code:
make
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `set -e; echo '  CHK     include/linux/version.h'; mkdir -p include/linux/;        if [ `echo -n "2.6.16.27 .file null .ident GCC:(GNU)4.0.3 .section .note.GNU-stack,,@progbits" | wc -c ` -gt 64 ]; then echo '"2.6.16.27 .file null .ident GCC:(GNU)4.0.3 .section .note.GNU-stack,,@progbits" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.16.27 .file null .ident GCC:(GNU)4.0.3 .section .note.GNU-stack,,@progbits\"; echo \#define LINUX_VERSION_CODE `expr 2 \\* 65536 + 6 \\* 256 + 16`; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; ) < /sources/linux-2.6.16.27/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else echo '  UPD     include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi'
make: *** [include/linux/version.h] Error 2
can someone help me?
 
Old 05-07-2007, 07:36 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
I would suggest starting from a clean build tree from the kernel source tarball (making sure to backup your .config). Either that, or try the one thing I didn’t see in your attempt(s): “make distclean”.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Please help me recompile sgoen1986 Linux - Newbie 2 11-08-2006 06:08 PM
recompile 2.4 in 9.2 alaios SUSE / openSUSE 4 02-10-2005 04:51 AM
Do you need to recompile? whishkah Slackware 1 08-13-2004 03:10 AM
instead of recompile machiner Linux - Newbie 1 07-22-2004 10:55 AM
how recompile Santas Linux - Software 2 09-08-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:05 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