BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 28th, 2004, 05:02 PM
DJ_Coder DJ_Coder is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 DJ_Coder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 23 sec
Reputation Power: 0
FreeBSD 5.3 won't compile kernel

I used to have FreeBSD on two different boxes, each with a custom kernel. Then I installed from scratch FreeBSD 5.3 on both boxes and it runs well. However both show compile errors when i try to make a custom kernel. Both show the same error. I have even tried to use rename the file /usr/src/sys/i386/conf/GENERIC as FW_KERNEL. Without making any changes to the content I still get the same error.

Just to be clear this is a fresh install on tho separate boxes that are returning the same error, even when compiling what is essentially a GENERIC kernel.

here is the error part of the output:
/usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:61:21: tconfig.h: No such file or directory
In file included from /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:64:
./tm.h:15:29: insn-constants.h: No such file or directory
./tm.h:16:25: insn-flags.h: No such file or directory
***Error code 1

Stop in /usr/src/gnu/lib/csu.
***Error code 1

Stop in /usr/src/gnu/lib.
***Error code 1

Stop in /usr/src/gnu.
***Error code 1

Stop in /usr/src.
***Error code 1

Stop in /usr/src.

Any ideas how to solve this?

Reply With Quote
  #2  
Old December 28th, 2004, 07:14 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Click here for more information.
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,718 Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 13 h 8 m 24 sec
Reputation Power: 1179
Did you take your custom kernel config file from a 4.x kernel or what? I found that a kernel config file that had worked for all the kernels since 4.1 didn't work on 5.x. You may need to work with a fresh GENERIC for 5.3 and prune out the necessary lines.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month

Reply With Quote
  #3  
Old December 29th, 2004, 09:13 AM
DJ_Coder DJ_Coder is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 DJ_Coder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 23 sec
Reputation Power: 0
It is a 5.3 kernel

The kernel I am trying to compile is the GENERIC kernel from version 5.3. I simply renamed it something else. And, even though it is the same kernel it still won't compile.

Reply With Quote
  #4  
Old January 12th, 2005, 04:21 PM
nbarraud nbarraud is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 12 nbarraud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 23 sec
Reputation Power: 0
You said you didn't change anything.
But are you really really sure you didn't remove or comment out some devices that you thought were useless ? Like the SCSI devices...

There are some dependencies between ATA devices and SCSI devices, or something similar.
You should have a close look at the comments in the GENERIC kernel conf file to be sure you aren't breaking one of those dependencies.

Reply With Quote
  #5  
Old January 13th, 2005, 05:56 PM
goggie goggie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 goggie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

Had the a similar problem with an earlier version of 5.3 - I dunno how clued up your are with custom kernels so I took some time to type all the steps.

I would recommend you first get the latest version of 5.3_STABLE with the command
#cvsup <path to your file>/stable-supfile

(if you have not got cvsup install it from the ports and config the "stable-supfile")

Then you do a buildworld with
#cd /usr/src/
#make buildworld

Then your rebuild your kernel with your own MYOWNCONFIG
#make buildkernel KERNCONFIG=MYOWNCONFIG

Then you install your kernel
#make installkernel KERNCONFIG=MYOWNCONFIG

reboot with
#reboot

at startup choose single user mode (option 4 on menu)
at prompt type:
#mount -a
#cd /usr/src
#mergemaster -p

AND READ the comments - normally choose the "i" option unless you know what you are doing.

now install the new world by typing:
#make installworld

and merge the new settings with
#mergemaster

and reboot with
#reboot

I trust I have not forgotten all the steps!

Hope this helps you - BTW the above is in the Handbook as well

Reply With Quote
  #6  
Old February 12th, 2005, 12:46 AM
clonexx clonexx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 clonexx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 47 sec
Reputation Power: 0
Is there any way to avoid drop to single mode after make installkernel ?

Reply With Quote
  #7  
Old February 12th, 2005, 02:37 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
Quote:
Originally Posted by clonexx
Is there any way to avoid drop to single mode after make installkernel ?

You need to reboot after running 'make installkernel' so the new kernel takes effect.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > FreeBSD 5.3 won't compile kernel


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT