Skip to content

Link against libstdc++ from CSL on windows #58151

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zentrik
Copy link
Member

@Zentrik Zentrik commented Apr 17, 2025

Fix #57021. Split out from #58142, not sure if there is a better way to fix this.

@Zentrik Zentrik added building Build system, or building Julia or its dependencies system:windows Affects only Windows labels Apr 17, 2025
Fix #57021. Split out from #58142, not sure if there is a better way to fix this.
@Zentrik Zentrik force-pushed the Zentril/windows_libstdc_csl branch from 72b8c8b to 4849489 Compare April 17, 2025 10:02
@@ -120,6 +120,7 @@ ifeq ($(OS),WINNT)
GCC_VERSION = 14
install-csl:
mkdir -p $(build_private_libdir)/
cp -a $(build_shlibdir)/$(call versioned_libname,libstdc++,6) $(build_shlibdir)/libstdc++.$(SHLIB_EXT)
Copy link
Contributor

@giordano giordano Apr 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be uninstalled below? Also, how come we weren't installing libstdc++ already?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me check. We install libstdc++-6.dll, but when building libjulia-internal we link against static libraries from llvm and the libstdc++.dll, which ends up coming from the system. Due to the system libstdc++ not having some of the symbols libstdc++-6.dll has, the build fails. Explained in more detail at #57021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies system:windows Affects only Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

We seem to link against wrong libstdc++ when building on mingw
3 participants