-
Notifications
You must be signed in to change notification settings - Fork 848
Can't load .so/.DLL error when building in stack 2 #4969
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
Comments
Hi @drathier, thanks for the report. Would you try building without It is possible that a file has been corrupted at some point, in which case a (Edit: accidentally hit 'comment' before I was done…) |
Forgot to add that I've nuked both .stack-work and ~/.stack without any improvement. I'll try building verbosely with/without --fast and report back. |
I've seen issues before where the external libraries of dependencies are installed in an unexpected place. I can't find the issue right now, though. If you can build the dependencies themselves, but not the package using the dependencies, you're probably hitting the same issue (which was resolved by changing the dependency, here the |
That sounds like it's the same issue. I can build the dependencies by themselves but not as deps. Where would you expect the libraries to be installed? |
Found it! #4141 Take a look (there'a a solution near the end); it might help. It seemed to require a fix to the dependency. |
I just ran into this as well. We have a rust dependency coming in over the C FFI, and on Stack 1.9 it builds just fine but on Stack 2 it claims it can't find the .so/.DLL for the rust dep. I can't figure out anything besides that, but it very clearly builds correctly on Stack 1.9, and breaks on Stack 2 for reasons that are not obvious. My first guess is that whatever is doing the build of the underlying dependency is not then installing it to a place that can be found by stack 2. When it later tries to link against the dependency it then proceeds to fail. |
Possibly related to #3559 .
Got a hard-to-debug error message from stack 2. The project builds fine in 1.9.3 but fails on 2.1.3. The
comp-crypto
package contains crypto libs, which are found by theglobalstate-types
pkg in 1.9.3 but not in 2.1.3.Dependency chain: lang -> globalstate-types -> comp-crypto.
I expected this to work out of the box, but it doesn't. Secondly, I expected an error message I could understand.
build-failure 2.1.3
stack-2.1.3-osx-x86_64 install --fast
build-success 1.9.3
stack-1.9.3-osx-x86_64 install --fast
dependency: comp-crypto
stack.yaml of
comp-crypto-0.1
pkgcabal file for
comp-crypto-0.1
dependency: globalstate-mockup (globalstate-types)
stack.yaml
package.yaml
parent project: lang
stack.yaml
The text was updated successfully, but these errors were encountered: