Page MenuHomeFreeBSD

devel/powerpc64-gcc: Properly set CONFIGURE_TARGET for when amd64 is either the host or target.
ClosedPublic

Authored by jhb on Jul 11 2018, 4:31 PM.
Tags
None
Referenced Files
F81586009: D16227.id45815.diff
Thu, Apr 18, 1:05 PM
Unknown Object (File)
Tue, Apr 9, 11:38 PM
Unknown Object (File)
Feb 4 2024, 3:38 AM
Unknown Object (File)
Jan 25 2024, 4:12 AM
Unknown Object (File)
Jan 10 2024, 9:19 AM
Unknown Object (File)
Dec 28 2023, 12:09 AM
Unknown Object (File)
Dec 20 2023, 4:34 AM
Unknown Object (File)
Oct 31 2023, 10:54 PM
Subscribers

Details

Summary

CONFIGURE_TARGET is used for --build which is the host performing the
build. TARGETARCH is used in powerpc64-gcc/Makefile as the target
architecture of the binaries generated by the compiler being built.
When building a non-amd64 target compiler on an amd64 host,
CONFIGURE_TARGET was set to amd64-unknown-freebsd which confused GCC
(it breaks compilation of an i386 target compiler on an amd64 host).
It would also result in setting CONFIGURE_TARGET improperly when
building an amd64 compiler on a non-amd64 host. Fix by remapping
amd64 to x86-64 if the ARCH is amd64 rather than the TARGETARCH.

Test Plan
  • build devel/i386-gcc. It fails because it thinks i386-driver.o should exist, but gcc's config.host doesn't add it because it doesn't recognize an amd64-* host.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 17986
Build 17740: arc lint + arc unit

Event Timeline

linimon retitled this revision from Properly set CONFIGURE_TARGET for when amd64 is either the host or target. to devel/powerpc64-gcc: Properly set CONFIGURE_TARGET for when amd64 is either the host or target..Jul 18 2018, 12:48 PM
This revision is now accepted and ready to land.Jul 24 2018, 4:28 PM
This revision was automatically updated to reflect the committed changes.