Skip to content

GitLab

  • Menu
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 4,864
    • Issues 4,864
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 452
    • Merge requests 452
  • 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 Compiler
  • GHCGHC
  • Issues
  • #21482
Closed
Open
Created May 03, 2022 by sunshine-cdl@sunshine-cdl

Can not find true complier when Cross-Complie GHC

I am trying to complie a cross complie ghc on ubuntu for another platform. But when I run the ./configure, GHC can only find my local gcc\binutils.

./configure shown me like this:

image

However, my real version of gcc is this:

image

I believe that I use a correct configure:

./configure --target=${CROSS_TARGET} CC=${CROSS_TARGET}-gcc LD=${CROSS_TARGET}-ld NM=${CROSS_TARGET}-nm --with-objdump=${CROSS_TARGET}-objdump

So how it happened? And how to solve it?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking