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
Cabal doesn't seem to call the correct hsc2hs when cross-compiling #5760
Comments
is the executable at |
Yes, that is correct.
|
Incidentally, Cabal seems to work just fine when cross-compiling and using |
As a temporary workaround, using |
Yeah, so the problem is that we don't have a proper separation of build-host vs target-host artifacts in the build-planning; iirc there's been some prior discussion about this problem somewhere buried in the issue tracker. The obvious model would be that stuff being executed at compile time (build-tools, pre-processors, or even TH -- this is the most tricky one) needs to be runnable on the build-host w/o requiring anything to be run on the target-host (cause in most scenarios you're crosscompiling because you don't have the target-host available or for some other reason it's unreasonable to build directly on it) |
When trying to build
cabal-install
with the following:I end up with
I believe this may be due to the fact that
hackage-security
actually specifies a dependency onhsc2hs
.zlib
,digest
, andnetwork
all build fine and their.cabal
files don't seem to mention anybuild-tool-depends
anywhere.Here is the call stack:
The text was updated successfully, but these errors were encountered: