xml-conduit: cannot build with `cabal --semaphore`
jwaldmann opened this issue · 2 comments
jwaldmann commented
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 commented
This issue suggests that a fix will be available in cabal-install-3.12
, if I understand correctly.
jwaldmann commented
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