Don Hinton via llvm-dev
2019-May-08 19:33 UTC
[llvm-dev] How can I fix/exclude some failing tests when building with BUILD_SHARED_LIBS=ON
The test in question is clang-check-mac-libcxx-fixed-compilation-db.cpp which copies clang-check to a local directory to make sure clang can find libcxx via rpath. However, when built with shared libs, the copy of clang-check can't find any of it's libraries, so I'd like to either turn if off when BUILD_SHARED_LIBS=ON, or find a way to fix it. Thought about trying to use DYLD_LIBRARY_PATH, but don't think that's the correct approach. There are also a set of clang module tests that fail, as well as a few tools that build local without using llvm_add_library that I plan to fix, but I think this one is special due to the copy. thanks in advance... don -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190508/a1de756b/attachment.html>
Don Hinton via llvm-dev
2019-May-08 19:36 UTC
[llvm-dev] How can I fix/exclude some failing tests when building with BUILD_SHARED_LIBS=ON
Tests just finished, and looks like most are clang, so adding cfe-dev. Btw, here's the full set of failing tests: Failing Tests (8): Clang :: CXX/modules-ts/basic/basic.link/p2/module.cpp Clang :: Modules/ExtDebugInfo.cpp Clang :: Modules/using-directive-redecl.cpp Clang :: Modules/using-directive.cpp Clang :: PCH/chain-late-anonymous-namespace.cpp Clang :: PCH/cxx-namespaces.cpp Clang :: PCH/namespaces.cpp Clang :: Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp ******************** Unresolved Tests (1): LLVM :: Transforms/Reassociate/reassociate-catchswitch.ll Expected Passes : 50790 Expected Failures : 205 Unsupported Tests : 841 Unresolved Tests : 1 Unexpected Failures: 8 On Wed, May 8, 2019 at 12:33 PM Don Hinton <hintonda at gmail.com> wrote:> The test in question is clang-check-mac-libcxx-fixed-compilation-db.cpp > which copies clang-check to a local directory to make sure clang can find > libcxx via rpath. > > However, when built with shared libs, the copy of clang-check can't find > any of it's libraries, so I'd like to either turn if off when > BUILD_SHARED_LIBS=ON, or find a way to fix it. Thought about trying to use > DYLD_LIBRARY_PATH, but don't think that's the correct approach. > > There are also a set of clang module tests that fail, as well as a few > tools that build local without using llvm_add_library that I plan to fix, > but I think this one is special due to the copy. > > thanks in advance... > don >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190508/e2cf2b0e/attachment-0001.html>
Don Hinton via llvm-dev
2019-May-08 21:55 UTC
[llvm-dev] How can I fix/exclude some failing tests when building with BUILD_SHARED_LIBS=ON
Still no idea why the module test fail, but here's my attempt to fix Clang :: Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp: https://reviews.llvm.org/D61697 On Wed, May 8, 2019 at 12:36 PM Don Hinton <hintonda at gmail.com> wrote:> Tests just finished, and looks like most are clang, so adding cfe-dev. > > Btw, here's the full set of failing tests: > > Failing Tests (8): > Clang :: CXX/modules-ts/basic/basic.link/p2/module.cpp > Clang :: Modules/ExtDebugInfo.cpp > Clang :: Modules/using-directive-redecl.cpp > Clang :: Modules/using-directive.cpp > Clang :: PCH/chain-late-anonymous-namespace.cpp > Clang :: PCH/cxx-namespaces.cpp > Clang :: PCH/namespaces.cpp > Clang :: Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp > > ******************** > Unresolved Tests (1): > LLVM :: Transforms/Reassociate/reassociate-catchswitch.ll > > Expected Passes : 50790 > Expected Failures : 205 > Unsupported Tests : 841 > Unresolved Tests : 1 > Unexpected Failures: 8 > > On Wed, May 8, 2019 at 12:33 PM Don Hinton <hintonda at gmail.com> wrote: > >> The test in question is clang-check-mac-libcxx-fixed-compilation-db.cpp >> which copies clang-check to a local directory to make sure clang can find >> libcxx via rpath. >> >> However, when built with shared libs, the copy of clang-check can't find >> any of it's libraries, so I'd like to either turn if off when >> BUILD_SHARED_LIBS=ON, or find a way to fix it. Thought about trying to use >> DYLD_LIBRARY_PATH, but don't think that's the correct approach. >> >> There are also a set of clang module tests that fail, as well as a few >> tools that build local without using llvm_add_library that I plan to fix, >> but I think this one is special due to the copy. >> >> thanks in advance... >> don >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190508/f4b10e27/attachment.html>
Seemingly Similar Threads
- Problem with the way BUILD_SHARED_LIBS=ON handled in llvm 3.8
- Problem with the way BUILD_SHARED_LIBS=ON handled in llvm 3.8
- Problem with the way BUILD_SHARED_LIBS=ON handled in llvm 3.8
- Problem with the way BUILD_SHARED_LIBS=ON handled in llvm 3.8
- [cfe-dev] Proposal: Enable BUILD_SHARED_LIBS=ON by default for debug build.