Content-Length: 263613 | pFad | http://github.com/haskell/cabal/issues/10974

BA Cabal tries to use GHC to configure LD · Issue #10974 · haskell/cabal · GitHub
Skip to content

Cabal tries to use GHC to configure LD #10974

Open
@angerman

Description

@angerman

Describe the bug
Cabal uses a peculiar c program to check if LD supports and should use -x. To do this, it shells out to GHC to compiler the C file. This however requires that GHC will not bail out, yet cabal does not pass --package-db flags to this GHC invocation, and as such we can run into situations where GHC bails out, especially during GHC bootstrap phases where not all boot packages are available.

To Reproduce
Steps to reproduce the behavior:
Kill GHC's --package-db (including it's shipped one).

then try to build anything.

$ cabal build ...

Expected behavior
cabal doesn't bail out trying to configure ld, but ghc fails during the configuration step.

=> Cabal should use GCC not GHC to test C features.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://github.com/haskell/cabal/issues/10974

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy