From owner-freebsd-current@FreeBSD.ORG Sun Aug 26 05:09:48 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AABE16A418; Sun, 26 Aug 2007 05:09:48 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from mojo.ru (mojo.ru [84.252.152.63]) by mx1.freebsd.org (Postfix) with ESMTP id EB63313C46A; Sun, 26 Aug 2007 05:09:47 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from [192.168.0.16] (nc-76-4-28-21.dhcp.embarqhsd.net [76.4.28.21]) (authenticated bits=0) by mojo.ru (8.12.11.20060308/8.12.10) with ESMTP id l7Q59pVW005615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Aug 2007 09:09:54 +0400 Message-ID: <46D10B10.2060608@FreeBSD.org> Date: Sun, 26 Aug 2007 01:09:36 -0400 From: "Constantine A. Murenin" Organization: Google Summer of Code 2007 Student @ The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-gb, en-gb-oed, en, en-us, ru, ru-ru, ru-su MIME-Version: 1.0 To: Harald Schmalzbauer , freebsd-current@FreeBSD.org References: <200708210339.l7L3dUX0038042@repoman.freebsd.org> <46D0BEEF.1020601@FreeBSD.org> <200708260208.35700.h.schmalzbauer@omnisec.de> <200708260216.14210.h.schmalzbauer@omnisec.de> In-Reply-To: <200708260216.14210.h.schmalzbauer@omnisec.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Kabaev , "Constantine A. Murenin" Subject: Re: GSoC2007: cnst-sensors.2007-08-20.patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2007 05:09:48 -0000 On 25/08/2007 20:16, Harald Schmalzbauer wrote: >>>http://p4web.freebsd.org/@sr=125633@//depot/projects/soc2007/cnst-sensors/sys.dev.coretemp/coretemp.c ... > cc -O2 -fno-strict-aliasing -pipe -march=nocona -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/KORSO/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param > inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/KORSO -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/coretemp/../../dev/coretemp/coretemp.c > /usr/src/sys/modules/coretemp/../../dev/coretemp/coretemp.c: In > function 'coretemp_refresh': > /usr/src/sys/modules/coretemp/../../dev/coretemp/coretemp.c:297: error: SSE > register return with SSE disabled > *** Error code 1 > 1 error I cannot reproduce this bug on i386 with gcc 4.2.0 20070514, so this sounds like a bug in the compiler, either for allowing me to compile the code that shouldn't compile (and run flawlessly -- coretemp is totally tested here), or for not allowing you to compile the code that should compile. (I'll recompile my compiler tomorrow to catch up on the updates to gcc 4.2.1 to see if that changes anything.) Could you please provide more details, e.g. platform (I guess it is amd64?), compiler version and any changes you've made to the tree? This is the code that seems to generate this error with your compiler: s->value = temp * 1e6 + 273.15e6; Where s->value is of type int64_t, and temp is of type int. Does anyone know if the e notation should not be used in this context? In the meantime, I assume that changing that line to: s->value = temp * 1000000 + 273150000; must solve the problem. C.