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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy