Kernel compile error (from newbies)
clayton rollins
crollins666 at hotmail.com
Sat Jul 5 12:04:57 PDT 2003
On Sat, 5 Jul 2003 Mihail <hej at hot.ee> wrote:
>
>Hi,
>
>While building a custom kernel "make" failed with this error:
>
>cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs
>-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
>-Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../..
>-I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter
>-D_KERNEL -include opt_global.h -fno-common -falign-functions=4
>-march=pentium4 -mfpmath=sse -msse -msse2 -mno-align-long-strings
>-mpreferred-stack-boundary=2 -ffreestanding -Werror ../../../dev/fb/vga.c
>{standard input}: Assembler messages:
>{standard input}:3833: Error: suffix or operands invalid for `movd'
>{standard input}:4053: Error: suffix or operands invalid for `movd'
>*** Error code 1
>
>I did "make" from /usr/src/sys/i386/compile/MYKERNEL just as described on
>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
>BTW, how to change the _default_ CFLAGS? I would want to remove
>-mcpu=pentiumpro that is being appended (in case -mcpu=pentiumpro
>conflicts with my -march=pentium4 flag?)
>
I really can't figure why the kernel won't compile. (Other than the obvious
reason.)
If you're using gcc 3.2, the -msse2 flag is known to cause this problem.
Other than
that, what you propose sounds like the next thing to check.
I'll cc -questions, which is the proper list for tech. advice. Maybe someone
there
will have a better answer for you.
You can alter /etc/make.conf to change the flags; I'm not sure how it picks
up the
'automatic settings.' (Again, maybe someone at -questions will have a better
answer.)
Peace,
Clayton
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
More information about the freebsd-questions
mailing list