From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 17:54:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E7AA106566B for ; Wed, 3 Mar 2010 17:54:39 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by mx1.freebsd.org (Postfix) with ESMTP id 0F51A8FC21 for ; Wed, 3 Mar 2010 17:54:38 +0000 (UTC) Received: from [192.168.1.3] ([unknown] [96.224.35.192]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0KYP00IJLTMGMNN0@vms173001.mailsrvcs.net> for freebsd-questions@freebsd.org; Wed, 03 Mar 2010 10:54:18 -0600 (CST) Message-id: <4B8E9435.5020804@mac.com> Date: Wed, 03 Mar 2010 11:54:13 -0500 From: Chuck Swiger User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-version: 1.0 To: Aaron Lewis References: <4B8A63D5.90104@gmail.com> <4B8E830B.2000708@gmail.com> In-reply-to: <4B8E830B.2000708@gmail.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Compiler Flags problem with core2 CPU X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 17:54:39 -0000 Aaron Lewis wrote: > [root@Meilk /usr/src/sys/i386/compile/AARON]# make > CC='cc' make -f ../../../dev/aic7xxx/aicasm/Makefile > MAKESRCPATH=../../../dev/aic7xxx/aicasm > Warning: Object directory not changed from original > /usr/src/sys/i386/compile/AARON > cc -O2 -pipe -march=i686 -ffast-math -mfpmath=sse -O3 [ ... ] > cc1: warnings being treated as errors > ../../../dev/aic7xxx/aicasm/aicasm.c:1: warning: SSE instruction set > disabled, using 387 arithmetics > *** Error code 1 > > > It's interesting something can work with SSE instruction , while some > are not , Warnings are treated as errors , if we can safely disable it in some > specific occasions. Dude, the FreeBSD kernel doesn't use floating point, MMX, or SSE. See sys/conf/kern.mk: # [ ... ] Explicitly prohibit the use of SSE and other SIMD # operations inside the kernel itself. These operations are exclusively # reserved for user applications. # .if ${MACHINE_ARCH} == "i386" && ${CC} != "icc" CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 \ -mno-mmx -mno-3dnow -mno-sse -mno-sse2 INLINE_LIMIT?= 8000 .endif Trying to override the default compiler flags to force it to use SSE is simply not going to work. -- -Chuck