Re: can't compile kernel without bpf
Ivan Doležal wrote: As for kernel compilation (wireless does need bpf), this was it! The new 802.11 layer (device wlan) and some WiFi device drivers (ath and wi) uses the bpfattach2() function call. The bpfattach2() implementation has no stub counterpart in "non-bpf" section of net/bpf.c, so the kernel can't be succesfully linked without BPF support. It's the immediate cause why we need bpf in kernel now. The question is - is presence of bpf mandatory for functionality of 802.11 devices ? I think the correct answer is NO, so it's bug and stub bpfattach2() should be added to apropriate place of net/bpf.c. But I'm not sure. Someone who know should decide and send PR ... Dan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't compile kernel?
On Thu, Sep 19, 2002 at 10:15:48PM +0900, I wrote: > On Wed, Sep 18, 2002 at 01:15:40PM -0500, Steve Ames wrote: > > > > New datapoint: > > > > If I compile the kernel in the old fashion (config SB; cd ../compile/SB; > > make depend all install) then the kernel compiles and installs fine. > > However I get the error below when doing a 'make kernel' from /usr/src. > > > > Also even after rebooting onto the new kernel bind9 and mysql-server > > are still exiting on signal6. > > I'm also getting cpp0 crashing while building new kernel. My world is from > 2002-09-01(UTC) source. It looks similar to yours, except that: > > - cpp0 exits with signal 11, not signal 6. > - I'm building my kernel in the old fashion with a slight modification > > $ config -d /usr/obj/kernel /path/to/CONFIGFILE && \ > cd /usr/obj/kernel && make depend && make > > but cpp0 still crashes at the first stage of 'make depend'. > > > > Thoughts? Anything I can provide to help narror this down further? > > Now I'm wondering where I can build a cpp0 with debug symbols enabled > so that I can post the backtrace... By the way, I've tracked down the first .c file that causes cpp0 to sig11. It's /usr/src/sys/netkey/keysock.c,rev 1.16(my source tree is placed under /home/usr.src and symlinked from /usr). $ MKDEP_CPP="cc -E" CC="cc" mkdep -a -f .newdep -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc -I- -I. -I/home/usr.src/sys -I/home/usr.src/sys/dev -I/home/usr.src/sys/contrib/dev/acpica -I/home/usr.src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common -mpreferred-stack-boundary=2 -ffreestanding /home/usr.src/sys/netkey/keysock.c But if I remove '-march=pentiumpro', cpp0 doesn't crash. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: can't compile kernel?
Hi. On Wed, Sep 18, 2002 at 01:15:40PM -0500, Steve Ames wrote: > > New datapoint: > > If I compile the kernel in the old fashion (config SB; cd ../compile/SB; > make depend all install) then the kernel compiles and installs fine. > However I get the error below when doing a 'make kernel' from /usr/src. > > Also even after rebooting onto the new kernel bind9 and mysql-server > are still exiting on signal6. I'm also getting cpp0 crashing while building new kernel. My world is from 2002-09-01(UTC) source. It looks similar to yours, except that: - cpp0 exits with signal 11, not signal 6. - I'm building my kernel in the old fashion with a slight modification $ config -d /usr/obj/kernel /path/to/CONFIGFILE && \ cd /usr/obj/kernel && make depend && make but cpp0 still crashes at the first stage of 'make depend'. > > Thoughts? Anything I can provide to help narror this down further? Now I'm wondering where I can build a cpp0 with debug symbols enabled so that I can post the backtrace... To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: can't compile kernel?
No update on the cpp0 error but I can get bind9 to stay running if I disable threads in the Makefile... no more signal 6. -Steve > New datapoint: > > If I compile the kernel in the old fashion (config SB; cd ../compile/SB; > make depend all install) then the kernel compiles and installs fine. > However I get the error below when doing a 'make kernel' from /usr/src. > > Also even after rebooting onto the new kernel bind9 and mysql-server > are still exiting on signal6. > > -Steve > > On Wed, Sep 18, 2002 at 11:07:36AM -0500, Steve Ames wrote: > > > > This started yesterday after an upgrade to a recent -CURRENT (prior > > version was perhaps 4 days old). Some programs (specifically bind9 > > and mysql-server) starting aborting with a sig6. > > > > Figuring maybe I just caught an update in the middle or some such > > I updated the source again and rebuilt world. No problems. I then > > tried to compile a kernel and cannot. cpp0 exits with an internal > > error: > > > > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/isa/isa_if.m -h > > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/pci/agp_if.m -h > > if [ -f .olddep ]; then mv .olddep .depend; fi > > rm -f .newdep > > make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES -V GEN_M_CFILES | MKDEP_CPP="cc - > > E" CC="cc" xargs mkdep -a -f .newdep -O -pipe -Wall -Wredundant-decls -Wnested- > > externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline - Wcas > > t-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/ src/ > > sys/dev -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D _KER > > NEL -include opt_global.h -fno-common -mpreferred-stack-boundary=2 -ffreestandi > > ng > > cc: Internal error: Segmentation fault (program cpp0) > > Please submit a full bug report. > > See http://www.gnu.org/software/gcc/bugs.html> for instructions. > > mkdep: compile failed > > *** Error code 1 > > > > Stop in /usr/obj/usr/src/sys/SB. > > *** Error code 1 > > > > Thoughts? Anything I can provide to help narror this down further? > > > > -Steve > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-current" in the body of the message > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: can't compile kernel?
New datapoint: If I compile the kernel in the old fashion (config SB; cd ../compile/SB; make depend all install) then the kernel compiles and installs fine. However I get the error below when doing a 'make kernel' from /usr/src. Also even after rebooting onto the new kernel bind9 and mysql-server are still exiting on signal6. -Steve On Wed, Sep 18, 2002 at 11:07:36AM -0500, Steve Ames wrote: > > This started yesterday after an upgrade to a recent -CURRENT (prior > version was perhaps 4 days old). Some programs (specifically bind9 > and mysql-server) starting aborting with a sig6. > > Figuring maybe I just caught an update in the middle or some such > I updated the source again and rebuilt world. No problems. I then > tried to compile a kernel and cannot. cpp0 exits with an internal > error: > > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/isa/isa_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/pci/agp_if.m -h > if [ -f .olddep ]; then mv .olddep .depend; fi > rm -f .newdep > make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES -V GEN_M_CFILES | MKDEP_CPP="cc - > E" CC="cc" xargs mkdep -a -f .newdep -O -pipe -Wall -Wredundant-decls -Wnested- > externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcas > t-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/ > sys/dev -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KER > NEL -include opt_global.h -fno-common -mpreferred-stack-boundary=2 -ffreestandi > ng > cc: Internal error: Segmentation fault (program cpp0) > Please submit a full bug report. > See http://www.gnu.org/software/gcc/bugs.html> for instructions. > mkdep: compile failed > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/SB. > *** Error code 1 > > Thoughts? Anything I can provide to help narror this down further? > > -Steve > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
can't compile kernel?
This started yesterday after an upgrade to a recent -CURRENT (prior version was perhaps 4 days old). Some programs (specifically bind9 and mysql-server) starting aborting with a sig6. Figuring maybe I just caught an update in the middle or some such I updated the source again and rebuilt world. No problems. I then tried to compile a kernel and cannot. cpp0 exits with an internal error: awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/isa/isa_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/pci/agp_if.m -h if [ -f .olddep ]; then mv .olddep .depend; fi rm -f .newdep make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES -V GEN_M_CFILES | MKDEP_CPP="cc - E" CC="cc" xargs mkdep -a -f .newdep -O -pipe -Wall -Wredundant-decls -Wnested- externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcas t-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/ sys/dev -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KER NEL -include opt_global.h -fno-common -mpreferred-stack-boundary=2 -ffreestandi ng cc: Internal error: Segmentation fault (program cpp0) Please submit a full bug report. See http://www.gnu.org/software/gcc/bugs.html> for instructions. mkdep: compile failed *** Error code 1 Stop in /usr/obj/usr/src/sys/SB. *** Error code 1 Thoughts? Anything I can provide to help narror this down further? -Steve To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message