Date: Thu, 13 May 2010 17:18:56 +0800 From: Jiansong Liu <jiansong.liu@effective-world.com> To: Antonio Kless <antoniok.spb@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: 7.3-RELEASE: unable to compile custom kernel Message-ID: <AANLkTin8IzfUDo3x2auvJqk6gmgQL7tQJ76QabC54kV-@mail.gmail.com> In-Reply-To: <AANLkTinul9p4Q5Hnfugv7_N-5lYiZXkBgetSzpAQgycs@mail.gmail.com> References: <AANLkTinul9p4Q5Hnfugv7_N-5lYiZXkBgetSzpAQgycs@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Try to compile it again without the -j option, will help to figure out where is going wrong exactly. Cheers, Jiansong On Wed, May 12, 2010 at 5:50 PM, Antonio Kless <antoniok.spb@gmail.com> wro= te: > Hello. I trying to build custom kernel to enable packet-filter. > > # uname -a > FreeBSD host.net 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 05:25:24 = UTC > 2010 =C2=A0 =C2=A0 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GEN= ERIC =C2=A0amd64 > > # export > declare -x BLOCKSIZE=3D"K" > declare -x FTP_PASSIVE_MODE=3D"YES" > declare -x HISTCONTROL=3D"ignorespace" > declare -x HOME=3D"/root" > declare -x LOGNAME=3D"root" > declare -x MAIL=3D"/var/mail/root" > declare -x MC_CONTROL_FILE=3D"/tmp/mc.822.control" > declare -x MC_CONTROL_PID=3D"822" > declare -x OLDPWD=3D"/usr/src/sys/amd64" > declare -x PAGER=3D"more" > declare -x > PATH=3D"/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/loc= al/bin:/root/bin" > declare -x PWD=3D"/usr/src/sys/amd64/conf" > declare -x SHELL=3D"/usr/local/bin/bash" > declare -x SHLVL=3D"2" > declare -x SSH_CLIENT=3D"<my ip>" > declare -x SSH_CONNECTION=3D"<my ip>" > declare -x SSH_TTY=3D"/dev/ttyp0" > declare -x TERM=3D"xterm" > declare -x USER=3D"root" > > # pwd > /usr/src/sys/amd64/conf > > # diff GENERIC > ALTERKERN > > 22c22 > > < ident > GENERIC > > --- > >> ident > ALTERKERN > > 43c43 > > < options =C2=A0 =C2=A0 =C2=A0 NFS_ROOT =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0# NFS usable as /, requires > NFSCLIENT > > --- > >> #options =C2=A0 =C2=A0 =C2=A0NFS_ROOT =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0# NFS usable as /, requires > NFSCLIENT > > 76a77,92 > >> # > PF > >> device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pf =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0# enable PF OpenBSD packet-filter > firewall > >> device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pflog =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 # logging support interface for > PF > >> device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pfsync =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0# Synchronization interface for > PF > >> device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0carp =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0# Common Address Redundancy > Protocol > >> > >> # PF traffic > shaper > >> options > ALTQ > >> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALTQ_CBQ =C2=A0 =C2=A0 =C2=A0 =C2=A0= # Class Bases > Queueing > >> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALTQ_RED =C2=A0 =C2=A0 =C2=A0 =C2=A0= # Random Early > Detection > >> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALTQ_RIO =C2=A0 =C2=A0 =C2=A0 =C2=A0= # RED > In/Out > >> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALTQ_HFSC =C2=A0 =C2=A0 =C2=A0 # Hie= rarchical Packet > Scheduler > >> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALTQ_CDNR =C2=A0 =C2=A0 =C2=A0 # Tra= ffic > conditioner > >> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALTQ_PRIQ =C2=A0 =C2=A0 =C2=A0 # Pri= ority > Queueing > >> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 ALTQ_NOPCC =C2=A0 =C2=A0 =C2=A0# Req= uired for SMP > build > >> > > 238,252c254,268 > > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wlan =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# 802.11 > support > > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wlan_wep = =C2=A0 =C2=A0 =C2=A0 =C2=A0# 802.11 WEP > support > > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wlan_ccmp= =C2=A0 =C2=A0 =C2=A0 # 802.11 CCMP > support > > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wlan_tkip= =C2=A0 =C2=A0 =C2=A0 # 802.11 TKIP > support > > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wlan_amrr= =C2=A0 =C2=A0 =C2=A0 # AMRR transmit rate control > algorithm > > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wlan_scan= _ap =C2=A0 =C2=A0# 802.11 AP mode > scanning > > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wlan_scan= _sta =C2=A0 # 802.11 STA mode scanning > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0an =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# Aironet 4500/4800 802.11 wirele= ss > NICs. > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ath =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # Atheros pci/cardbus NIC's > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ath_hal = =C2=A0 =C2=A0 =C2=A0 =C2=A0 # Atheros HAL (Hardware Access > Layer) > < options =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 AH_SUPPORT_AR5= 416 =C2=A0 =C2=A0 =C2=A0 # enable AR5416 tx/rx > descriptors > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ath_rate_= sample # SampleRate tx rate control for ath > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0awi =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # BayStack 660 and others > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ral =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # Ralink Technology RT2500 wireless > NICs. > < device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0wi =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# WaveLAN/Intersil/Symbol 802.11 > wireless NICs. > --- >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wlan =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# 802.11 support >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wlan_wep =C2=A0= =C2=A0 =C2=A0 =C2=A0# 802.11 WEP support >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wlan_ccmp =C2= =A0 =C2=A0 =C2=A0 # 802.11 CCMP support >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wlan_tkip =C2= =A0 =C2=A0 =C2=A0 # 802.11 TKIP support >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wlan_amrr =C2= =A0 =C2=A0 =C2=A0 # AMRR transmit rate control > algorithm >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wlan_scan_ap = =C2=A0 =C2=A0# 802.11 AP mode scanning >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wlan_scan_sta = =C2=A0 # 802.11 STA mode scanning >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 an =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# Aironet 4500/4800 802.11 wireless > NICs. >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ath =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # Atheros pci/cardbus NIC's >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ath_hal =C2=A0 = =C2=A0 =C2=A0 =C2=A0 # Atheros HAL (Hardware Access > Layer) >> #options =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0AH_SUPPORT_AR54= 16 =C2=A0 =C2=A0 =C2=A0 # enable AR5416 tx/rx > descriptors >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ath_rate_sample= # SampleRate tx rate control for ath >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 awi =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # BayStack 660 and others >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ral =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # Ralink Technology RT2500 wireless > NICs. >> #device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wi =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# WaveLAN/Intersil/Symbol 802.11 > wireless NICs. > > # cd ../../../ && make -j16 buildkernel KERNCONF=3DALTERKERN > <...snip...> > =3D=3D=3D> zyd > (all) > > cc -O2 -fno-strict-aliasing -pipe =C2=A0-D_KERNEL -DKLD_MODULE -std=3Dc99 > -nostdinc =C2=A0 -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/ALTERKERN/opt_global.h -I. -I@ -I@/contrib/altq > -finline-limit=3D8000 --param inline-unit-growth=3D100 --param > large-function-growth=3D1000 -fno-common -g -fno-omit-frame-pointer > -I/usr/obj/usr/src/sys/ALTERKERN -mcmodel=3Dkernel -mno-red-zone =C2=A0-m= fpmath=3D387 > -mno-sse -mno-sse2 -mno-mmx -mno-3dnow =C2=A0-msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes =C2=A0-Wmissing-prototypes -Wpointer= -arith > -Winline -Wcast-qual =C2=A0-Wundef -Wno-pointer-sign -fformat-extensions = -c > /usr/src/sys/modules/zyd/../../dev/usb/if_zyd.c > > ld =C2=A0-d -warn-common -r -d -o if_zyd.ko.debug > if_zyd.o > > :> > export_syms > > awk -f /usr/src/sys/conf/kmod_syms.awk if_zyd.ko.debug =C2=A0export_syms = | xargs > -J% objcopy % > if_zyd.ko.debug > objcopy --only-keep-debug if_zyd.ko.debug > if_zyd.ko.symbols > > objcopy --strip-debug --add-gnu-debuglink=3Dif_zyd.ko.symbols if_zyd.ko.d= ebug > if_zyd.ko > > 1 > error > > *** Error code > 2 > > 1 > error > > *** Error code > 2 > > 1 > error > > > > What do I do wrong? This kernel configuration was OK for 7.2 RELEASE, but > doesn't works with 7.3. > > > -- > Best regards, > Antonio Kless, > http://kless.spb.ru/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin8IzfUDo3x2auvJqk6gmgQL7tQJ76QabC54kV->