Skip to content
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

xml-conduit: cannot build with cabal --semaphore #191

Open
jwaldmann opened this issue Sep 20, 2023 · 2 comments
Open

xml-conduit: cannot build with cabal --semaphore #191

jwaldmann opened this issue Sep 20, 2023 · 2 comments

Comments

@jwaldmann
Copy link

I am trying to build with cabal-install-3.11 and ghc-9.8.1-alpha3, using the new semaphore feature haskell/cabal#9139 .

$ cabal install --lib xml-conduit -j16 --semaphore  -w /opt/ghc/ghc-9.8.0.20230822/bin/ghc
...

Resolving dependencies...
Build profile: -w ghc-9.8.0.20230822 -O2
In order, the following will be built (use -v for more details):
 - xml-conduit-1.9.1.3 (lib:xml-conduit) (requires build)
Created semaphore called cabal_semaphore_F with 16 slots.
Starting     xml-conduit-1.9.1.3 (all, legacy fallback)
Building     xml-conduit-1.9.1.3 (all, legacy fallback)

Failed to build xml-conduit-1.9.1.3.
Build log (
/home/waldmann/.cabal/logs/ghc-9.8.0.20230822/xml-conduit-1.9.1.3-4e93e5c7f0ca97eae9de76f50c95c553480aec272c4ee8c4dba14481e9ebf6a4.log
):
[1 of 2] Compiling Main             ( /tmp/cabal-install.-86944/dist-newstyle/tmp/src-86944/xml-conduit-1.9.1.3/dist/setup/setup.hs, /tmp/cabal-install.-86944/dist-newstyle/tmp/src-86944/xml-conduit-1.9.1.3/dist/setup/Main.o )
[2 of 2] Linking /tmp/cabal-install.-86944/dist-newstyle/tmp/src-86944/xml-conduit-1.9.1.3/dist/setup/setup
Configuring xml-conduit-1.9.1.3...
unrecognized 'build' option `--semaphore=cabal_semaphore_F'
Error: cabal: Failed to build xml-conduit-1.9.1.3. See the build log above for
details.

I could build lots of other packages, so I guess xml-conduit is doing something special that badly interacts with the new feature. Perhaps a non-simple https://github.com/snoyberg/xml/blob/master/xml-conduit/Setup.hs ?

@k0ral
Copy link
Collaborator

k0ral commented Sep 20, 2023

This issue suggests that a fix will be available in cabal-install-3.12, if I understand correctly.

@jwaldmann
Copy link
Author

jwaldmann commented Mar 15, 2024

yes, the error goes away with cabal-install of this version

commit b75671b0bb163a52a00df403eaf5d545121a27a3 (HEAD -> 3.12, origin/3.12)
...
Date:   Mon Mar 11 15:06:57 2024 +0000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants