From owner-freebsd-current@FreeBSD.ORG Sun Aug 26 11:37:55 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 F30CD16A417; Sun, 26 Aug 2007 11:37:54 +0000 (UTC) (envelope-from h.schmalzbauer@omnisec.de) Received: from host.omnisec.de (host.omnisec.de [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 56BFD13C461; Sun, 26 Aug 2007 11:37:53 +0000 (UTC) (envelope-from h.schmalzbauer@omnisec.de) Received: from tek.flintsbach.schmalzbauer.de (tek.flintsbach.schmalzbauer.de [172.21.2.3]) by host.omnisec.de (8.13.8/8.13.8) with ESMTP id l7QBblpI095776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Aug 2007 13:37:52 +0200 (CEST) (envelope-from h.schmalzbauer@omnisec.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [IPv6:fec0::1:0:0:1:1]) by tek.flintsbach.schmalzbauer.de (8.13.8/8.13.8) with ESMTP id l7QBblM9025402; Sun, 26 Aug 2007 13:37:47 +0200 (CEST) (envelope-from h.schmalzbauer@omnisec.de) Received: from localhost (localhost [[UNIX: localhost]]) by titan.flintsbach.schmalzbauer.de (8.14.1/8.14.1/Submit) id l7QBcZET001881; Sun, 26 Aug 2007 13:38:35 +0200 (CEST) (envelope-from h.schmalzbauer@omnisec.de) X-Authentication-Warning: titan.flintsbach.schmalzbauer.de: harry set sender to h.schmalzbauer@omnisec.de using -f From: Harald Schmalzbauer Organization: OmniSEC To: freebsd-current@freebsd.org Date: Sun, 26 Aug 2007 13:38:35 +0200 User-Agent: KMail/1.9.7 References: <200708210339.l7L3dUX0038042@repoman.freebsd.org> <200708260216.14210.h.schmalzbauer@omnisec.de> <46D10B10.2060608@FreeBSD.org> In-Reply-To: <46D10B10.2060608@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708261338.35874.h.schmalzbauer@omnisec.de> 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 11:37:55 -0000 Am Sonntag, 26. August 2007 07:09:36 schrieb Constantine A. Murenin: [...] > > /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? It's a core2 (E6420) machine, running amd64 -current from today (so gcc 4.2.1 with default -O2). In make.conf I have CPUTYPE?=core2, but removing the CPUTYPE doesn't make any difference, it fails exactly with the same error. Makeoption is -j5 as it's a ULE kernel but that's completely irrelevant I think. > 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. Right, kernel compiles fine now. Thanks, -Harry