/usr/include/c++/v1/cmath:653:9: error

AN andy at neu.net
Mon Dec 8 21:23:31 UTC 2014


Hi List:

FreeBSD  11.0-CURRENT FreeBSD 11.0-CURRENT #15 r275578: Sun 
Dec  7 15:25:11 EST 2014   :/usr/obj/usr/src/sys/MYKERNEL  amd64

[root at mail /usr/src]# svnlite info
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn.freebsd.org/base/head
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 275623
Node Kind: directory
Schedule: normal
Last Changed Author: ngie
Last Changed Rev: 275622
Last Changed Date: 2014-12-08 13:29:20 -0500 (Mon, 08 Dec 2014)

I ran into this bug yesterday while trying to do installworld:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195537
[xen] vt console somehow causes failures to boot and disk errors

this is on a VPS with Rootbsd.

The system froze and I rebooted into single user mode and did full fsck 
several times. I added kern.vty="sc" in loader.conf and am able to boot 
normally.  I tried to do svnlite up and had failures, so I deleted 
/usr/src and did svnlite co svn://svn.freebsd.org/base/head/ /usr/src 
which finished successfully.

My problem now is when I try to do buildworld I receive the following 
failure:
c++  -O2 -pipe 
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include 
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include 
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I. 
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include 
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS 
-D__STDC_CONSTANT_MACROS -fno-strict-aliasing 
-DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd11.0\" 
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"\" 
-Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include 
-fno-exceptions -fno-rtti -Wno-c++11-extensions  -c 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp 
-o APFloat.o
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp:15:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/APFloat.h:20:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/APInt.h:19:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/ArrayRef.h:14:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/SmallVector.h:19:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/MathExtras.h:18:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/SwapByteOrder.h:18:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include/llvm/Support/DataTypes.h:36:
/usr/include/c++/v1/cmath:638:9: error: no member named 'signbit' in the 
global namespace
using ::signbit;
       ~~^
/usr/include/c++/v1/cmath:639:9: error: no member named 'fpclassify' in 
the global namespace
using ::fpclassify;
       ~~^
/usr/include/c++/v1/cmath:640:9: error: no member named 'isfinite' in the 
global namespace
using ::isfinite;
       ~~^
/usr/include/c++/v1/cmath:641:9: error: no member named 'isinf' in the 
global namespace
using ::isinf;
       ~~^
/usr/include/c++/v1/cmath:642:9: error: no member named 'isnan' in the 
global namespace
using ::isnan;
       ~~^
/usr/include/c++/v1/cmath:643:9: error: no member named 'isnormal' in the 
global namespace
using ::isnormal;
       ~~^
/usr/include/c++/v1/cmath:644:9: error: no member named 'isgreater' in the 
global namespace
using ::isgreater;
       ~~^
/usr/include/c++/v1/cmath:645:9: error: no member named 'isgreaterequal' 
in the global namespace
using ::isgreaterequal;
       ~~^
/usr/include/c++/v1/cmath:646:9: error: no member named 'isless' in the 
global namespace
using ::isless;
       ~~^
/usr/include/c++/v1/cmath:647:9: error: no member named 'islessequal' in 
the global namespace
using ::islessequal;
       ~~^
/usr/include/c++/v1/cmath:648:9: error: no member named 'islessgreater' in 
the global namespace
using ::islessgreater;
       ~~^
/usr/include/c++/v1/cmath:649:9: error: no member named 'isunordered' in 
the global namespace
using ::isunordered;
       ~~^
/usr/include/c++/v1/cmath:650:9: error: no member named 'isunordered' in 
the global namespace
using ::isunordered;
       ~~^
/usr/include/c++/v1/cmath:652:9: error: no member named 'float_t' in the 
global namespace; did you mean '__float_t'?
using ::float_t;
       ~~^
/usr/include/x86/_types.h:80:16: note: '__float_t' declared here
typedef float           __float_t;
                         ^
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp:15:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/APFloat.h:20:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/APInt.h:19:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/ArrayRef.h:14:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/SmallVector.h:19:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/MathExtras.h:18:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/SwapByteOrder.h:18:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include/llvm/Support/DataTypes.h:36:
/usr/include/c++/v1/cmath:653:9: error: no member named 'double_t' in the 
global namespace; did you mean '__double_t'?
using ::double_t;
       ~~^
/usr/include/x86/_types.h:79:17: note: '__double_t' declared here
typedef double          __double_t;
                         ^
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp:15:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/APFloat.h:20:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/APInt.h:19:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/ArrayRef.h:14:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/SmallVector.h:19:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/MathExtras.h:18:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/SwapByteOrder.h:18:
In file included from 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include/llvm/Support/DataTypes.h:36:
/usr/include/c++/v1/cmath:660:34: error: use of undeclared identifier 
'fabsf'
abs(float __x) _NOEXCEPT {return fabsf(__x);}
                                  ^
/usr/include/c++/v1/cmath:664:35: error: use of undeclared identifier 
'fabs'; did you mean 'abs'?
abs(double __x) _NOEXCEPT {return fabs(__x);}
                                   ^
/usr/include/c++/v1/cmath:664:1: note: 'abs' declared here
abs(double __x) _NOEXCEPT {return fabs(__x);}
^
/usr/include/c++/v1/cmath:668:40: error: use of undeclared identifier 
'fabsl'
abs(long double __x) _NOEXCEPT {return fabsl(__x);}
                                        ^
/usr/include/c++/v1/cmath:675:9: error: no member named 'acos' in the 
global namespace
using ::acos;
       ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1

Stop.
make[3]: stopped in /usr/src/lib/clang/libllvmsupport
*** Error code 1

Stop.
make[2]: stopped in /usr/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src


Any help to fix this problem would be greatly appreciated, thanks in 
advance.

Andy



More information about the freebsd-current mailing list