Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2005 04:46:51 +0900 (JST)
From:      KOBAYASHI Hidenobu <kobayasi@pp.iij4u.or.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   amd64/83806: Can not comple /usr/src/lib/msun/amd64/fenv.c at make buildworld.
Message-ID:  <20050720194651.46A391FFC19@dlrow.dyndns.org>
Resent-Message-ID: <200507201950.j6KJoExU059921@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <sys/cdefs.h>
 #include <sys/types.h>
 #include <machine/fpu.h>
-#include <fenv.h>
+#include "fenv.h"

 const fenv_t __fe_dfl_env = {
        { 0xffff0000 | __INITIAL_FPUCW__,

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050720194651.46A391FFC19>