Opened 2 years ago

Last modified 2 years ago

#14297 new bug

make bindist packages the wrong binaries for cross compilers

Reported by: angerman Owned by: angerman
Priority: high Milestone: 8.4.1
Component: Package system Version: 8.2.1
Keywords: Cc: bgamari
Operating System: Unknown/Multiple Architecture: Other
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

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.

Change History (1)

comment:1 Changed 2 years ago by angerman

Owner: set to angerman
Note: See TracTickets for help on using tickets.