amd64/83806: Can not comple /usr/src/lib/msun/amd64/fenv.c at make
buildworld.
KOBAYASHI Hidenobu
kobayasi at pp.iij4u.or.jp
Wed Jul 20 19:50:25 GMT 2005
>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 at 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:
More information about the freebsd-amd64
mailing list