-
Notifications
You must be signed in to change notification settings - Fork 559
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
Win32 SuiteSparse build is subtly borked #7
Comments
Can you give more details? What do you mean by three copies, and why would it load two? |
Closed by df2e078 |
From Slack, it turns out this is not fixed yet: while the SONAME Is now correct, it's still installing the other 2 incorrect copies. |
Is this still an issue? |
I don’t think it was ever fixed |
What needs to be done? Which 2 of the 3 need to be deleted? |
I believe we do a
@giordano Is there an easy way to fix this or should we add some lines to SuiteSparse to delete the unnecessary dlls? |
I think one would need to manually remove the files. This (untested) might work: if [[ "${target}" == *-mingw* ]]; then
rm ${libdir}/lib*.*.${dlext}
rm ${libdir}/lib*.*.*.${dlext}
fi (but this removes all the libraries with the soversions, not sure this is desired) However, I'm also surprised that two libraries are loaded at a time. Does that happen with BinaryProvider or the Artifacts sytem? |
Do the soversions matter on windows? |
No.
( cd $(INSTALL_LIB) ; ln -sf $(SO_TARGET) $(SO_PLAIN) )
( cd $(INSTALL_LIB) ; ln -sf $(SO_TARGET) $(SO_MAIN) )
ifeq ($(UNAME),Windows)
# Cygwin Make on Windows
AR_TARGET = $(LIBRARY).lib
SO_TARGET = $(LIBRARY).dll
# The following two links are just garbage copies of the real target
# they aren't actually supported by this OS
SO_MAIN = $(LIBRARY).$(SO_VERSION).dll
SO_PLAIN = $(LIBRARY).$(VERSION).dll
SO_OPTS += -shared
SO_INSTALL_NAME = echo |
* Delete extra libraries on Windows Fix #7 * [SuiteSparse] Use new types for sources and dependencies * Rename directory SuiteSparse@5 -> SuiteSparse install_license for suitesparse Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
It's installing 3 copies of every dll, and loading 2 of each at runtime.
The text was updated successfully, but these errors were encountered: