-
Notifications
You must be signed in to change notification settings - Fork 724
Closed
Description
Describe the bug
Cabal HEAD fails to build any package with build-type: Custom when -j --semaphore is passed.
To Reproduce
Steps to reproduce the behavior:
$ cabal unpack ghc-paths-0.1.0.12 && cd ghc-paths-0.1.0.12 && cabal build -w ghc-9.8.0.20230809 -j --semaphore --allow-newer
Resolving dependencies...
Build profile: -w ghc-9.8.0.20230809 -O1
In order, the following will be built (use -v for more details):
- ghc-paths-0.1.0.12 (lib:ghc-paths) (first run)
Created semaphore called cabal_semaphore_3 with 8 slots.
[1 of 2] Compiling Main ( /private/tmp/ghc-paths-0.1.0.12/dist-newstyle/build/aarch64-osx/ghc-9.8.0.20230809/ghc-paths-0.1.0.12/setup/setup.hs, /private/tmp/ghc-paths-0.1.0.12/dist-newstyle/build/aarch64-osx/ghc-9.8.0.20230809/ghc-paths-0.1.0.12/setup/Main.o )
[2 of 2] Linking /private/tmp/ghc-paths-0.1.0.12/dist-newstyle/build/aarch64-osx/ghc-9.8.0.20230809/ghc-paths-0.1.0.12/setup/setup
Configuring ghc-paths-0.1.0.12...
unrecognized 'build' option `--semaphore=cabal_semaphore_3'
Error: cabal: Failed to build ghc-paths-0.1.0.12.
Expected behavior
The build should complete successfully. If I remove -j --semaphore, all works well.
System information
- Operating system: macOS
cabal: HEAD (41225bb)ghc: 9.8.0.20230809
Reactions are currently unavailable