[MacPorts] #62770: clang++ 11 broken by MacOS 11.3 update
MacPorts
noreply at macports.org
Wed Apr 28 21:28:20 UTC 2021
#62770: clang++ 11 broken by MacOS 11.3 update
-----------------------+---------------------------
Reporter: haberg-1 | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: bigsur x86_64
Port: clang-11 |
-----------------------+---------------------------
Comment (by kencu):
I see the same errors with macports-clang-10 and macports-clang-11 (but
not with xcode clang). It appears to be finding the headers, so I don't
think it's just a simple SDK search path issue.
The Xcode 12.5 release notes don't give me an immediate answer, although
there are some noted changes <https://developer.apple.com/documentation
/xcode-release-notes/xcode-12_5-release-notes> .
{{{
% clang++ -v hello_world.cc
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
-cc1 -triple x86_64-apple-macosx11.0.0 -Wdeprecated-objc-isa-usage -Werror
=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj
-mrelax-all -disable-free -disable-llvm-verifier -discard-value-names
-main-file-name hello_world.cc -mrelocation-model pic -pic-level 2
-mframe-pointer=all -fno-strict-return -fno-rounding-math -munwind-tables
-target-sdk-version=11.3 -fvisibility-inlines-hidden-static-local-var
-target-cpu penryn -debugger-tuning=lldb -target-linker-version 650.9 -v
-resource-dir
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-I/usr/local/include -stdlib=libc++ -internal-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
-internal-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include
-internal-isystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5/include
-internal-externc-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-internal-externc-isystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-Wno-reorder-init-list -Wno-implicit-int-float-conversion
-Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt
-Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-
implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion
-Wno-elaborated-enum-base -fdeprecated-macro -fdebug-compilation-dir
/Users/cunningh/Downloads -ferror-limit 19 -stack-protector 1 -fstack-
check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-
signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fcxx-
exceptions -fexceptions -fmax-type-align=16 -fcommon -fcolor-diagnostics
-clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation
-fno-odr-hash-protocols -mllvm -disable-aligned-alloc-awareness=1 -o
/var/folders/mn/s7mk_ptj3d39y51m_hpjnrpm0000gn/T/hello_world-17b97e.o -x
c++ hello_world.cc
clang -cc1 version 12.0.5 (clang-1205.0.22.9) default target x86_64-apple-
darwin20.3.0
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
(framework directory)
End of search list.
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
-demangle -lto_library
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib
-no_deduplicate -dynamic -arch x86_64 -platform_version macos 11.0.0 11.3
-syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-o a.out -L/usr/local/lib /var/folders/mn/s7mk_ptj3d39y51m_hpjnrpm0000gn/T
/hello_world-17b97e.o -lc++ -lSystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.5/lib/darwin/libclang_rt.osx.a
}}}
{{{
% clang++-mp-10 -v hello_world.cc
clang version 10.0.1
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-10/bin
"/opt/local/libexec/llvm-10/bin/clang" -cc1 -triple x86_64-apple-
macosx10.16.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-
usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-
value-names -main-file-name hello_world.cc -mrelocation-model pic -pic-
level 2 -mthread-model posix -mframe-pointer=all -fno-rounding-math -masm-
verbose -munwind-tables -target-sdk-version=11.3 -target-cpu penryn
-dwarf-column-info -debugger-tuning=lldb -target-linker-version 609.7 -v
-resource-dir /opt/local/libexec/llvm-10/lib/clang/10.0.1 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-I/usr/local/include -stdlib=libc++ -internal-isystem
/opt/local/libexec/llvm-10/bin/../include/c++/v1 -internal-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
-internal-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include
-internal-isystem /opt/local/libexec/llvm-10/lib/clang/10.0.1/include
-internal-externc-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-fdeprecated-macro -fdebug-compilation-dir /Users/cunningh/Downloads
-ferror-limit 19 -fmessage-length 175 -stack-protector 1 -fblocks
-fencode-extended-block-signature -fregister-global-dtors-with-atexit
-fgnuc-version=4.2.1 -fobjc-runtime=macosx-10.16.0 -fcxx-exceptions
-fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-
diagnostics -o /var/folders/mn/s7mk_ptj3d39y51m_hpjnrpm0000gn/T
/hello_world-33fa0d.o -x c++ hello_world.cc
clang -cc1 version 10.0.1 based upon LLVM 10.0.1 default target x86_64
-apple-darwin20.3.0
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/opt/local/libexec/llvm-10/bin/../include/c++/v1
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
/opt/local/libexec/llvm-10/lib/clang/10.0.1/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
(framework directory)
End of search list.
In file included from hello_world.cc:2:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iostream:37:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/ios:214:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iosfwd:95:
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:136:77: error:
use of undeclared identifier 'wcschr'
wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return
(wchar_t*)wcschr(__s, __c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:143:87: error:
use of undeclared identifier 'wcspbrk'
wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2)
{return (wchar_t*)wcspbrk(__s1, __s2);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:150:78: error:
use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'?
wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return
(wchar_t*)wcsrchr(__s, __c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:138:16: note:
'wcschr' declared here
const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return
__libcpp_wcschr(__s, __c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:157:86: error:
use of undeclared identifier 'wcsstr'; did you mean 'wcschr'?
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return
(wchar_t*)wcsstr(__s1, __s2);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:140:16: note:
'wcschr' declared here
wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return
__libcpp_wcschr(__s, __c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:157:86: error: no
matching function for call to 'wcschr'
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return
(wchar_t*)wcsstr(__s1, __s2);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:140:16: note:
candidate disabled: <no message provided>
wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return
__libcpp_wcschr(__s, __c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:157:93: error:
cannot initialize a parameter of type 'wchar_t *' with an lvalue of type
'const wchar_t *'
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return
(wchar_t*)wcsstr(__s1, __s2);}
^~~~
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:140:38: note:
passing argument to parameter '__s' here
wchar_t* wcschr( wchar_t* __s, wchar_t __c) {return
__libcpp_wcschr(__s, __c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:164:60: error:
unknown type name 'size_t'
wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n)
{return (wchar_t*)wmemchr(__s, __c, __n);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:166:57: error:
unknown type name 'size_t'
const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n)
{return __libcpp_wmemchr(__s, __c, __n);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:168:57: error:
unknown type name 'size_t'
wchar_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n)
{return __libcpp_wmemchr(__s, __c, __n);}
^
In file included from hello_world.cc:2:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iostream:37:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/ios:214:
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iosfwd:189:14: error: use
of undeclared identifier 'mbstate_t'
typedef fpos<mbstate_t> streampos;
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iosfwd:190:14: error: use
of undeclared identifier 'mbstate_t'
typedef fpos<mbstate_t> wstreampos;
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iosfwd:195:14: error: use
of undeclared identifier 'mbstate_t'
typedef fpos<mbstate_t> u16streampos;
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iosfwd:196:14: error: use
of undeclared identifier 'mbstate_t'
typedef fpos<mbstate_t> u32streampos;
^
In file included from hello_world.cc:2:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iostream:37:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/ios:215:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/__locale:14:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string:504:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string_view:175:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/__string:57:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/algorithm:641:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/cstring:60:
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:73:64: error:
use of undeclared identifier 'strchr'
char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s,
__c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:80:75: error:
use of undeclared identifier 'strpbrk'
char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return
(char*)strpbrk(__s1, __s2);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:87:65: error:
use of undeclared identifier 'strrchr'; did you mean 'strchr'?
char* __libcpp_strrchr(const char* __s, int __c) {return
(char*)strrchr(__s, __c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:75:13: note:
'strchr' declared here
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s,
__c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:94:76: error:
use of undeclared identifier 'memchr'; did you mean 'wmemchr'?
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return
(void*)memchr(__s, __c, __n);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/wchar.h:166:16: note:
'wmemchr' declared here
const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n)
{return __libcpp_wmemchr(__s, __c, __n);}
^
In file included from hello_world.cc:2:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/iostream:37:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/ios:215:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/__locale:14:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string:504:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string_view:175:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/__string:57:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/algorithm:641:
In file included from
/opt/local/libexec/llvm-10/bin/../include/c++/v1/cstring:60:
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:101:74: error:
use of undeclared identifier 'strstr'; did you mean 'strchr'?
char* __libcpp_strstr(const char* __s1, const char* __s2) {return
(char*)strstr(__s1, __s2);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:77:13: note:
'strchr' declared here
char* strchr( char* __s, int __c) {return __libcpp_strchr(__s,
__c);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:101:74: error:
no matching function for call to 'strchr'
char* __libcpp_strstr(const char* __s1, const char* __s2) {return
(char*)strstr(__s1, __s2);}
^
/opt/local/libexec/llvm-10/bin/../include/c++/v1/string.h:77:13: note:
candidate disabled: <no message provided>
char* strchr( char* __s, int __c) {return __libcpp_strchr(__s,
__c);}
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
}}}
{{{
% ls
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
__bit_reference bit cstring
limits stdexcept
__bsd_locale_defaults.h bitset ctgmath
limits.h stdint.h
__bsd_locale_fallbacks.h cassert ctime
list stdio.h
__config ccomplex ctype.h
locale stdlib.h
__cxxabi_config.h cctype cwchar
locale.h streambuf
__debug cerrno cwctype
map string
__errc cfenv cxxabi.h
math.h string.h
__functional_03 cfloat deque
memory string_view
__functional_base charconv errno.h
module.modulemap strstream
__functional_base_03 chrono exception
mutex support
__hash_table cinttypes execution
new system_error
__libcpp_version ciso646
experimental numbers tgmath.h
__locale climits ext
numeric thread
__mutex_base clocale fenv.h
optional tuple
__node_handle cmath filesystem
ostream type_traits
__nullptr codecvt float.h
queue typeindex
__split_buffer compare
forward_list random typeinfo
__sso_allocator complex fstream
ratio unordered_map
__std_stream complex.h functional
regex unordered_set
__string concepts future
scoped_allocator utility
__threading_support condition_variable
initializer_list semaphore valarray
__tree csetjmp inttypes.h
set variant
__tuple csignal iomanip
setjmp.h vector
__undef_macros cstdarg ios
shared_mutex version
algorithm cstdbool iosfwd
span wchar.h
any cstddef iostream
sstream wctype.h
array cstdint istream
stack
atomic cstdio iterator
stdbool.h
barrier cstdlib latch
stddef.h
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62770#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list