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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old September 23rd, 2002, 02:55 PM
Voodoo Web Voodoo Web is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 8 Voodoo Web User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 0
Problem compiling a kernel for 4.6.2

Hello

I have two webserver with FreeBSD installed and I want to upgrade them to the newest release.
The problem is that I remote access only and I have no experience in doing this. So I will try it a few times with my test server at home.

I downloaded all the sources with cvsup and made a make buildworld. But now I have a problem with make buildkernel (first I want to build a GENERIC). It looks as follows:
---
===> xe
rm -f setdef0.c setdef1.c setdefs.h setdef0.o setdef1.o if_xe.ko if_xe.kld if_xe.o @ machine symb.tmp tmp.o opt_bdg.h bus_if.h device_if.h card_if.h pci_if.h
rm -f .depend /usr/src/sys/modules/xe/GPATH /usr/src/sys/modules/xe/GRTAGS /usr/src/sys/modules/xe/GSYMS /usr/src/sys/modules/xe/GTAGS
cd /usr/obj/usr/src/sys/GENERIC; MAKESRCPATH=/usr/src/sys/dev/aic7xxx/aicasm make -f /usr/src/sys/dev/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original /usr/obj/usr/src/sys/GENERIC
cc -O -pipe -I/usr/include -I. -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
cc -O -pipe -I/usr/include -I. -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
yacc -b aicasm_gram -d -o aicasm_gram.c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y
cc -O -pipe -I/usr/include -I. -c aicasm_gram.c
cc -O -pipe -I/usr/include -I. -c aicasm_macro_gram.c
lex -t /usr/src/sys/dev/aic7xxx/aicasm/aicasm_scan.l > aicasm_scan.c
cc -O -pipe -I/usr/include -I. -c aicasm_scan.c
cc -O -pipe -I/usr/include -I. -c aicasm_macro_scan.c
cc -O -pipe -I/usr/include -I. -o aicasm aicasm.o aicasm_symbol.o aicasm_gram.o aicasm_macro_gram.o aicasm_scan.o aicasm_macro_scan.o -ll
cd /usr/obj/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386 OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503 GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/i386/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac DESTDIR=/usr/obj/usr/src/i386 INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec:/usr/libexec make KERNEL=kernel depend
make: don't know how to make /usr/src/sys/sys/_types.h. Stop
*** Error code 2

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

Stop in /usr/src.
---
I hope somebody can see what the problem is so I can build a kernel and go further with my upgrade.

- dom

Reply With Quote
  #2  
Old September 23rd, 2002, 06:25 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> don't know how to make /usr/src/sys/sys/_types.h. Stop

No such file there.

>> I downloaded all the sources with cvsup and made a make buildworld

We are more interested in seeing what exactly you have typed in for such step and the buildkernel one.

>> I want to upgrade them to the newest release

This is being most important. What is your current version + branch? What version and branch are you expected to get after cvsup?

Reply With Quote
  #3  
Old September 24th, 2002, 02:55 AM
Voodoo Web Voodoo Web is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 8 Voodoo Web User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 0
Thank you freebsd...

>> No such file there.
That's true. But one of the other files tries to use it and I don't know what to do.

>> We are more interested in seeing what exactly you have
>> typed in for such step and the buildkernel one.
First I setup my cvsupfile. I changed tag=RELENG_4_6_2_RELEASE, *default compress and src-all from the example cvsupfile.
# cvsup -g -L 2 /etc/cvsupfile
# cd /usr/src
# make buildworld (took one day)
# make buildkernel (gives me the error)

At the moment FreeBSD testserver 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002.

Do you think there is any chance to do this upgrade remotely without the possibility to use single-mode?

- dom

Last edited by Voodoo Web : September 24th, 2002 at 12:44 PM.

Reply With Quote
  #4  
Old September 25th, 2002, 03:25 AM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
>> tag=RELENG_4_6_2_RELEASE

It's better to follow RELENG_4_6 rather than above, but freebsd and I would recommend anyone to run RELENG_4... The RELENG_4 is 4.7-RC at this moment, but will be 4.7-STABLE soon.. Maybe, you should clear the /usr/obj and /usr/src by "rm -rf", then do the CVSup again.

After you CVSup, then always be sure to check /usr/src/UPDATING because there's few thing you will have to do something before do the make buildkernel.

http://www.freebsd.org/doc/en_US.IS.../makeworld.html explains pretty clearly, so try to read here..

Reply With Quote
  #5  
Old September 25th, 2002, 06:11 AM
jondoor jondoor is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: ny
Posts: 15 jondoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Do you think there is any chance to do this upgrade remotely

Yes, you can defiantly complete the update without single user mode. But as you can imagine when doing something big remotely a single mistake will ruin your day or more.

I remotely updated several freebsd machines this way. it would be best if you are the only user on the machine and shutdown your web/database servers and the like.

I currently like RELENG_4_6 for my remote machines, but some of them are RELENG_4 as well.

-jon

Reply With Quote
  #6  
Old September 26th, 2002, 03:09 AM
Voodoo Web Voodoo Web is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 8 Voodoo Web User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 0
Yeah I was able to upgrade my testbox remotely and this time without any problems. This makes me a lot more confident that it will also work with my "real" servers.
After I downloaded RELENG_4_6 it worked, so it looks for me it's important to find the right version. When do you think is the right time to upgrade to 4.7? I read somewhere that it is not recommended to upgrade just after it is released.
Another thing is, I think a dumb question, do I have to synchronize my ports tree after the upgrade and reinstall the ports? Is there a make option that reinstall all ports I had installed or do I have to reinstall every manually?
I hope the upgrade works also from 4.2 to 4.6 and thanks all for your help.

- dom

Reply With Quote
  #7  
Old September 26th, 2002, 08:07 PM
jondoor jondoor is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: ny
Posts: 15 jondoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
-RELEASE should be ready for production servers. If you want to run –STABLE maybe you should be more careful and follow a related mailing list.

Read /usr/src/UPDATING, especially for those 4.2.

Ports are fine, they sync to their own cvs branch. There is a collection of tools to help you upgrade ports, but make sure you understand how to work them manually first.

Look at: /usr/ports/sysutils/portupgrade/

-jon

Last edited by jondoor : September 26th, 2002 at 08:10 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Problem compiling a kernel for 4.6.2


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 4 hosted by Hostway