DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th June 2008
stou stou is offline
New User
 
Join Date: Jun 2008
Posts: 1
Default 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
Reply With Quote
  #2   (View Single Post)  
Old 9th September 2008
beuiot beuiot is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

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
Reply With Quote
  #3   (View Single Post)  
Old 9th September 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Do # rm -rf /usr/obj/* and try again
Reply With Quote
  #4   (View Single Post)  
Old 9th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

are you compiling as root?
show your csup supfile, you used to update kernel source
Reply With Quote
  #5   (View Single Post)  
Old 9th September 2008
beuiot beuiot is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

I tried with rm -rf /usr/obj/* , but nothing changed.
Yes, I am compiling as root.

Here is the supfile :
Code:
*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

Last edited by beuiot; 9th September 2008 at 11:51 AM.
Reply With Quote
  #6   (View Single Post)  
Old 9th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

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/...makeworld.html
Especially since you updated all source files
Reply With Quote
  #7   (View Single Post)  
Old 9th September 2008
beuiot beuiot is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

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 :
Code:
make buildworld
that went OK.

then the

Code:
make buildkernel
crashed with

Code:
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
Reply With Quote
  #8   (View Single Post)  
Old 9th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

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
Code:
*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
Code:
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

Last edited by graudeejs; 9th September 2008 at 01:43 PM.
Reply With Quote
  #9   (View Single Post)  
Old 9th September 2008
beuiot beuiot is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

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 !
Reply With Quote
Old 9th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by beuiot View Post
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
Code:
$ mount -a
Reply With Quote
Old 9th September 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

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 /
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 9th September 2008
beuiot beuiot is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

Thank you so much ! I was able to successfully build the kernel and boot on it.

What I did on single user mode was :

Code:
mount -u /
mount -a -t ufs
This worked, no path problem for me (no use for /rescue/mount...).

Thanks again !
Reply With Quote
Old 21st September 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Quote:
Originally Posted by killasmurf86 View Post
To speed up compiling you can use -j4
Code:
make -j4 buildworld
don't forget to do that in single user mode
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" 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.
Reply With Quote
Old 8th October 2008
SPlissken SPlissken is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Default

Same probleme here , and i m french and was using the same as host as beuiot
Reply With Quote
Old 9th October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by BSDKaffee View Post
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" 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" to the end

Last edited by graudeejs; 9th October 2008 at 05:19 PM.
Reply With Quote
Old 11th October 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Quote:
Originally Posted by killasmurf86 View Post
Things will run faster in Single User Mode, as described in handbook
Read Rebuilding "world" to the end
It 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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error code 1 whie make install gnome mtm0 NetBSD General 3 4th September 2009 11:56 AM
link: `libtheora_la-common.lo' is not a valid libtool object error during compilation pax FreeBSD Ports and Packages 2 29th July 2008 11:30 AM
compile kernel error mfaridi FreeBSD Installation and Upgrading 9 14th July 2008 02:26 AM
slimserver make install *** Error code 1 alan79 FreeBSD Ports and Packages 15 28th May 2008 12:35 PM
Ports installtion error code 1 seadog109 FreeBSD General 1 11th May 2008 01:19 AM


All times are GMT. The time now is 03:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick