
#14297: make bindist packages the wrong binaries for cross compilers -------------------------------------+------------------------------------- Reporter: angerman | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.4.1 Component: Package | Version: 8.2.1 system | Keywords: | Operating System: Unknown/Multiple Architecture: Other | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- When building binary distributions via `make binary-dist`, the resulting binaries in the package end up being compiled for the target instead of the host when cross compiling. E.g. building a cross compiler for iOS on macOS yields: {{{ ./inplace/bin/ghc-cabal: Mach-O 64-bit executable x86_64 ./utils/ghc-cabal/dist/build/tmp/ghc-cabal: Mach-O 64-bit executable x86_64 ./utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: Mach-O 64-bit executable arm64 ./inplace/lib/bin/hsc2hs: Mach-O 64-bit executable x86_64 ./utils/hsc2hs/dist/build/tmp/hsc2hs: Mach-O 64-bit executable x86_64 ./utils/hsc2hs/dist-install/build/tmp/hsc2hs: Mach-O 64-bit executable arm64 }}} to just name `ghc-cabal` and `hsc2hs`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14297 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler