From owner-freebsd-questions@freebsd.org Tue Nov 13 20:24:10 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9EB711130ABB for ; Tue, 13 Nov 2018 20:24:10 +0000 (UTC) (envelope-from trkellers@gmail.com) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 045B876782 for ; Tue, 13 Nov 2018 20:24:10 +0000 (UTC) (envelope-from trkellers@gmail.com) Received: by mail-qk1-x733.google.com with SMTP id q1so21858421qkf.13 for ; Tue, 13 Nov 2018 12:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=DuXZPGSx+lIlM5O4U9upZg/xJxe27QJ3SDuaqBaq0+w=; b=ivUMOjYisipiWuQZ66fnQmAEBQB9bmVCWYmbrj/cpp+mRHcYhUmyb6cjyUnarSn5re Bg3pqPIKWev/LzlhDJU9Z7cDfnNJn/K4jhsb4jubt++WZqDt5natR6yuVb5x+JaVrrQj gK/Iw09CrX4MnAv6AaNFlSiVvVN/eBgnDPlKSFOOOJpz05Sf6z4P1i4QTR1BS3HoBTeC tdgWpZxsAbHCVUqQ9IXP9kDKRE6SHQe8hKQ8/uVmCBIuK25D436dbI1sOvE3WdUGxTP3 EqKw0VUp3IWKn9qQmKf9p0jX3jgwap+U/0lcJq5Wu6hGh0/qjqsRDf0XzoNxjdDQW3/a dayg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=DuXZPGSx+lIlM5O4U9upZg/xJxe27QJ3SDuaqBaq0+w=; b=nfg/BtvdjlA9A+GBBBRi0JsFoIRmFftnGuIXnCv1dtgjBxiijok6Txakn0jrjxPLOa 6j57YQQyEl1DJLIYn0uneuO8McvMdUJzWeViV3ylw/B56kDG7878w2eJ4nFuSLogm+OX y2nTeLpHTEJfBXzKRkBxpmMcljKn/gzPAECvH/9hfuMRNrgyhFaKYzWPIbk3hEfuzdTY JSXsL44MlTuFh97OGOSlMCSEOz/fPQsCOJWhu1D40/ag0EzjZc6rMQIXJnVv/762AHRf t8zQz0WRqfMcZWjjN9aMDGmhSs0j68lyRru7URCJaGuX4SiqnH5hH3BqD8SmH5YVGDBn jnGw== X-Gm-Message-State: AGRZ1gKGGFvvr+XiiJgOCXso2xUROGn3wC+zoFgPvTRKGClTdOuPy6Cj FvnSaDirmyNgf6Zhj7OJrfAKtWg2 X-Google-Smtp-Source: AJdET5ffMdRsRsFBeEe4UDZAMq/1UQLSH384aOYrfFiKqs5CCkIFHcICE/iODggx/JUXfk5TOvhu+w== X-Received: by 2002:a0c:fccf:: with SMTP id i15mr6723816qvq.69.1542140649196; Tue, 13 Nov 2018 12:24:09 -0800 (PST) Received: from TIMs-iMac.local ([50.36.29.197]) by smtp.gmail.com with ESMTPSA id 5sm6122038qtw.50.2018.11.13.12.24.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 12:24:08 -0800 (PST) To: freebsd-questions From: TIM KELLERS Subject: 11.1-R to 11.2-R upgrade error and odd fix Message-ID: Date: Tue, 13 Nov 2018 15:24:07 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 045B876782 X-Spamd-Result: default: False [-4.96 / 200.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[197.29.36.50.zen.spamhaus.org : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.98)[ipnet: 2607:f8b0::/32(-2.89), asn: 15169(-1.92), country: US(-0.09)]; RCVD_IN_DNSWL_NONE(0.00)[3.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 20:24:10 -0000 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