Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,410
    • Issues 5,410
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 604
    • Merge requests 604
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #22982
Closed
Open
Issue created Feb 14, 2023 by Carter Schonwald@carterDeveloper

ghc bindist configure doesn't work on 9.2.6 Arm64 mac with any nonstandard config. Or: configure ignores CC and always picks gcc, no mwatter what

Summary

i'd expect > ./configure --prefix=/Users/carter/.ghc_install/ghc_9.2.6_hq --disable-ld-override CC=(which gcc-12) CPP=(which gcc-12) to work, since i have Gcc-12 install on my mac. instead I get configure failures, or to make things even more insane

> ./configure --prefix=/Users/carter/.ghc_install/ghc_9.2.6_hq --disable-ld-override CC=(which gcc-12)

doesn't fail, but when I look at the settings file which should be generated from this, i see ,("C compiler command", "gcc") rather than the expected /opt/homebrew/bin/gcc-12

Configure step of a bindist must use CC, CPP, CXX etc, and must generate the settings file. It seems that it doesn't.

I believe this issue likely also is the culprit for problems i've had installing ghc 9.4.x versions too

heres links to example configure runs https://www.irccloud.com/pastebin/WhqTTd5p/

and associated config.log https://www.irccloud.com/pastebin/nHchjYDl/

do note that my tiny shell examples are using fish shell, but as you can see from the pastes, the substitutions work correctly there

  • Operating System: OSX, ARM, but should be a problem on all other platforms. I just am more likely than most to swap my C compilers around
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking