building kernel fails with bad inlines?
Adriaan de Groot
adridg at cs.kun.nl
Tue Nov 4 11:51:41 PST 2003
With a -CURRENT /usr/src/sys, my amd64 box fails to compile the kernel with
errors like:
./../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-common
-finline-limit=15000 -fno-strict-aliasing -mcmodel=kernel -mno-red-zone
-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -Werror
../../../kern/kern_descrip.c
../../../kern/kern_descrip.c: In function `fget':
../../../kern/kern_descrip.c:1850: warning: inlining failed in call to `_fget'
../../../kern/kern_descrip.c:1889: warning: called from here
(there's a whole gob of them, all related to _fget.) I imagine this is related
to the __inline keyword in the definition of _fget + -finline-limit=15000 +
-Werror . In any case, removing the __inline gets the job done. I can't
actually tell where the inline-limit comes from, so I haven't experimented
with upping that even more.
More information about the freebsd-amd64
mailing list