Can't build 8.1 GENERIC kernel

Olaf Seibert O.Seibert at cs.ru.nl
Thu Sep 9 14:17:04 UTC 2010


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.
-- 


More information about the freebsd-stable mailing list