From owner-freebsd-questions@FreeBSD.ORG Sat Jul 5 12:04:57 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 490AA37B401; Sat, 5 Jul 2003 12:04:57 -0700 (PDT) Received: from hotmail.com (sea1-f117.sea1.hotmail.com [207.68.163.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C177443FE3; Sat, 5 Jul 2003 12:04:56 -0700 (PDT) (envelope-from crollins666@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 5 Jul 2003 12:04:56 -0700 Received: from 216.19.22.118 by sea1fd.sea1.hotmail.msn.com with HTTP; Sat, 05 Jul 2003 19:04:55 GMT X-Originating-IP: [216.19.22.118] X-Originating-Email: [crollins666@hotmail.com] From: "clayton rollins" To: hej@hot.ee Date: Sat, 05 Jul 2003 19:04:55 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 05 Jul 2003 19:04:56.0060 (UTC) FILETIME=[52A1E3C0:01C34328] cc: freebsd-newbies@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: Kernel compile error (from newbies) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2003 19:04:57 -0000 On Sat, 5 Jul 2003 Mihail 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