Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 5.5k
    • Issues 5.5k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 629
    • Merge requests 629
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • 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
  • #22805
Closed
Open
Issue created Jan 19, 2023 by Rodrigo Mesquita@alt-romes🌱Developer

Ar failure when cross-compiling host:aarch64-apple-darwin to target:x86_64-w64-mingw32

When cross compiling from host:aarch64-apple-darwin to target:x86_64-w64-mingw32 the compilation fails at stage0 with

ar: creating archive _build/stageBoot/linters/linters-common/build/libHSlinters-common-0.1.0.0.a
ar: @/var/folders/tv/35hlch6s3y15hfvndc71l6d40000gn/T/extra-file-94844998824-68860-132: No such file or directory

I've narrowed down the issue with the following clues:

  • The file does indeed exist
  • My host ar tool doesn't support the @ syntax and fails with No such file or directory because it's looking for a file that starts with @ (instead of interpreting the @ as special syntax)
  • The target ar tool does support @, but it doesn't come into play here because the error is in stage0, which uses the host ar.
  • I can successfully compile ghc using the same host and target with the ar that does not support @

The conclusion thus far is that we're not taking into consideration that when host /= target the ar might not support the same flags

CC: @bgamari

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