compile error while building kernel

Rance Hall ranceh at gmail.com
Thu Mar 27 19:19:25 PDT 2008


On Thu, Mar 27, 2008 at 8:16 PM, walt <w41ter at gmail.com> wrote:
>
>  Hm.  Well, I just compiled GENERIC using the 'old' method.  Your missing
>  symbols are defined in assym.s, which is generated during the compile by
>  genassym.sh right at the beginning:
>
>  root at k9/usr/src/sys/i386/compile/GENERIC #make
>  cc -c -O -pipe -march=athlon-xp -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 -finline-limit=8000 --param inline-unit-growth=100 --param
>  large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2
>  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding
>  ../../../i386/i386/genassym.c
>  NM='nm' sh ../../../kern/genassym.sh genassym.o > assym.s
>
>  Do you see something different at your end?
>


I never noticed before but since you have mentioned that the values
are supposed to be set in assym.s in the step right before my failure
I went back and looked and I get this:

[/usr/src/sys/i386/compile/GENERIC] root at rance-freebsd# make
cc -c -o -pipe -march=athlon-mp -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
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -mno-align-long-strings
-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -ffreestanding ../../../i386/i386/genassym.c
NM='nm' sh ../../../kern/genassym.sh genassym.o > assym.s
nm: 'genassym.o': No such file

which must be the problem.  If there is no genassym.o file then
assym.s doesnt get created.

Then when assym.s doesnt get created the rest of the build will fail miserably

ok, so I know what the problem is.  Wonder what to do about it?


More information about the freebsd-stable mailing list