Skip to content

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

Description

@jwaldmann

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions