Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2018 02:24:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 227920] [PATCH] fix for Makefile.libcompat to use external cross-compiler
Message-ID:  <bug-227920-227-H4IPvnMQY7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227920-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227920-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227920

--- Comment #9 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Bryan Drewery from comment #1)

For handling WITH_LIB32=3D in a cross compile (such as
amd64 -> powerpc64 as the overall context), clang has
to be told an appropriate -target or it tries to use
amd64's assembler on the powerpc .S assembler files.
This leads to build failures for rejected notation.

-mcpu=3Dpowerpc -m32 without the -target is not sufficient.
(And it what currently happens on the command line.)
With multiple ABI's around, -target is the only
option that specifies that much context as far as
I know.

clang does take a powerpc64 -target and a -m32 and
end up with a powerpc target according to my
experiments. But I've not checked that the 32-bit
ABI implicitly picked is appropriate to FreeBSD's
ABI choices, which are rather distinct for 32-bit
vs. 64-bit for the powerpc families.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227920-227-H4IPvnMQY7>