[Hackage] #863: Can't pass extra arguments to c2hs

#863: Can't pass extra arguments to c2hs ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: c2hs, arguments Difficulty: unknown | Ghcversion: Platform: Mac OS | ---------------------------------+------------------------------------------ With cabal-install 0.10.2, I am no longer able to pass extra arguments to c2hs. When invoked as: {{{ cabal install -O --c2hs-option=--cppopts=-U__BLOCKS__ --c2hs-options="-- dump=trace" -v }}} c2hs is then called as {{{ /Users/localuser/.cabal/bin/c2hs --cpp=/usr/bin/gcc --cppopts=-E --cppopts=-D__GLASGOW_HASKELL__=700 --cppopts=-Ddarwin_BUILD_OS --cppopts=-Ddarwin_HOST_OS --cppopts=-Dx86_64_BUILD_ARCH --cppopts=-Dx86_64_HOST_ARCH --cppopts=-Icbits --cppopts=-DUSE_SSE2 --include=dist/build --cppopts=-I/Users/localuser/.cabal/lib/vector-0.7.0.1/ghc-7.0.4/include --cppopts=-I/Users/localuser/.cabal/lib/primitive-0.3.1/ghc-7.0.4/include --cppopts=-I/opt/local/include/ --cppopts=-I/usr/local/lib/ghc-7.0.4/base-4.3.1.0/include --cppopts=-I/usr/local/lib/ghc-7.0.4/include --cppopts=-I/usr/local/lib/ghc-7.0.4/include --output-dir=dist/build --output=Sound/Barnet/BandedLib.hs src/Sound/Barnet/BandedLib.chs --cppopts=-U__BLOCKS__ --dump=trace }}} The extra arguments are appended to the end of the call, however c2hs (at least c2hs-0.16.3) requires that the .chs binding file come after all options. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/863 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#863: Can't pass extra arguments to c2hs ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.10.1.0 Severity: normal | Keywords: c2hs, arguments Difficulty: unknown | Ghcversion: Platform: Mac OS | ---------------------------------+------------------------------------------ Comment(by duncan): Mm, interesting. Yes, we changed it so that user-supplied arguments go at the end, because that way they override whatever other params that cabal passes. We do also have internally a way to specify arguments that are prepended. We might need to expose this. Of course c2hs should also just be fixed so it's not so picky. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/863#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#863: Can't pass extra arguments to c2hs ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: c2hs, arguments Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Changes (by duncan): * platform: Mac OS => * component: cabal-install tool => Cabal library -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/863#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#863: Can't pass extra arguments to c2hs ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: c2hs, arguments Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by elga): * [http://www.releve-identite-operateur.fr/rio-simyo.html simyo] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/863#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#863: Can't pass extra arguments to c2hs ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: c2hs, arguments Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by edouard): D'autre part, la palette d'informations detaillees relatives a l'obtention du code rio Simyo et du numero rio Virgin Mobile sont egalement disponibles. [http://www.releve-identite-operateur.fr/rio-bouygues.html rio bouygues] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/863#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage