mcbarton wrote: @anutosh491 I tried to build the Emscripten tests for this PR and got the following error
``` wasm-ld: error: duplicate symbol: testing::AssertionResult::AssertionResult(testing::AssertionResult const&) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::AssertionResult::swap(testing::AssertionResult&) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::AssertionResult::operator!() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::AssertionSuccess() >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::AssertionFailure() >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::AssertionFailure(testing::Message const&) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::StringFromGTestEnv(char const*, char const*) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::BoolFromGTestEnv(char const*, bool) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::GetCurrentDir() >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::RemoveExtension(char const*) const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::String::EndsWithCaseInsensitive(std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char>> const&, std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char>> const&) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::FindLastPathSeparator() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::CalculateRootLength() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::RemoveDirectoryName() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::RemoveFileName() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::MakeFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, int, char const*) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&, testing::internal::FilePath const&) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::RemoveTrailingPathSeparator() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::FileOrDirectoryExists() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: duplicate symbol: testing::internal::FilePath::DirectoryExists() const >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) >>> defined in ../../../../lib/libllvm_gtest.a(gtest-all.cc.o) wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) em++: error: '/Users/m.c.barton/exception-handling/emsdk/upstream/bin/wasm-ld @/var/folders/yf/3cmlr4w168j52rzxjqbp3yx00000gp/T/emscripten_5p6zcypb.rsp.utf-8' failed (returned 1) make[3]: *** [tools/clang/unittests/Interpreter/ClangReplInterpreterTests.html] Error 1 make[2]: *** [tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/all] Error 2 make[1]: *** [tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/rule] Error 2 make: *** [ClangReplInterpreterTests] Error 2 ``` Any suggestions on how to fix? https://github.com/llvm/llvm-project/pull/175910 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
