Date: Tue, 13 Nov 2018 15:24:07 -0500 From: TIM KELLERS <trkellers@gmail.com> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: 11.1-R to 11.2-R upgrade error and odd fix Message-ID: <e2ff8944-c732-384a-3f45-3b48c5e311c2@gmail.com>
next in thread | raw e-mail | index | archive | help
I had a virtual server running 11.1-RELEASE that I wanted to update to 11.2-RELEASE. I created /usr/src and did: svn checkout https://svn.freebsd.org/base/releng/11.2 /usr/src make buildworld bombed making the bootstrap tools with: /usr/include/c++/v1/limits:119:1: error: unknown type name '_LIBCPP_PUSH_MACROS' _LIBCPP_PUSH_MACROS ^ /usr/include/c++/v1/limits:123:1: error: expected unqualified-id _LIBCPP_BEGIN_NAMESPACE_STD ^ /usr/include/c++/v1/__config:388:37: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD' #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIB... The rest of the compiler error trail: In file included from /usr/src/contrib/llvm/lib/Support/APFloat.cpp:15: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APFloat.h:20: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APInt.h:20: In file included from /usr/src/contrib/llvm/include/llvm/Support/MathExtras.h:19: In file included from /usr/include/c++/v1/algorithm:640: In file included from /usr/include/c++/v1/memory:634: /usr/include/c++/v1/limits:815:1: error: unknown type name '_LIBCPP_POP_MACROS' _LIBCPP_POP_MACROS ^ In file included from /usr/src/contrib/llvm/lib/Support/APFloat.cpp:15: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APFloat.h:20: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APInt.h:20: In file included from /usr/src/contrib/llvm/include/llvm/Support/MathExtras.h:19: In file included from /usr/include/c++/v1/algorithm:640: In file included from /usr/include/c++/v1/memory:635: In file included from /usr/include/c++/v1/iterator:417: In file included from /usr/include/c++/v1/iosfwd:90: In file included from /usr/include/c++/v1/wchar.h:119: In file included from /usr/include/wchar.h:67: /usr/include/_ctype.h:71:1: error: expected unqualified-id __BEGIN_DECLS ^ /usr/include/sys/cdefs.h:59:23: note: expanded from macro '__BEGIN_DECLS' #define __BEGIN_DECLS extern "C" { ^ In file included from /usr/src/contrib/llvm/lib/Support/APFloat.cpp:15: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APFloat.h:20: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APInt.h:20: In file included from /usr/src/contrib/llvm/include/llvm/Support/MathExtras.h:19: In file included from /usr/include/c++/v1/algorithm:640: In file included from /usr/include/c++/v1/memory:635: In file included from /usr/include/c++/v1/iterator:417: In file included from /usr/include/c++/v1/iosfwd:90: In file included from /usr/include/c++/v1/wchar.h:119: In file included from /usr/include/wchar.h:67: /usr/include/_ctype.h:100:44: error: use of undeclared identifier '___runetype' return ((_c < 0 || _c >= _CACHED_RUNES) ? ___runetype(_c) : ^ /usr/include/_ctype.h:133:43: error: use of undeclared identifier '___toupper'; did you mean '__toupper'? return (_c < 0 || _c >= _CACHED_RUNES) ? ___toupper(_c) : ^ /usr/include/_ctype.h:131:1: note: '__toupper' declared here __toupper(__ct_rune_t _c) ^ /usr/include/_ctype.h:147:43: error: use of undeclared identifier '___tolower'; did you mean '__tolower'? return (_c < 0 || _c >= _CACHED_RUNES) ? ___tolower(_c) : ^ /usr/include/_ctype.h:145:1: note: '__tolower' declared here __tolower(__ct_rune_t _c) ^ In file included from /usr/src/contrib/llvm/lib/Support/APFloat.cpp:15: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APFloat.h:20: In file included from /usr/src/contrib/llvm/include/llvm/ADT/APInt.h:24: In file included from /usr/include/c++/v1/string:470: In file included from /usr/include/c++/v1/string_view:171: /usr/include/c++/v1/__string:60:10: fatal error: '__undef_min_max' file not found #include <__undef_min_max> ^~~~~~~~~~~~~~~~~ 8 errors generated. *** Error code 1 Stop. make[3]: stopped in /usr/src/lib/clang/libllvmminimal The "fix" for this was copying this file (__undef_min_max) to these 2 locations (from an 11.2-STABLE instance I have, r337124) /usr/include/c++/v1/__undef_min_max /usr/include/c++/v1/tr1/__undef_min_max Here is my clang version: > clang --version FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) Target: x86_64-unknown-freebsd11.2 Thread model: posix InstalledDir: /usr/bin And my c++ version: > c++ --version FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) Target: x86_64-unknown-freebsd11.2 Thread model: posix InstalledDir: /usr/bin The world finally successfully built, but I have no idea why my svn left those files out of those directories or why my clang/c++ may be somehow deficient. Its fixed (at least its working for now), but I'd like to know what happened so I don't run into (or cause) this to happen again. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e2ff8944-c732-384a-3f45-3b48c5e311c2>