kernel error
Down loaded slack current and did custom install.
Now I want to rebuild kernel so I uncommented the line, export INSTALL_PATH=/boot Then I did; root@slack-n-stein:/usr/src/linux# make xconfig at first I got this error; Makefile:554: *** missing separator. Stop. so I went to line 554 added a space then I got this error Makefile:278: *** missing separator. Stop. Here is that line; $(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -traditional -o $*.s $< what is it supposed to say? |
I've never had errors like the ones you are reporting. Did you download a full kernel source?
I'd go to http://www.kernel.org and download a full kernel source of your choosing. To download full kernel source click on the "F" link and save to disk. Then just extract it (I use "bzip2 -d" and then "tar -xvf" on the file. If you knew this already, sorry. Was just trying to offer what I could since you still had 0 replies when I saw your thread. |
Missing separator means that there is a syntax error in the Makefile. Any command must be preceded by a tab in a Makefile. If you have mcedit installed, go to that line and push tab until it shows a red bar in front of the line (can't miss it).
|
That seemed to be the problem, missing tabs
but while I was going though the whole makefile (seems like a lot of tabs are missing) I came across this error Makefile:355: *** commands commence before first target. Stop. what do I do about that? Is there a place I could download a good copy of the makefile? |
what kernel are you talking about ?
if i have it , i can mail it to you .... egag |
Kernel 2.4.28
Thanks |
well...i've got 6 kernel-sources but not that one.
sorry. maybe anybody else...... ? egag |
If I download a new kernel, say, what ever the latest one is,
will that have a new make file? I guess it would have too...correct? I was thinking of trying 2.6.10 any thoughts? |
good idea....
if you get the full sources, all will be there. you could start with the config-file of the old kernel ( gives some errors, not important.) then configure it with " $make xconfig ". that's a nice gui with comment's and advice . egag |
May I suggest you to not open the makefile with a text editor configured to replace all TAB by
spaces like some option in Kwrite. Look at your text editor config/preferences |
I'm running 2.4.28 now and didn't have any problems compiling. Go to www.kernel.org and get the full 2.4.28 sources. put it somewhere like /home/you/kernels. unzip it and go to your old folder and copy the .config to the new sources.
do make menuconfig --> exit --> yes to save --> make dep. then you can make the 2 targets. |
"May I suggest you to not open the makefile with a text editor configured to replace all TAB by
spaces like some option in Kwrite. Look at your text editor config/preferences" Thanks, Thats exactly what I did. I'm going to try the 2.6.10 Kernel. I'll use nedit this time when I edit the Makefile. I was reading the instructions at the begining of this forum about rebuilding the 2.6.0 kernel, I have a couple of questions... 1) Then copy your existing .config to your new kernel source tree... cp /usr/src/linux-2.4.?/.config /usr/src/linux... Do I have to do this? Can't I start from make mrproper? 2)Just exit and save the configuration, then... make su -c "make modules_install" make install Is this really all I have to do? What happened to: make dep make clean make bzImage make make install make modules make modules_install Does "su -c "make modules_install"" take the place of all that? Thanks again for all your help Phil |
Yes you can start from scratch by running 'make mrproper' - My suggestion assumed that you wanted to keep your configuration but this is not necessary. Just be sure to reconfigure everything.
As for the steps involved, 2.5 and 2.6 kernels require a different build process and 2.4. make dep is no longer necessary and you can just type make && make modules_install |
---------
make dep---------> no need for that with 2.6.x kernel make clean-------->why, it's clean make bzImage make---------------->use either " make " or " make modules + make bzImage " make install --------> use either " make install " or " make modules-install + cp bzimage > /boot by hand " make modules make modules_install ------------- there are more ways to build & install a kernel. and you best use the old configfile as a startpoint for configuration egag |
OK, so now that I think I have it, just to be sure
this is what I'm going to do; I've already edited my lilo.conf I'll use nedit to edit Makefile I downloaded patch-2.6.10.bz2 into /usr/src extract to this directory; tar -xjvf patch-2.6.10.bz2 then I'm going to remove the the link to the old kernel and link to new kernel; rm -f linux ln -s linux-2.6.10 linux change into that directory cd /usr/src/linux make mrproper make xconfig save and exit make make install reboot all done, with custom kernel... Just want to be sure because I haven't rebuilt a kernel since SL 7.0 and the kernel I'm using now is stock bare.i also I think I read some where I will not need the line, append="hdc=ide-scsi" in my lilo.conf any more to run my cd-writer is this true? |
All times are GMT -5. The time now is 06:34 PM. |