Closed Nate711 closed 4 years ago
Should be fixed on master, see https://github.com/JuliaInterop/Cxx.jl/pull/428.
julia> Pkg.add(PackageSpec(url="https://github.com/JuliaInterop/Cxx.jl"))
Cloning git-repo `https://github.com/JuliaInterop/Cxx.jl`
Updating git-repo `https://github.com/JuliaInterop/Cxx.jl`
Updating git-repo `https://github.com/JuliaInterop/Cxx.jl`
Resolving package versions...
Updating `~/.julia/environments/v1.2/Project.toml`
[a0b5b9ef] + Cxx v0.3.2 #master (https://github.com/JuliaInterop/Cxx.jl)
Updating `~/.julia/environments/v1.2/Manifest.toml`
[a0b5b9ef] + Cxx v0.3.2 #master (https://github.com/JuliaInterop/Cxx.jl)
Building Cxx → `~/.julia/packages/Cxx/c7DTV/deps/build.log`
julia> using Cxx
[ Info: Precompiling Cxx [a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2]
WARNING: Could not add directory /Applications/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk/usr/include to clang search path!
In file included from /Cxx.h:1:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/boot.h:16:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61:15: fatal error: 'string.h' file not found
#include_next <string.h>
^~~~~~~~~~
In file included from /Cxx.h:1:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/replpane.jl:83:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Parse/Parser.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/AST/Availability.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/SourceLocation.h:18:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/LLVM.h:22:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/build/clang-6.0.1/include/llvm/Support/Casting.h:19:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/build/clang-6.0.1/include/llvm/Support/type_traits.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:200:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:80:44: error: base specifier must name a class
template <class _Tp> struct __tuple_like : false_type {};
^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:165:63: error: base specifier must name a class
template <class... _Tp> struct __tuple_like<tuple<_Tp...> > : true_type {};
^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:197:72: error: base specifier must name a class
template <class _T1, class _T2> struct __tuple_like<pair<_T1, _T2> > : true_type {};
^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:225:78: error: base specifier must name a class
template <class _Tp, size_t _Size> struct __tuple_like<array<_Tp, _Size> > : true_type {};
^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:299:71: error: base specifier must name a class
template <class... _Tp> struct __tuple_like<__tuple_types<_Tp...> > : true_type {};
^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:418:14: error: base specifier must name a class
: public false_type {};
~~~~~~~^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:433:14: error: base specifier must name a class
: public false_type {};
~~~~~~~^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:448:14: error: base specifier must name a class
: public false_type {};
~~~~~~~^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tuple:472:37: error: base specifier must name a class
struct __tuple_like_with_size_imp : false_type {};
^~~~~~~~~~
In file included from /Cxx.h:1:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/replpane.jl:83:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Parse/Parser.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/AST/Availability.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/SourceLocation.h:18:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/LLVM.h:22:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/build/clang-6.0.1/include/llvm/Support/Casting.h:19:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/build/clang-6.0.1/include/llvm/Support/type_traits.h:19:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:271:1: error: redefinition of 'swap' as different kind of symbol
swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4536:1: note: previous definition is here
swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value);
^
In file included from /Cxx.h:1:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/replpane.jl:83:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Parse/Parser.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/AST/Availability.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/SourceLocation.h:18:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/LLVM.h:22:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/build/clang-6.0.1/include/llvm/Support/Casting.h:19:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/build/clang-6.0.1/include/llvm/Support/type_traits.h:19:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:979:10: error: no member named 'memcpy' in namespace 'std'; did you mean 'memchr'?
std::memcpy(&__r, __p, sizeof(__r));
~~~~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:81:9: note: 'memchr' declared here
using ::memchr;
^
In file included from /Cxx.h:1:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/replpane.jl:83:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Parse/Parser.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/AST/Availability.h:17:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/SourceLocation.h:18:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/src/clang-6.0.1/include/clang/Basic/LLVM.h:22:
In file included from /Users/nathan/.julia/packages/Cxx/c7DTV/src/CxxREPL/../../deps/usr/build/clang-6.0.1/include/llvm/Support/Casting.h:20:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cassert:21:10: fatal error: 'assert.h' file not found
#include <assert.h>
^~~~~~~~~~
WARNING: Could not add directory /Applications/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk/usr/include to clang search path!
Could you give it a check that /Applications/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk/usr/include
is a valid path on your machine? If not, try searching usr/include
under /Applications/Xcode.app/Contents/Developer/
.
looks like Apple changed the path again:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
https://superuser.com/questions/1488979/macos-catalina-cannot-find-usr-include-file