Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2016 03:36:16 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        David Chisnall <theraven@FreeBSD.org>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: base/binutils (from ports/head -r424540) requires "gcc" to be a valid command on the host environment
Message-ID:  <D00E6B61-0AC2-48E2-84C0-5C3454A473D7@dsl-only.net>
In-Reply-To: <D386F64A-0C8D-41B8-81E0-524F92F87DEB@FreeBSD.org>
References:  <F62BDDB6-B344-47E2-855A-19EE6E9B9C57@dsl-only.net> <D386F64A-0C8D-41B8-81E0-524F92F87DEB@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-Nov-9, at 1:56 AM, David Chisnall <theraven at FreeBSD.org> =
wrote:

> On 9 Nov 2016, at 03:33, Mark Millard <markmi at dsl-only.net> wrote:
>>=20
>> base/binutils for my attempted powerpc64 cross build target [from =
amd64 head -r308247M] failed for lack of a "gcc=E2=80=9D:
>=20
> OS X (sorry, macOS) works around this by installing gcc as a symlink =
to clang.  I wonder if that=E2=80=99s something that we should start =
doing.
>=20
> David

clang and clang++ 3.8.0 do not work correctly for powerpc64 or powerpc =
for
FreeBSD: various forms of bad code generation and ABI violations. No =
version
works yet as far as I know. (There has been some recent work on this in =
llvm
but some of it has not been put in the FreeBSD clang/clang++ 3.9.0 =
experiment
so far.)

(I sometimes experiment with clang/clang++ on powerpc and analyze the =
problems
and submit reports of the ones that I find.)

powerpc64 and powerpc also do not have prebuilt packages, not even just =
one
for pkg itself.

This makes getting both a C/C++ compiler set and pkg in place a bit of a =
mess
even for a cross-built bootstrap:

A) pkg on the target needs to be built by a C/C++ compiler toolchain.

B) /usr/ports/base/gcc usage for getting a compiler toolchain on the =
target
   works by putting a .txz file in place for use via pkg add <THAT-FILE> =
.

=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D00E6B61-0AC2-48E2-84C0-5C3454A473D7>