You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Whenever I try to build project with c2hs in build-tools the build process got cutoff for some reason
Resolving dependencies...
Build profile: -w ghc-8.8.3 -O2
In order, the following will be built (use -v for more details):
- c2hs-0.28.6 (exe:c2hs) (requires build)
- tdlib-0.1.0 (lib:tdlib, test:tdlib-test) (configuration changed)
Starting c2hs-0.28.6 (exe:c2hs)
Building c2hs-0.28.6 (exe:c2hs)
Haddock c2hs-0.28.6 (exe:c2hs)
Warning: Failed to build documentation for exe:c2hs from c2hs-0.28.6 (which is
required by tdlib-0.1.0).
<End>
cabal exited without failures but the project never gets built. Also cabal seems to be compiling c2hs over and over again instead of using the cached c2hs.
To Reproduce
add c2hs to build-tools
cabal-build
$ cabal v2-build ...
Please use version-prefixed commands (e.g. v2-build or v1-build) to avoid ambiguity.
I think the problem may be that build-tools is deprecated in favour of the more flexible build-tool-depends. I've got a working example here.
Edit: I would have thought that build-depends might still work given that your cabal-version is set so low... But anyway, if you set it to something more recent (e.g. 3.0), then cabal will warn you not to use build-depends.
Also, FWIW, you probably don't need to mention c2hs in your test suite, unless there are additional C bindings used exclusively by the test suite and not the library.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Whenever I try to build project with c2hs in build-tools the build process got cutoff for some reason
cabal exited without failures but the project never gets built. Also cabal seems to be compiling c2hs over and over again instead of using the cached c2hs.
To Reproduce
cabal-build
Please use version-prefixed commands (e.g.
v2-build
orv1-build
) to avoid ambiguity.Expected behavior
The project
System information
cabal
,ghc
versionscabal 3.2.0.0
ghc 8.8.3
Additional context
the cabal file
The text was updated successfully, but these errors were encountered: