From owner-freebsd-amd64@FreeBSD.ORG Wed Jul 20 19:50:25 2005 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFA6416A420 for ; Wed, 20 Jul 2005 19:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05EFE43D5D for ; Wed, 20 Jul 2005 19:50:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6KJoEdp059923 for ; Wed, 20 Jul 2005 19:50:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6KJoExU059921; Wed, 20 Jul 2005 19:50:14 GMT (envelope-from gnats) Resent-Date: Wed, 20 Jul 2005 19:50:14 GMT Resent-Message-Id: <200507201950.j6KJoExU059921@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KOBAYASHI Hidenobu Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACCDA16A41F for ; Wed, 20 Jul 2005 19:46:52 +0000 (GMT) (envelope-from magus@dlrow.dyndns.org) Received: from dlrow.dyndns.org (h219-110-236-022.catv02.itscom.jp [219.110.236.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 489D743D48 for ; Wed, 20 Jul 2005 19:46:52 +0000 (GMT) (envelope-from magus@dlrow.dyndns.org) Received: by dlrow.dyndns.org (Postfix, from userid 999) id 46A391FFC19; Thu, 21 Jul 2005 04:46:51 +0900 (JST) Message-Id: <20050720194651.46A391FFC19@dlrow.dyndns.org> Date: Thu, 21 Jul 2005 04:46:51 +0900 (JST) From: KOBAYASHI Hidenobu To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: amd64/83806: Can not comple /usr/src/lib/msun/amd64/fenv.c at make buildworld. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KOBAYASHI Hidenobu List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 19:50:25 -0000 >Number: 83806 >Category: amd64 >Synopsis: Can not comple /usr/src/lib/msun/amd64/fenv.c at make buildworld. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 20 19:50:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: KOBAYASHI Hidenobu >Release: FreeBSD 6.0-BETA1 amd64 >Organization: >Environment: System: FreeBSD eins.anzahl.local 6.0-BETA1 FreeBSD 6.0-BETA1 #1: Mon Jul 18 02:31:56 JST 2005 magus@eins.anzahl.local:/usr/obj/usr/src/sys/TURION amd64 >Description: I can not comple /usr/src/lib/msun/amd64/fenv.c as follow commands. === START: COMMAND AND ERROR MESSAGES === eins# pwd /usr/src/lib/msun/amd64 eins# make -f Makefile.inc fenv.o /usr/local/libexec/ccache/cc -O2 -fno-strict-aliasing -pipe -c fenv.c fenv.c:35: warning: braces around scalar initializer fenv.c:35: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:35: warning: large integer implicitly truncated to unsigned type fenv.c:36: warning: excess elements in scalar initializer fenv.c:36: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:37: warning: excess elements in scalar initializer fenv.c:37: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: braces around scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: excess elements in scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: excess elements in scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: excess elements in scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: excess elements in scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: excess elements in scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: excess elements in scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:38: warning: excess elements in scalar initializer fenv.c:38: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c:39: warning: excess elements in scalar initializer fenv.c:39: warning: (near initialization for `__fe_dfl_env.__control') fenv.c: In function `fesetexceptflag': fenv.c:49: error: structure has no member named `__x87' fenv.c:50: error: structure has no member named `__x87' fenv.c:51: error: structure has no member named `__x87' fenv.c:52: error: structure has no member named `__x87' fenv.c:54: error: structure has no member named `__mxcsr' fenv.c:55: error: structure has no member named `__mxcsr' fenv.c:56: error: structure has no member named `__mxcsr' fenv.c:57: error: structure has no member named `__mxcsr' fenv.c: In function `fegetenv': fenv.c:82: error: structure has no member named `__x87' fenv.c:83: error: structure has no member named `__mxcsr' fenv.c: In function `feholdexcept': fenv.c:94: error: structure has no member named `__x87' fenv.c:96: error: structure has no member named `__mxcsr' *** Error code 1 Stop in /usr/src/lib/msun/amd64. === END: COMMAND AND ERROR MESSAGES === So I can not make buildworld. >How-To-Repeat: See Description part. >Fix: The cause of the compile error is in the method of the include of fenv.h. Now include /usr/include/fenv.h but include local fenv.h in same directory. Please apply the following patch. --- fenv.c.orig Thu Mar 17 04:03:45 2005 +++ fenv.c Thu Jul 21 04:37:50 2005 @@ -29,7 +29,7 @@ #include #include #include -#include +#include "fenv.h" const fenv_t __fe_dfl_env = { { 0xffff0000 | __INITIAL_FPUCW__, >Release-Note: >Audit-Trail: >Unformatted: