I'm trying to build a custom kernel, and I got an error. So I tried
GENERIC, in the perhaps old-fashioned way of 

    # config GENERIC
    # cd ../compile/GENERIC
    # make depend
    # make

and I get a complaint about a file named ``hack.So''. Here is what
happens if I remove it again to get it re-made:

$ sudo make
:> hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=make sh ../../../conf/newvers.sh GENERIC
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions -nostdinc  -I. -I../../..  -I../../../contrib/altq 
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel 
-mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  
-msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector 
-Werror vers.c
linking kernel.debug
hack.So: could not read symbols: File in wrong format
*** Error code 1

Stop in /usr/src/sys/amd64/compile/GENERIC.

Am I the only one who is seeing this?

``file'' thinks this:
$ file hack.So
hack.So: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically 
linked, not stripped

-Olaf.
-- 
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to