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

[clang] clang12 fails to launch on ucrt - cannot open libstdc++-6.dll #8658

Closed
treeofsteam opened this issue May 13, 2021 · 8 comments
Closed

Comments

@treeofsteam
Copy link

$ clang -v
C:/msys/ucrt64/bin/clang.exe: error while loading shared libraries: libstdc++-6.dll: cannot open shared object file: No such file or directory

Upgrading clang, llvm, lld to 12.0.0-3 from 11.0.0-12 in the ucrt64 repo causes clang and lld to not launch.
The commands below are run in the shell located at C:/msys/ucrt64.exe

Command log and installed packages:
https://gist.github.com/treeofsteam/35e6316aef1056394b6b8955a8af9aa1

@lazka
Copy link
Member

lazka commented May 13, 2021

hm, works fine here.

@lazka
Copy link
Member

lazka commented May 13, 2021

Can you try pacman -S mingw-w64-ucrt-x86_64-libxml2 ?

@lazka
Copy link
Member

lazka commented May 13, 2021

@Astrum-polaris the llvm package needs to depend on libxml2 I think:

$ ntldd /ucrt64/bin/libLLVM.dll
        ADVAPI32.dll => C:\WINDOWS\SYSTEM32\ADVAPI32.dll (0x0000020873c00000)
        KERNEL32.dll => C:\WINDOWS\SYSTEM32\KERNEL32.dll (0x0000020873cb0000)
        ole32.dll => C:\WINDOWS\SYSTEM32\ole32.dll (0x0000020873c00000)
        libwinpthread-1.dll => C:\msys64\ucrt64\bin\libwinpthread-1.dll (0x000002086da70000)
        SHELL32.dll => C:\WINDOWS\SYSTEM32\SHELL32.dll (0x0000020874b00000)
        libgcc_s_seh-1.dll => C:\msys64\ucrt64\bin\libgcc_s_seh-1.dll (0x000002086da70000)
        libstdc++-6.dll => C:\msys64\ucrt64\bin\libstdc++-6.dll (0x0000020873c00000)
        libffi-7.dll => C:\msys64\ucrt64\bin\libffi-7.dll (0x000002086da70000)
        libxml2-2.dll => C:\msys64\ucrt64\bin\libxml2-2.dll (0x0000020873c00000)
        zlib1.dll => C:\msys64\ucrt64\bin\zlib1.dll (0x000002086da70000)

@treeofsteam
Copy link
Author

Wow I wasn't expecting a reply that fast, thanks.
You're right about installing libxml2, just installing that fixes the problem for me and my project builds fine now. I'm not sure if I should close this or not, let me know. Thanks again.

@lazka
Copy link
Member

lazka commented May 13, 2021

Thanks for confirming. We'll close this once it is fixed.

@Biswa96
Copy link
Member

Biswa96 commented May 17, 2021

It seems rustfmt.exe also needs libxml2.

michaelsbradleyjr added a commit to status-im/nim-status that referenced this issue May 17, 2021
@mati865
Copy link
Collaborator

mati865 commented May 17, 2021

This is fixed already, https://packages.msys2.org/package/mingw-w64-x86_64-llvm now depends on libxml2.

@mati865
Copy link
Collaborator

mati865 commented Jun 10, 2021

Can somebody close this issue?

michaelsbradleyjr added a commit to status-im/nim-status that referenced this issue Jun 24, 2021
michaelsbradleyjr added a commit to status-im/nim-status that referenced this issue Jun 25, 2021
michaelsbradleyjr added a commit to status-im/nim-status that referenced this issue Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants