Comments (3)
Thanks @nodew.
So, the error you are getting is expected (does not mean that it is not annoying): A few dependencies (hashable
, cryptonite
) of haskell-realworld-example
pull in integer-gmp
, which is not supported by this project. This is by design, as libgmp
has licensing restrictions when linked statically.
However, this is not a big issue:
- Before GHC 9, GHC supports two integer implementations
integer-gmp
andinteger-simple
. Usually, libraries which depend oninteger-gmp
has flags to make them depend oninteger-simple
instead. eg: hashable.cabal - After GHC 9, GHC comes with a single library called
ghc-bignum
, which has two implementations (gmp-backend
andnative-backend
). So the libraries can depend onghc-bignum
unconditionally and it should just work.
So, there are two solutions that can get you past the issue:
- Keep using 8.x, and figure out how to get your dependencies use
integer-simple
instead. It should be an exercise of figuring out the correct flags to pass (oncabal.project
orstack.yml
). - Use a GHC version newer than 9.0. Then, the dependencies would use
ghc-bignum
which should work without any headaches.
Unfortunately, even after the above changes haskell-realworld-example
does not build, as it depends on libpq
which has problems with static linking. We already have an issue for that: #15
Let me know if you can get past the gmp
issue (or happy with the explanation), then I suggest we close this issue. If you also get the libpq
error, feel free to pitch in to #15; or create another issue if you get another error.
Thanks again for the issue.
from ghc-musl.
That is interesting. The images usually use integer-simple
, so I think it might not be possible to build things that depend on integer-gmp
specifically.
Can you share your code, and if that's not public, the build-dependencies
field of your .cabal
file?
from ghc-musl.
That is interesting. The images usually use
integer-simple
, so I think it might not be possible to build things that depend oninteger-gmp
specifically.Can you share your code, and if that's not public, the
build-dependencies
field of your.cabal
file?
@utdemir Sure, it's an open source project haskell-realworld-example
from ghc-musl.
Related Issues (20)
- Building with stack fails with "Executable named groupadd not found on path" error HOT 2
- Add sdl2 and sdl2-ttf to the docker images? HOT 48
- build postgrest failed with error message setup: The program 'pg_config' is required but it could not be found HOT 9
- Update image to GHC 9.0.2 HOT 8
- Linker problem building a `monomer` app HOT 2
- Alpine package upgrades HOT 12
- Earthfile suggestions HOT 5
- Would you be so kind as to include stack? HOT 6
- Build a statically linked Haskell library with ghc-musl HOT 5
- Build wai-app-static failed with Segfaults HOT 3
- Docker image with GHC 9.2.5 HOT 2
- Affected by binutils bug 23856 HOT 1
- Cannot build 'summoner-tui' HOT 11
- Error encountered while installing GHC HOT 2
- Segfault during configuring HOT 8
- The `--ghc-options` for `stack build` were not recognized correctly. HOT 1
- SSL certificates HOT 19
- adding pcre HOT 2
- add bz2 & openssl HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghc-musl.