Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llvm] feature compiler-rt failed in post-build validation on windows #14900

Closed
PhoebeHui opened this issue Dec 2, 2020 · 3 comments · Fixed by #16232
Closed

[llvm] feature compiler-rt failed in post-build validation on windows #14900

PhoebeHui opened this issue Dec 2, 2020 · 3 comments · Fixed by #16232
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@PhoebeHui
Copy link
Contributor

PhoebeHui commented Dec 2, 2020

Repro steps:

./vcpkg install llvm[compiler-rt]:x64-windows

Two Issues need to correct:

  1. The dll located in libs folder
  2. The crt linkage is wrong. should be debug/dynamic, releas /dynamic, currently, all are release/static.

Failures:

-- Performing post-build validation

The following dlls were found in /lib or /debug/lib. Please move them to /bin or /debug/bin, respectively.

    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.asan_dynamic-x86_64.dll

The following dlls were found in /lib or /debug/lib. Please move them to /bin or /debug/bin, respectively.

    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.asan_dynamic-x86_64d.dll

Expected Debug,Dynamic crt linkage, but the following libs had invalid crt linkage:

    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.asan-preinit-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.asan-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.asan_cxx-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.asan_dll_thunk-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.builtins-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.fuzzer-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.fuzzer_no_main-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.profile-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.stats-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.stats_client-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.ubsan_standalone-x86_64d.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/debug/lib/clang/11.0.0/lib/windows/clang_rt.ubsan_standalone_cxx-x86_64d.lib: Release,Static

To inspect the lib files, use:
    dumpbin.exe /directives mylibfile.lib
Expected Release,Dynamic crt linkage, but the following libs had invalid crt linkage:

    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.asan-preinit-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.asan-x86_64.lib: Release,Static    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.asan_cxx-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.asan_dll_thunk-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.builtins-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.fuzzer-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.fuzzer_no_main-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.profile-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.stats-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.stats_client-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.ubsan_standalone-x86_64.lib: Release,Static
    E:/vcpkg/13998/vcpkg/packages/llvm_x64-windows/lib/clang/11.0.0/lib/windows/clang_rt.ubsan_standalone_cxx-x86_64.lib: Release,Static

To inspect the lib files, use:
    dumpbin.exe /directives mylibfile.lib
Found 4 error(s). Please correct the portfile:
    E:\vcpkg\13998\vcpkg\ports\llvm\portfile.cmake
-- Performing post-build validation done
Error: Building package llvm:x64-windows failed with: POST_BUILD_CHECKS_FAILED

@PhoebeHui PhoebeHui added the category:port-bug The issue is with a library, which is something the port should already support label Dec 2, 2020
@PhoebeHui
Copy link
Contributor Author

cc @yurybura

@PhoebeHui PhoebeHui self-assigned this Dec 2, 2020
@yurybura
Copy link
Contributor

yurybura commented Dec 2, 2020

@PhoebeHui Could you add install command args to reproduce this issue?

@PhoebeHui
Copy link
Contributor Author

Updated, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants