NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-mips/53719: mips64eb fails to build libm with -current sources from 20181109



>Number:         53719
>Category:       port-mips
>Synopsis:       mips64eb fails to build libm with -current sources from 20181109
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-mips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 10 19:25:00 +0000 2018
>Originator:     Jason Thorpe
>Release:        -current sources from 20181109
>Organization:
NetBSD
>Environment:
Cross-compiled from macOS 10.14.x
>Description:
libm fails to build for mips64eb:

#   compile  libm/fenv.o
/nbsd/tools/bin/mips64--netbsd-gcc -O2   -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror  -Wa,--fatal-warnings -fPIE -fno-strict-aliasing   --sysroot=/nbsd/destdir/evbmips64eb -D_MULTI_LIBM -D_POSIX_MODE -DLIBM_SCCS -I/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src -I/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/gen  -c    /Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c -o fenv.o
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:63:29: error: invalid initializer
 const fenv_t __fe_dfl_env = 0;
                             ^
In file included from /Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:33:0:
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:81:21: error: inline function '_fegetexcept' declared but never defined [-Werror]
 #define fegetexcept _fegetexcept
                     ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:78:19: note: in expansion of macro 'fegetexcept'
 extern inline int fegetexcept(void);
                   ^~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:78:25: error: inline function '_fedisableexcept' declared but never defined [-Werror]
 #define fedisableexcept _fedisableexcept
                         ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:77:19: note: in expansion of macro 'fedisableexcept'
 extern inline int fedisableexcept(int __excepts);
                   ^~~~~~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:79:24: error: inline function '_feenableexcept' declared but never defined [-Werror]
 #define feenableexcept _feenableexcept
                        ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:76:19: note: in expansion of macro 'feenableexcept'
 extern inline int feenableexcept(int __excepts);
                   ^~~~~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:90:21: error: inline function '_feupdateenv' declared but never defined [-Werror]
 #define feupdateenv _feupdateenv
                     ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:75:19: note: in expansion of macro 'feupdateenv'
 extern inline int feupdateenv(const fenv_t *__envp);
                   ^~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:86:18: error: inline function '_fesetenv' declared but never defined [-Werror]
 #define fesetenv _fesetenv
                  ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:74:19: note: in expansion of macro 'fesetenv'
 extern inline int fesetenv(const fenv_t *__envp);
                   ^~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:84:22: error: inline function '_feholdexcept' declared but never defined [-Werror]
 #define feholdexcept _feholdexcept
                      ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:73:19: note: in expansion of macro 'feholdexcept'
 extern inline int feholdexcept(fenv_t *__envp);
                   ^~~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:80:18: error: inline function '_fegetenv' declared but never defined [-Werror]
 #define fegetenv _fegetenv
                  ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:72:19: note: in expansion of macro 'fegetenv'
 extern inline int fegetenv(fenv_t *__envp);
                   ^~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:88:20: error: inline function '_fesetround' declared but never defined [-Werror]
 #define fesetround _fesetround
                    ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:71:19: note: in expansion of macro 'fesetround'
 extern inline int fesetround(int __round);
                   ^~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:83:20: error: inline function '_fegetround' declared but never defined [-Werror]
 #define fegetround _fegetround
                    ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:70:19: note: in expansion of macro 'fegetround'
 extern inline int fegetround(void);
                   ^~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:89:22: error: inline function '_fetestexcept' declared but never defined [-Werror]
 #define fetestexcept _fetestexcept
                      ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:69:19: note: in expansion of macro 'fetestexcept'
 extern inline int fetestexcept(int __excepts);
                   ^~~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:87:25: error: inline function '_fesetexceptflag' declared but never defined [-Werror]
 #define fesetexceptflag _fesetexceptflag
                         ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:67:19: note: in expansion of macro 'fesetexceptflag'
 extern inline int fesetexceptflag(const fexcept_t *__flagp, int __excepts);
                   ^~~~~~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:85:23: error: inline function '_feraiseexcept' declared but never defined [-Werror]
 #define feraiseexcept _feraiseexcept
                       ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:68:19: note: in expansion of macro 'feraiseexcept'
 extern inline int feraiseexcept(int __excepts);
                   ^~~~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:82:25: error: inline function '_fegetexceptflag' declared but never defined [-Werror]
 #define fegetexceptflag _fegetexceptflag
                         ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:66:19: note: in expansion of macro 'fegetexceptflag'
 extern inline int fegetexceptflag(fexcept_t *__flagp, int __excepts);
                   ^~~~~~~~~~~~~~~
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src/namespace.h:77:23: error: inline function '_feclearexcept' declared but never defined [-Werror]
 #define feclearexcept _feclearexcept
                       ^
/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c:65:19: note: in expansion of macro 'feclearexcept'
 extern inline int feclearexcept(int __excepts);
                   ^~~~~~~~~~~~~
cc1: all warnings being treated as errors

*** Failed target:  fenv.o
*** Failed command: /nbsd/tools/bin/mips64--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror -Wa,--fatal-warnings -fPIE -fno-strict-aliasing --sysroot=/nbsd/destdir/evbmips64eb -D_MULTI_LIBM -D_POSIX_MODE -DLIBM_SCCS -I/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/src -I/Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/gen -c /Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/lib/libm/arch/mips/fenv.c -o fenv.o
*** Error code 1

>How-To-Repeat:
Just attempt to build an evbmips64-eb distribution.
>Fix:



Home | Main Index | Thread Index | Old Index