Opened 3 years ago

Last modified 15 months ago

#13355 new bug

gmp doesn't build correctly when cross-compiling with clang

Reported by: rwbarton Owned by:
Priority: normal Milestone:
Component: Build System (make) Version: 8.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The commit in #8497 added this to libraries/integer-gmp/gmp/

CLANG = $(findstring clang, $(shell $(CC_STAGE1) --version))

ifeq "$(CLANG)" "clang"

and does the build with $(CCX) rather than $(CC_STAGE1).

However, when cross-compiling, $(CC_STAGE1) could be a clang cross-compiler, but then it's certainly not right to use $(CLANG) = clang, as that is presumably not a cross-compiler.

I don't understand why the issue in #8497 arose in the first place, so it's unclear to me how to proceed here.

Change History (1)

comment:1 Changed 15 months ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.