|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
>> 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? |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
>> 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.. |
|
#5
|
|||
|
|||
|
>> 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 |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
-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. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Problem compiling a kernel for 4.6.2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|