Open evilbinary opened 2 years ago
I think you need to upgrade your gcc. This is my gcc version info:
Apple clang version 13.1.6 (clang-1316.0.21.2.5) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
@evilbinary 这里我补齐了依赖关系,https://github.com/HVML/PurC/blob/master/Source/Tools/aur/purc-git/PKGBUILD 可以看看有没有缺少的依赖的
[evil]$uname -a Darwin host 17.7.0 Darwin Kernel Version 17.7.0: Wed Feb 27 00:43:23 PST 2019; root:xnu-4570.71.35~1/RELEASE_X86_64 x86_64 [evil]$gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 9.0.0 (clang-900.0.38) Target: x86_64-apple-darwin17.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Found CUDA installation: /usr/local/cuda, version unknown
make -j8
[ 0%] Built target ScriptToRunSamples [ 0%] Built target VALGRIND_Suppressions [ 2%] Building CXX object Source/ThirdParty/gtest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o [ 3%] Built target TEST_Script [ 4%] Built target SampleHVMLFiles [ 35%] Built target WTF_CopyHeaders [ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/NumberOfCores.cpp.o [ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/OSRandomSource.cpp.o [ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/MonotonicTime.cpp.o [ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/OSLogPrintStream.cpp.o [ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ObjectIdentifier.cpp.o [ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/Lock.cpp.o [ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/MetaAllocator.cpp.o In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-all.cc:38: In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest.h:64: In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-death-test.h:41: In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h:39: In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-matchers.h:44: /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:253:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not defined, evaluates to 0 [-Werror,-Wundef]
if GTEST_INTERNAL_HAS_STRING_VIEW
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:581:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not defined, evaluates to 0 [-Werror,-Wundef]
if GTEST_INTERNAL_HAS_STRING_VIEW
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:701:5: error: 'GTEST_INTERNAL_HAS_ANY' is not defined, evaluates to 0 [-Werror,-Wundef]
if GTEST_INTERNAL_HAS_ANY
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:729:5: error: 'GTEST_INTERNAL_HAS_OPTIONAL' is not defined, evaluates to 0 [-Werror,-Wundef]
if GTEST_INTERNAL_HAS_OPTIONAL
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:749:5: error: 'GTEST_INTERNAL_HAS_VARIANT' is not defined, evaluates to 0 [-Werror,-Wundef]
if GTEST_INTERNAL_HAS_VARIANT
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/PageBlock.cpp.o In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-all.cc:38: In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest.h:64: In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-death-test.h:41: In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h:39: /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-matchers.h:555:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not defined, evaluates to 0 [-Werror,-Wundef]
if GTEST_INTERNAL_HAS_STRING_VIEW
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-matchers.h:801:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not defined, evaluates to 0 [-Werror,-Wundef]
if GTEST_INTERNAL_HAS_STRING_VIEW
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ParallelHelperPool.cpp.o [ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ParallelJobsGeneric.cpp.o [ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30: In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31: /Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:45:9: error: unknown type name 'Locker'; did you mean 'Lock'? Locker locker(m_lock); ^
~Lock /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here class Lock { ^ In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30: In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31: /Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:62:9: error: unknown type name 'Locker'; did you mean 'Lock'? Locker locker(m_lock); ^~Lock /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here class Lock { ^ In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30: In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31: /Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:101:9: error: unknown type name 'Locker'; did you mean 'Lock'? Locker locker(m_lock); ^~Lock /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here class Lock { ^ In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30: In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31: /Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:112:9: error: unknown type name 'Locker'; did you mean 'Lock'? Locker locker(m_lock); ^~Lock /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here class Lock { ^ In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30: In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31: /Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:119:9: error: unknown type name 'Locker'; did you mean 'Lock'? Locker locker(m_lock); ^~Lock /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here class Lock { ^ In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-all.cc:44: /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-matchers.cc:61:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not defined, evaluates to 0 [-Werror,-Wundef]if GTEST_INTERNAL_HAS_STRING_VIEW
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30: In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31: /Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:45:16: error: call to deleted constructor of 'PurCWTF::Lock' Locker locker(m_lock); ^
~~ /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:54:19: note: in instantiation of member function 'PurCWTF::Spectrum<PurCWTF::StackShot, double>::add' requested here m_profile.add(StackShot(m_numFrames + m_framesToSkip)); ^ /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:51:26: note: 'Lock' has been explicitly marked deleted here WTF_MAKE_NONCOPYABLE(Lock); ^ In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30: In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31: /Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:101:16: error: call to deleted constructor of 'PurCWTF::Lock' Locker locker(m_lock); ^~~ /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:64:35: note: in instantiation of member function 'PurCWTF::Spectrum<PurCWTF::StackShot, double>::buildList' requested here auto list = m_profile.buildList(); ^ /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:51:26: note: 'Lock' has been explicitly marked deleted here WTF_MAKE_NONCOPYABLE(Lock); ^ 7 errors generated. make[2]: [Source/WTF/wtf/CMakeFiles/WTF.dir/Lock.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... [ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/PrintStream.cpp.o 8 errors generated. make[2]: [Source/ThirdParty/gtest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1 make[1]: [Source/ThirdParty/gtest/googletest/CMakeFiles/gtest.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make[1]: [Source/WTF/wtf/CMakeFiles/WTF.dir/all] Error 2 make: *** [all] Error 2