Mouse
Mouse
> Have you checked GHC 9.10/Cabal-3.10? With Cabal-3.10.3.0, Stack-2.15.7, and GHC-9.10.1 the build seems to succeed. With Cabal-3.12.1.0 and GHC-9.6.5 the build fails (Cabal cannot find the `.c` file).
> But I've not tested that empiricially I have. The problem is with Cabal. :-(
Actually, things are even more interesting. Below is a proof that the regression is in Cabal 3.12.0.0 library, with which Stack-2.15.7 is built. - With Cabal-3.12.1.0, both `cabal build` and...
> @mouse07410, the official release of Stack 2.15.7 has a dependency on `Cabal=3.10.3.0`, but Stack does not use that dependency to build. For `Simple` it uses the boot package of...
> Thanks everyone for helping to isolate the problem to Cabal-3.12. Next step would be bisect it, perhaps. Good idea, but infeasible for me, as I can't build Cabal locally....
> I think this comment simply means that if `main-is` is a haskell file, it'll be looked up in `hs-sources-dir`(where haskell sources live). If it is a C file, it's...
> being contradictory in saying we should fix this but asserting that C mains should not be found in `hs-source-dirs`, not realising that this is what the OP literally intended...
Thank you for the patch, @alt-romes and @geekosaur ! Would you have any idea when is it likely that we'd see a released version of Cabal with this patch/PR incorporated?
@copilot here's how `asn1c` was invoked: ``` asn1c -pdu=F1AP-PDU -fgen-only-pdu-deps $(NO_INC_DEPS) -findirect-choice -fcompound-names -no-gen-JER F1AP-16.7.0.asn ```
@copilot the problem persists: ```text ./converter-example -ixer -oaper f1ap_reset_3.xer > f1ap_reset_3z.aper XER/CHOICE checked [ 1, step => 1 (constr_SEQUENCE_xer.c:132) XER/SEQUENCE: tcv = 5, ph=1 [initiatingMessage] (constr_SEQUENCE_xer.c:158) XER/SEQUENCE: tcv=5, ph=1, edx=1...