From owner-freebsd-toolchain@freebsd.org Wed Nov 9 11:36:21 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2F94C38825 for ; Wed, 9 Nov 2016 11:36:20 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-60.reflexion.net [208.70.210.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A73D895F for ; Wed, 9 Nov 2016 11:36:19 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 20806 invoked from network); 9 Nov 2016 11:36:14 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 9 Nov 2016 11:36:14 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Wed, 09 Nov 2016 06:36:22 -0500 (EST) Received: (qmail 15532 invoked from network); 9 Nov 2016 11:36:22 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 11:36:22 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 61248EC7B39; Wed, 9 Nov 2016 03:36:17 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: base/binutils (from ports/head -r424540) requires "gcc" to be a valid command on the host environment From: Mark Millard In-Reply-To: Date: Wed, 9 Nov 2016 03:36:16 -0800 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: To: David Chisnall X-Mailer: Apple Mail (2.3251) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2016 11:36:21 -0000 On 2016-Nov-9, at 1:56 AM, David Chisnall = wrote: > On 9 Nov 2016, at 03:33, Mark Millard 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 = . =3D=3D=3D Mark Millard markmi at dsl-only.net