View Full Version : Kernel Compilation --> Error code 2 --> geom_part_pc98 (FreeBSD 7.0)
Hi,
I have edited the GENERIC Kernel to create my own kernel, but when I do the command make buildkernel KERNCONF=MYKERNEL, I have this error :
===> geom/geom_part/geom_part_pc98 (cleandir)
cd: can't cd to /usr/src/sys/modules/geom/geom_part/geom_part_pc98
*** Error code 2
Stop in /usr/src/sys/modules/geom/geom_part.
*** Error code 1
Stop in /usr/src/sys/modules/geom.
*** Error code 1
Stop in /usr/src/sys/modules.
*** Error code 1
Stop in /usr/obj/usr/src/sys/TORRUS.
*** Error code 1
Stop in /usr/src.
*** Error code 1
And when I try with the GENERIC Kernel like that, the error also comes... I miss this source : geom_part_pc98. I do a cvsup to make an update of the sources. But the error is alway here.
Do you know how I can delete this error ?
Thank's
Best regards
Fragnière Steve
beuiot
09-09-2008, 11:44 AM
I have the exact same problem : I miss this source. I just cvsup'd... I first thought it was a kernel configuration problem, but I tried with the GENERIC and same prob. if anyone knows how to fix this...
I just checked, geom_part_pc98 option is NOT in the GENERIC configuration file. Maybe it is an outdated dependency ? How can I force the non-compilation of this ?
Thanks
richardpl
09-09-2008, 12:16 PM
Do rm -rf /usr/obj/* and try again
killasmurf86
09-09-2008, 12:30 PM
are you compiling as root?
show your csup supfile, you used to update kernel source
beuiot
09-09-2008, 12:42 PM
I tried with rm -rf /usr/obj/* , but nothing changed.
Yes, I am compiling as root.
Here is the supfile :
*default host=cvsup2.fr.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_7
*default delete use-rel-suffix
*default compress
src-all
Thanks for answering so quickly :)
edit : I did make buildworld just before buildkernel. Does it matter ? (I did not install anything; just buildworld.) Sorry if this is a stupid question, I'm new to FreeBSD :)
killasmurf86
09-09-2008, 12:54 PM
dunno if it helps, but try using default line
*default release=cvs delete use-rel-suffix compress
I believe that something might not been deleted from old sources, maybe
Also you my want to read this...
http://www.freebsd.org/doc/en/books/handbook/makeworld.html
Especially since you updated all source files
beuiot
09-09-2008, 02:23 PM
Ok still no luck. Here is exactly what I did.
I used cvsup with the file previously posted. Then I went to /usr/src.
I did :
make buildworld
that went OK.
then the
make buildkernel
crashed with
can't cd to /usr/src/sys/modules/geom/geom_part/geom_part_pc98
I really can't figure out what went wrong...
I installed freebsd with the Freebsd 7.0 release disk 1. It is a fresh install.
What did I do wrong ?
Thanks
killasmurf86
09-09-2008, 02:36 PM
did you mess with /etc/make.conf (show it)
also you could compleatly wipe sources and run csup again...
here's my csup file, i used few days ago, everything went file
*default host=cvsup3.lv.freebsd.org
*default tag=RELENG_7_0
*default prefix=/usr
*default base=/var/db
*default release=cvs delete use-rel-suffix compress
src-all
using this supfile you will get FreeBSD 7-p4 sources....
you may want to change host server
btw, what arch are you compiling, i386, right?
and for now (if you try to recompile kernel, try only GENERIC while we find solution)
EDIT... weird that you can't compile kernel.... your supfile seams OK
To speed up compiling you can use -j4
make -j4 buildworld
don't forget to do that in single user mode
EDIT2:
RENELNG_7 means: The line of development for FreeBSD-7.X, also known as FreeBSD 7-STABLE
So the problem might actually be source files....
try my supfile
beuiot
09-09-2008, 07:02 PM
It looks like the french mirrors I used where broken. I used the main site, and now the kernel compiles ! hurray.
One question though : when I boot into single user mode, none of my partitions seem to be mounted (/usr, /home, ...), only / . Is this normal ?
Thanks a lot for your help !
killasmurf86
09-09-2008, 07:35 PM
It looks like the french mirrors I used where broken. I used the main site, and now the kernel compiles ! hurray.
One question though : when I boot into single user mode, none of my partitions seem to be mounted (/usr, /home, ...), only / . Is this normal ?
Thanks a lot for your help !
Yup, it's absolutely normal.
To mount all of them, type
$ mount -a
Carpetsmoker
09-09-2008, 07:46 PM
You need to use /rescue/mount, depending on your shell PATH configuration just typing ``mount'' won't work (By default it doesn't).
In addition, the root partition might get mounted as read-only depending on filesystem status, you will need to mount it as read-write in order to write to it, this can be done with:
/rescue/mount -u /
beuiot
09-09-2008, 09:38 PM
Thank you so much ! I was able to successfully build the kernel and boot on it.
What I did on single user mode was :
mount -u /
mount -a -t ufs
This worked, no path problem for me (no use for /rescue/mount...).
Thanks again !
BSDKaffee
09-21-2008, 09:16 AM
To speed up compiling you can use -j4
make -j4 buildworld
don't forget to do that in single user modeThere is no need to run the buildworld target in single user mode.
I think the best advice for some of the issues brought up in this thread is "Read the Handbook." The Rebuilding "world" (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html) chapter discusses exactly how to rebuild the system, how to work in single user mode, and explains the -j option.
It also wouldn't be a bad idea to run fsck -p before mounting the drives.
SPlissken
10-08-2008, 09:19 PM
Same probleme here , and i m french and was using the same as host as beuiot
killasmurf86
10-09-2008, 06:16 PM
There is no need to run the buildworld target in single user mode.
I think the best advice for some of the issues brought up in this thread is "Read the Handbook." The Rebuilding "world" (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html) chapter discusses exactly how to rebuild the system, how to work in single user mode, and explains the -j option.
Things will run faster in Single User Mode, as described in handbook
Read Rebuilding "world" (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html) to the end
BSDKaffee
10-11-2008, 05:43 AM
Things will run faster in Single User Mode, as described in handbook
Read Rebuilding "world" (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html) to the endIt may be marginally faster, but probably not worth it if you would actually like to use your computer while it is compiling. Your wording made it sound as if it was necessary to only run the buildworld target in single user mode, which is not true.
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.