-
Notifications
You must be signed in to change notification settings - Fork 704
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
new-* seem to ignore --with-hsc2hs
and --hsc2hs-options=
#4829
Comments
I would like to challenge the idea that |
/cc @dcoutts |
Let me elaborate a bit about some of the issues current issues with A related issue is if In the build-tool-happens-to-be-on- Consequently IMO cabal should ignore |
I would also argue that if we assume we build build-tools (e.g. As such I agree with your final conclusion with the exception, that I do want that escape hatch that allows me to specify a specific program to use, in which case cabal just assumes I know what I'm doing. |
I've just built a cabal from head, and both for the record
|
I'm experiencing this when attempting to cross-compile with head.hackage. Here are the full logs of the failing compilation. Here is my cabal.project:
Checking out memory and adding it to the packages list does not seem to solve the issue. @angerman thinks this might have something to do with the depth of the dependency graph (recursive descent is messing up the flags?). |
@jprider63 as outlined in #4939, this probably worked for foundation, but not for memory, because you have If this comes up with more / other packages, you'll likely need to do the same. I would even think you might have to basically unpack all (even transitive) dependencies for this to work reliable with cabal right now :( |
This was fixed with #5018 |
As such it picks up a random
hsc2hs
binary in PATH, and without--with-hsc2hs
being honored (as @hvr explains to me) by design, there is no way around this. Not respecting--hsc2hs-options=
, e.g.--hsc2hs-options=--cross-compile
, cross compiling with new-build seems impossible.The text was updated successfully, but these errors were encountered: