From owner-freebsd-toolchain@freebsd.org Sun Nov 6 02:07:23 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 AB0B6C32F9C for ; Sun, 6 Nov 2016 02:07:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 8206FB89 for ; Sun, 6 Nov 2016 02:07:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA627Nvw076122 for ; Sun, 6 Nov 2016 02:07:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214258] devel/openmp: spurious libm dependency Date: Sun, 06 Nov 2016 02:07:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bapt@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sun, 06 Nov 2016 02:07:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214258 Bug ID: 214258 Summary: devel/openmp: spurious libm dependency Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: needs-patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: bapt@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: freebsd-toolchain@FreeBSD.org Flags: maintainer-feedback?(bapt@FreeBSD.org) Assignee: bapt@FreeBSD.org LLVM openmp picks up math symbols despite not using them in any of its obje= ct files. $ cd /usr/ports/devel/openmp $ make install $ cd $(make -V WRKSRC) $ fgrep -lr scalbnl . ./runtime/src/libgomp.so ./runtime/src/libiomp5.so ./runtime/src/libomp.so ./runtime/exports/lin_32e/lib/libomp.so $ echo 'int main() { }' | cc ./runtime/src/libomp.so -xc - ./runtime/src/libomp.so: undefined reference to `scalbnl' ./runtime/src/libomp.so: undefined reference to `fmaxl' ./runtime/src/libomp.so: undefined reference to `logbl' ./runtime/src/libomp.so: undefined reference to `scalbnf' ./runtime/src/libomp.so: undefined reference to `logb' ./runtime/src/libomp.so: undefined reference to `logbf' ./runtime/src/libomp.so: undefined reference to `scalbn' cc: error: linker command failed with exit code 1 (use -v to see invocation) $ echo 'int main() { }' | cc -fopenmp -L/usr/local/lib -xc - /usr/local/lib/libomp.so: undefined reference to `scalbnl' /usr/local/lib/libomp.so: undefined reference to `fmaxl' /usr/local/lib/libomp.so: undefined reference to `logbl' /usr/local/lib/libomp.so: undefined reference to `scalbnf' /usr/local/lib/libomp.so: undefined reference to `logb' /usr/local/lib/libomp.so: undefined reference to `logbf' /usr/local/lib/libomp.so: undefined reference to `scalbn' cc: error: linker command failed with exit code 1 (use -v to see invocation) --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Nov 6 04:01:27 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 A6580C1D558 for ; Sun, 6 Nov 2016 04:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 95A66135C for ; Sun, 6 Nov 2016 04:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA641RxW078554 for ; Sun, 6 Nov 2016 04:01:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214258] devel/openmp: spurious libm dependency Date: Sun, 06 Nov 2016 04:01:27 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sun, 06 Nov 2016 04:01:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214258 Jan Beich (mail not working) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bapt@FreeBSD.org Assignee|bapt@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --- Comment #1 from Jan Beich (mail not working) --- Assigning to toolchain@ in order to help bisecting base change. It affects 11.0+ but not 10.3 or 9.3. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 7 20:26:07 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 70C9EC35115 for ; Mon, 7 Nov 2016 20:26:07 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-55.reflexion.net [208.70.210.55]) (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 1FD1DC9D for ; Mon, 7 Nov 2016 20:26:06 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 32027 invoked from network); 7 Nov 2016 20:19:14 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 7 Nov 2016 20:19:14 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Mon, 07 Nov 2016 15:19:30 -0500 (EST) Received: (qmail 7498 invoked from network); 7 Nov 2016 20:19:30 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 7 Nov 2016 20:19:30 -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 1DDB1EC7888; Mon, 7 Nov 2016 12:19:25 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)? Message-Id: <65D8A8E5-07F0-4E0F-A412-C2CDE2D9982A@dsl-only.net> Date: Mon, 7 Nov 2016 12:19:24 -0800 To: FreeBSD Toolchain , freebsd-arm , FreeBSD-STABLE Mailing List , FreeBSD Current 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: Mon, 07 Nov 2016 20:26:07 -0000 It looks like http://pkg.freebsd.org is still back as of head being = 11-CURRENT: http://pkg.freebsd.org shows only =E2=80=A2 freebsd:11:aarch64:64 (as http://pkg.freebsd.org/freebsd%3A11%3Aaarch64%3A64 ). So on 12-CURRENT pkg bootstrapping gets: > # pkg > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > Bootstrapping pkg from = pkg+http://pkg.FreeBSD.org/FreeBSD:12:aarch64/latest, please wait... > pkg: Error fetching = http://pkg.FreeBSD.org/FreeBSD:12:aarch64/latest/Latest/pkg.txz: Not = Found > A pre-built version of pkg could not be found for your system. > Consider changing PACKAGESITE or installing it from ports: = 'ports-mgmt/pkg'. but ld is also missing at this stage so one cannot link anything --and = pkg is not a route to make an ld available. So how does one currently bootstrap a 12-CURRENT pkg for aarch64 = (context: pine64+ 2GB)? Create a /usr/local/etc/pkg/repos/FreeBSD.conf to reference = FreeBSD:11:aarch64 ? That just reports the wrong architecture is being = attempted: > # pkg > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > Bootstrapping pkg from = pkg+http://pkg.FreeBSD.org/FreeBSD:11:aarch64/latest, please wait... > Verifying signature with trusted certificate = pkg.freebsd.org.2013102301... done > pkg-static: Warning: Major OS version upgrade detected. Running = "pkg-static install -f pkg" recommended > Installing pkg-1.9.2... > pkg-static: wrong architecture: FreeBSD:11:aarch64 instead of = FreeBSD:12:aarch64 >=20 > Failed to install the following 1 package(s): /tmp//pkg.txz.zkdHp2 pkg-static install -f pkg fetches meta.txz and packagesite.txz first but = then also reports "wrong architecture": > # pkg-static install -f pkg > pkg-static: Warning: Major OS version upgrade detected. Running = "pkg-static install -f pkg" recommended > Updating FreeBSD repository catalogue... > Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 =20 > Fetching packagesite.txz: 100% 4 MiB 4.3MB/s 00:01 =20 > Processing entries: 0% > pkg-static: wrong architecture: freebsd:11:aarch64:64 instead of = FreeBSD:12:aarch64 > pkg-static: repository FreeBSD contains packages with wrong ABI: = freebsd:11:aarch64:64 > Processing entries: 100% > Unable to update repository FreeBSD > All repositories are up-to-date. > pkg-static: Repository FreeBSD cannot be opened. 'pkg update' required > pkg-static: No packages available to install matching 'pkg' have been = found in the repositories Context details (was cross built from amd64 head -r308247): > # uname -apKU > FreeBSD pine64 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r308247M: Thu Nov = 3 07:10:44 PDT 2016 = markmi@FreeBSDx64:/usr/local/src/crochet/work/obj/arm64.aarch64/usr/src/sy= s/GENERIC-NODBG arm64 aarch64 1200014 1200014 > # svnlite info /usr/ports | grep "Re[lv]" > Relative URL: ^/head > Revision: 424540 > Last Changed Rev: 424540 =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Mon Nov 7 21:16:43 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 7FBA8C34372; Mon, 7 Nov 2016 21:16:43 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from valentine.liquidneon.com (valentine.liquidneon.com [216.87.78.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "valentine.liquidneon.com", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6AF40227; Mon, 7 Nov 2016 21:16:42 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: by valentine.liquidneon.com (Postfix, from userid 1018) id B52342B2C6; Mon, 7 Nov 2016 14:16:41 -0700 (MST) Date: Mon, 7 Nov 2016 14:16:41 -0700 From: Brad Davis To: Mark Millard Cc: FreeBSD Toolchain , freebsd-arm , FreeBSD-STABLE Mailing List , FreeBSD Current Subject: Re: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)? Message-ID: <20161107211641.GI34174@corpmail.liquidneon.com> References: <65D8A8E5-07F0-4E0F-A412-C2CDE2D9982A@dsl-only.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65D8A8E5-07F0-4E0F-A412-C2CDE2D9982A@dsl-only.net> User-Agent: Mutt/1.7.0 (2016-08-17) 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: Mon, 07 Nov 2016 21:16:43 -0000 On Mon, Nov 07, 2016 at 12:19:24PM -0800, Mark Millard wrote: > It looks like http://pkg.freebsd.org is still back as of head being 11-CURRENT: http://pkg.freebsd.org shows only Correct. I wrote up some details on how to use the 11 packages here: http://www.raspbsd.org/raspberrypi.html Regards, Brad Davis From owner-freebsd-toolchain@freebsd.org Tue Nov 8 04:36:17 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 5AED6C35DBF for ; Tue, 8 Nov 2016 04:36:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-55.reflexion.net [208.70.210.55]) (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 08267103D for ; Tue, 8 Nov 2016 04:36:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 13500 invoked from network); 8 Nov 2016 04:36:57 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 8 Nov 2016 04:36:57 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Mon, 07 Nov 2016 23:36:03 -0500 (EST) Received: (qmail 12026 invoked from network); 8 Nov 2016 04:36:03 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 8 Nov 2016 04:36:03 -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 18674EC7888; Mon, 7 Nov 2016 20:35:58 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: http://pkg.freebsd.org only has freebsd:11:aarch64:64 for aaarch64? How to boostrap aarch64 pkg for head (12-CURRENT)? From: Mark Millard In-Reply-To: <20161107211641.GI34174@corpmail.liquidneon.com> Date: Mon, 7 Nov 2016 20:35:57 -0800 Cc: freebsd-arm , FreeBSD-STABLE Mailing List , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <26573287-17D4-4B1C-A6A0-79B9DD03A18B@dsl-only.net> References: <65D8A8E5-07F0-4E0F-A412-C2CDE2D9982A@dsl-only.net> <20161107211641.GI34174@corpmail.liquidneon.com> To: Brad Davis , FreeBSD Toolchain 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: Tue, 08 Nov 2016 04:36:17 -0000 On 2016-Nov-7, at 1:16 PM, Brad Davis wrote: > On Mon, Nov 07, 2016 at 12:19:24PM -0800, Mark Millard wrote: >> It looks like http://pkg.freebsd.org is still back as of head being = 11-CURRENT: http://pkg.freebsd.org shows only >=20 > Correct. I wrote up some details on how to use the 11 packages here: >=20 > http://www.raspbsd.org/raspberrypi.html >=20 >=20 > Regards, > Brad Davis Thanks. That helped me get to the next issue to figure out. I eventually found that https://wiki.freebsd.org/arm64/rpi3 has a = "Package Repo" section with the alternate ABI information for pkg and = also how to get port builds going (putting an ld in place) --as if the = material was RPI3 specific. https://wiki.freebsd.org/arm64/rpi3 says: > There is no package repo for 12-CURRENT, but the package repo for 11 = can be used on 12-CURRENT by telling pkg to use the FreeBSD 11 aarch64 = ABI:=20 >=20 > env ABI=3DFreeBSD:11:aarch64 pkg bootstrap >=20 > Once pkg is bootstrapped, you can add this to /usr/local/etc/pkg.conf:=20= >=20 > ABI =3D "FreeBSD:11:aarch64"; >=20 > If you want to build your own ports or packages, you'll need to = install the aarch64-binutils package and link /usr/bin/ld to = /usr/local/bin/aarch64-freebsd-ld:=20 >=20 > # pkg install aarch64-binutils > # ln /usr/local/bin/aarch64-freebsd-ld /usr/bin/ld >=20 > Note that if you're building directly on the RPI3, you will definitely = want to use either USB storage or NFS. Building on the sdcard will = likely wear the sdcard out.=20 (I have the root filesystem on a USB SSD.) My context is a Pine64+ 2GB --which https://wiki.freebsd.org/arm64 does = not even mention as covered by TARGET_ARCH=3Daarch64 . But crochet is = set up for pine64's and uses TARGET_ARCH=3Daarch64 style builds. =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 03:33:44 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 34999C36FEB for ; Wed, 9 Nov 2016 03:33:44 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-58.reflexion.net [208.70.210.58]) (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 D36F5A2C for ; Wed, 9 Nov 2016 03:33:43 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 28707 invoked from network); 9 Nov 2016 03:34:04 -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 03:34:04 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Tue, 08 Nov 2016 22:33:45 -0500 (EST) Received: (qmail 9352 invoked from network); 9 Nov 2016 03:33:45 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 03:33:45 -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 DB0CAEC881E; Tue, 8 Nov 2016 19:33:40 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: base/binutils (from ports/head -r424540) requires "gcc" to be a valid command on the host environment Message-Id: Date: Tue, 8 Nov 2016 19:33:40 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML 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 03:33:44 -0000 base/binutils for my attempted powerpc64 cross build target [from amd64 = head -r308247M] failed for lack of a "gcc": > Script started on Tue Nov 8 18:53:40 2016 > Command: make CROSS_TOOLCHAIN=3Dpowerpc64-gcc = CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtoolchain-powerpc64-installworld = package . . . > Making info in doc > gmake[5]: Entering directory = '/usr/obj/portswork/usr/ports/base/binutils/work/binutils-2.25.1/bfd/doc' > gcc -o chw$$ \ > -I.. -I./.. -I./../../include -I./../../intl -I../../intl = ./chew.c; \ > /bin/sh ./../../move-if-change \ > chw$$ chew; \ > touch chew.stamp > /bin/sh: gcc: not found > mv: rename chw79264 to chew: No such file or directory > ./chew -f ./doc.str < ./../aoutx.h >aoutx.tmp > ./chew -f ./doc.str < ./../archive.c >archive.tmp > ./chew -f ./doc.str < ./../archures.c >archures.tmp > /bin/sh: ./chew: not found > gmake[5]: *** [Makefile:798: aoutx.stamp] Error 127 > gmake[5]: *** Waiting for unfinished jobs.... > /bin/sh: ./chew: not found > gmake[5]: *** [Makefile:805: archive.stamp] Error 127 > /bin/sh: ./chew: not found > gmake[5]: *** [Makefile:812: archures.stamp] Error 127 > gmake[5]: Leaving directory = '/usr/obj/portswork/usr/ports/base/binutils/work/binutils-2.25.1/bfd/doc' > Making info in po To get as far as the above I first had to rebuild the build = prerequisites for binutils (devel/binutils): I had used pkg autoremove = at some point and the lack of (for example) devel/bison stopped my first = attempt at building base/binutils : base/binutils did not cause a build = of its build prerequisites. Context details: > # uname -apKU > FreeBSD FreeBSDx64 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r308247M: Thu = Nov 3 04:05:55 PDT 2016 = markmi@FreeBSDx64:/usr/obj/amd64_clang/amd64.amd64/usr/src/sys/GENERIC-NOD= BG amd64 amd64 1200014 1200014 > # svnlite info | grep "Re[lv]" > Relative URL: ^/head/base/binutils > Revision: 424540 > Last Changed Rev: 421584 =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 03:33:50 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 06CAFC35014 for ; Wed, 9 Nov 2016 03:33:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-55.reflexion.net [208.70.210.55]) (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 AC08FA69 for ; Wed, 9 Nov 2016 03:33:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 32583 invoked from network); 9 Nov 2016 03:34:40 -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 03:34:40 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Tue, 08 Nov 2016 22:33:46 -0500 (EST) Received: (qmail 9384 invoked from network); 9 Nov 2016 03:33:45 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 03:33:45 -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 14882EC8FC3; Tue, 8 Nov 2016 19:33:41 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: base/binutils (from ports/head -r424540) requires "gcc" to be a valid command on the host environment Message-Id: Date: Tue, 8 Nov 2016 19:33:40 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML 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 03:33:50 -0000 base/binutils for my attempted powerpc64 cross build target [from amd64 = head -r308247M] failed for lack of a "gcc": > Script started on Tue Nov 8 18:53:40 2016 > Command: make CROSS_TOOLCHAIN=3Dpowerpc64-gcc = CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtoolchain-powerpc64-installworld = package . . . > Making info in doc > gmake[5]: Entering directory = '/usr/obj/portswork/usr/ports/base/binutils/work/binutils-2.25.1/bfd/doc' > gcc -o chw$$ \ > -I.. -I./.. -I./../../include -I./../../intl -I../../intl = ./chew.c; \ > /bin/sh ./../../move-if-change \ > chw$$ chew; \ > touch chew.stamp > /bin/sh: gcc: not found > mv: rename chw79264 to chew: No such file or directory > ./chew -f ./doc.str < ./../aoutx.h >aoutx.tmp > ./chew -f ./doc.str < ./../archive.c >archive.tmp > ./chew -f ./doc.str < ./../archures.c >archures.tmp > /bin/sh: ./chew: not found > gmake[5]: *** [Makefile:798: aoutx.stamp] Error 127 > gmake[5]: *** Waiting for unfinished jobs.... > /bin/sh: ./chew: not found > gmake[5]: *** [Makefile:805: archive.stamp] Error 127 > /bin/sh: ./chew: not found > gmake[5]: *** [Makefile:812: archures.stamp] Error 127 > gmake[5]: Leaving directory = '/usr/obj/portswork/usr/ports/base/binutils/work/binutils-2.25.1/bfd/doc' > Making info in po To get as far as the above I first had to rebuild the build = prerequisites for binutils (devel/binutils): I had used pkg autoremove = at some point and the lack of (for example) devel/bison stopped my first = attempt at building base/binutils : base/binutils did not cause a build = of its build prerequisites. Context details: > # uname -apKU > FreeBSD FreeBSDx64 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r308247M: Thu = Nov 3 04:05:55 PDT 2016 = markmi@FreeBSDx64:/usr/obj/amd64_clang/amd64.amd64/usr/src/sys/GENERIC-NOD= BG amd64 amd64 1200014 1200014 > # svnlite info | grep "Re[lv]" > Relative URL: ^/head/base/binutils > Revision: 424540 > Last Changed Rev: 421584 =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 04:16:22 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 6F7B6C35B89 for ; Wed, 9 Nov 2016 04:16:22 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-54.reflexion.net [208.70.210.54]) (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 0BDA1BB6 for ; Wed, 9 Nov 2016 04:16:21 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 18125 invoked from network); 9 Nov 2016 04:16:12 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 9 Nov 2016 04:16:12 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Tue, 08 Nov 2016 23:16:20 -0500 (EST) Received: (qmail 9888 invoked from network); 9 Nov 2016 04:14:42 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 04:14:42 -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 321F0EC8F04; Tue, 8 Nov 2016 20:14:37 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: base/gcc (from ports/head -r424540) requires older mpfr (3.1.4 vs. the installed 3.1.5); 3.1.4 distfile not found Message-Id: Date: Tue, 8 Nov 2016 20:14:36 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML 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 04:16:22 -0000 My attempt to build (package) base/gcc for targeting powerpc64 failed: > Script started on Tue Nov 8 19:59:23 2016 > Command: make CROSS_TOOLCHAIN=3Dpowerpc64-gcc = CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtoolchain-powerpc64-installworld = package . . . > =3D> mpfr-3.1.4.tar.xz doesn't seem to exist in /usr/ports/distfiles/. > =3D> Attempting to fetch = http://www.mpfr.org/mpfr-current/mpfr-3.1.4.tar.xz > fetch: http://www.mpfr.org/mpfr-current/mpfr-3.1.4.tar.xz: Not Found > =3D> Attempting to fetch = http://distcache.FreeBSD.org/ports-distfiles/mpfr-3.1.4.tar.xz > fetch: http://distcache.FreeBSD.org/ports-distfiles/mpfr-3.1.4.tar.xz: = Not Found > =3D> Couldn't fetch it - please try to retrieve this > =3D> port manually into /usr/ports/distfiles/ and try again. > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/base/gcc >=20 > Script done, output file is /root/ports_typescripts/gcc_00.typescript # pkg info | grep mpfr mpfr-3.1.5 Library for multiple-precision = floating-point computations =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 07:56:58 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 94AA8C37652 for ; Wed, 9 Nov 2016 07:56:58 +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 559B564F for ; Wed, 9 Nov 2016 07:56:57 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 3486 invoked from network); 9 Nov 2016 07:57:49 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 9 Nov 2016 07:57:49 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Wed, 09 Nov 2016 02:56:56 -0500 (EST) Received: (qmail 22451 invoked from network); 9 Nov 2016 07:56:56 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 07:56:56 -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 7CD57EC8F15; Tue, 8 Nov 2016 23:56:50 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: base/gcc (from ports/head -r424540) requires older mpfr (3.1.4 vs. the installed 3.1.5); other points to get a build. . . Date: Tue, 8 Nov 2016 23:56:49 -0800 References: To: FreeBSD Toolchain , FreeBSD PowerPC ML In-Reply-To: Message-Id: 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 07:56:58 -0000 On 2016-Nov-8, at 8:14 PM, Mark Millard wrote: > My attempt to build (package) base/gcc for targeting powerpc64 failed: >=20 >> Script started on Tue Nov 8 19:59:23 2016 >> Command: make CROSS_TOOLCHAIN=3Dpowerpc64-gcc = CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtoolchain-powerpc64-installworld = package > . . . >> =3D> mpfr-3.1.4.tar.xz doesn't seem to exist in = /usr/ports/distfiles/. >> =3D> Attempting to fetch = http://www.mpfr.org/mpfr-current/mpfr-3.1.4.tar.xz >> fetch: http://www.mpfr.org/mpfr-current/mpfr-3.1.4.tar.xz: Not Found >> =3D> Attempting to fetch = http://distcache.FreeBSD.org/ports-distfiles/mpfr-3.1.4.tar.xz >> fetch: = http://distcache.FreeBSD.org/ports-distfiles/mpfr-3.1.4.tar.xz: Not = Found >> =3D> Couldn't fetch it - please try to retrieve this >> =3D> port manually into /usr/ports/distfiles/ and try again. >> *** Error code 1 >>=20 >> Stop. >> make: stopped in /usr/ports/base/gcc >>=20 >> Script done, output file is /root/ports_typescripts/gcc_00.typescript >=20 > # pkg info | grep mpfr > mpfr-3.1.5 Library for multiple-precision = floating-point computations After updating it locally to reference 3.1.5 there were two more = problems. . . > configure: error: Specified CC_FOR_BUILD doesn't seem to work > gmake[1]: *** [Makefile:4519: configure-gmp] Error 1 > gmake[1]: *** Waiting for unfinished jobs.... > . . . > gmake[1]: Leaving directory = '/usr/obj/portswork/usr/ports/base/gcc/work/.build' > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to > the maintainer. > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/base/gcc Needed the command to exist: gcc So I created: # ls -l /usr/local/bin/gcc lrwxr-xr-x 1 root wheel 4 Nov 8 20:29 /usr/local/bin/gcc -> gcc6 (The only host gcc installed is gcc6 in my context.) (base/binutils also required such a gcc that would be found by default.) Then it got farther but there was later: > configure: error: C++ compiler missing or inoperational > gmake[1]: *** [Makefile:2717: configure-build-libcpp] Error 1 > gmake[1]: *** Waiting for unfinished jobs.... Needed the command to exist: g++ So I created: # ls -l /usr/local/bin/g++ lrwxr-xr-x 1 root wheel 4 Nov 8 20:33 /usr/local/bin/g++ -> g++6 (base/bintutils did not require this.) After that it got much farther. But it stopped with missing files, = including sparc ones for a powerpc64 context: > =3D=3D=3D> Building package for freebsd-gcc-5.4.0 > pkg-static: Unable to access file = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/include/visintrin.h: No such file or directory > pkg-static: Unable to access file = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/plugin/include/config/sparc/freebsd.h: No such = file or directory > pkg-static: Unable to access file = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sparc-opts.h: No such = file or directory > pkg-static: Unable to access file = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sparc-protos.h: No = such file or directory > pkg-static: Unable to access file = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sparc.h: No such file = or directory > pkg-static: Unable to access file = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sysv4.h: No such file = or directory > pkg-static: Unable to access file = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/plugin/include/config/vxworks-dummy.h: No such = file or directory > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/base/gcc As far as what is really there for powerpc64: > # ls = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/include/ | grep "^v" > varargs.h > vec_types.h > # ls = /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-por= tbld-freebsd12.0/5.4.0/plugin/include/config/ > dbxelf.h elfos.h freebsd-spec.h = freebsd-stdint.h freebsd.h initfini-array.h = rs6000 The references to the non-existent files are from the pkg-plist lines: > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/visintrin.h . . . > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/initfini-arra= y.h > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/%%OPSYS= %%.h > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-o= pts.h > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-p= rotos.h > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc.h= > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sysv4.h= > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy= .h The base/README only mentions generation of pkg-plist for base/binutils = . Doing a quick check for base/gcc : > # make CROSS_TOOLCHAIN=3Dpowerpc64-gcc = CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtoolchain-powerpc64-installworld = makeplist > pkg-plist-powerpc64 > # diff pkg-plist pkg-plist-powerpc64 | more > 0a1 > > /you/have/to/check/what/makeplist/gives/you > 17a19 > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/libmilter/mfapi.h > 31a34 > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/altivec.h > 32a36,37 > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmintrin.h > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmxlintrin.h > 33a39,44 > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/paired.h > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppc-asm.h > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppu_intrinsics.h > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/si2vmx.h > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spe.h > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spu2vmx.h > 45c56 > < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/visintrin.h > --- > > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/vec_types.h > 107,112c118,126 > < = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/%%OPSYS= %%.h > < = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-o= pts.h > < = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-p= rotos.h > < = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc.h= > < = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sysv4.h= > < = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy= .h > --- > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/defaul= t64.h > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/%%OPSY= S%%64.h > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/option= -defaults.h > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000= -builtin.def > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000= -cpus.def > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000= -opts.h > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000= -protos.h > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000= .h > > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/sysv4.= h This leads to targeting powerpc64 using (in my context): > # ls -l /usr/local/bin/gcc > lrwxr-xr-x 1 root wheel 4 Nov 8 20:29 /usr/local/bin/gcc -> gcc6 > # ls -l /usr/local/bin/g++ > lrwxr-xr-x 1 root wheel 4 Nov 8 20:33 /usr/local/bin/g++ -> g++6 > # svnlite diff . > Index: Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- Makefile (revision 424540) > +++ Makefile (working copy) > @@ -8,7 +8,7 @@ > GNU/gmp:gmp \ > http://www.multiprecision.org/mpc/download/:mpc > DISTFILES=3D ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ > - mpfr-3.1.4.tar.xz:mpfr \ > + mpfr-3.1.5.tar.xz:mpfr \ > gmp-5.1.3.tar.xz:gmp \ > mpc-1.0.3.tar.gz:mpc > PKGNAMEPREFIX=3D ${OPSYS:tl}- > @@ -55,7 +55,7 @@ > INSTALL_TARGET?=3D install-gcc > =20 > post-extract: > - cd ${WRKSRC}; ${LN} -sf ../mpfr-3.1.4 mpfr ; \ > + cd ${WRKSRC}; ${LN} -sf ../mpfr-3.1.5 mpfr ; \ > ${LN} -sf ../gmp-5.1.3 gmp ; \ > ${LN} -sf ../mpc-1.0.3 mpc > =20 > Index: distinfo > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- distinfo (revision 424540) > +++ distinfo (working copy) > @@ -1,8 +1,8 @@ > TIMESTAMP =3D 1472596046 > SHA256 (gcc-5.4.0.tar.bz2) =3D = 608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a > SIZE (gcc-5.4.0.tar.bz2) =3D 95661481 > -SHA256 (mpfr-3.1.4.tar.xz) =3D = 761413b16d749c53e2bfd2b1dfaa3b027b0e793e404b90b5fbaeef60af6517f5 > -SIZE (mpfr-3.1.4.tar.xz) =3D 1122152 > +SHA256 (mpfr-3.1.5.tar.xz) =3D = 015fde82b3979fbe5f83501986d328331ba8ddf008c1ff3da3c238f49ca062bc > +SIZE (mpfr-3.1.5.tar.xz) =3D 1126668 > SHA256 (gmp-5.1.3.tar.xz) =3D = dee2eda37f4ff541f30019932db0c37f6f77a30ba3609234933b1818f9b07071 > SIZE (gmp-5.1.3.tar.xz) =3D 1818812 > SHA256 (mpc-1.0.3.tar.gz) =3D = 617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3 > Index: pkg-plist > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- pkg-plist (revision 424540) > +++ pkg-plist (working copy) > @@ -15,6 +15,7 @@ > bin/%%GCC_TARGET%%-gcov > bin/%%GCC_TARGET%%-gcov-tool > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/README > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/libmilter/mfapi.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/limits.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_fil.h > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_lookup.h > @@ -29,8 +30,17 @@ > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/syslimits.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/unistd.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/wchar.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/altivec.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/float.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmintrin.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmxlintrin.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/iso646.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/paired.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppc-asm.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppu_intrinsics.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/si2vmx.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spe.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spu2vmx.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/stdalign.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/stdarg.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/stdatomic.h > @@ -42,7 +52,7 @@ > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/stdnoreturn.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/tgmath.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/varargs.h > -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/visintrin.h > +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/vec_types.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/install-tools/fixinc_list > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/install-tools/gsyslimits.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/install-tools/include/README > @@ -104,12 +114,15 @@ > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/%%OPSYS%%-std= int.h > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/%%OPSYS%%.h > = lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/initfini-arra= y.h > = -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/%%OPSY= S%%.h > = -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-= opts.h > = -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-= protos.h > = -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc.= h > = -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sysv4.= h > = -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dumm= y.h > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/defau= lt64.h > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/%%OPS= YS%%64.h > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/optio= n-defaults.h > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs600= 0-builtin.def > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs600= 0-cpus.def > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs600= 0-opts.h > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs600= 0-protos.h > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs600= 0.h > = +lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/sysv4= .h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/configargs.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/context.h > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/convert.h With those things in place the base/gcc build completed. =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 09:57:05 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 56FF2C36AA8; Wed, 9 Nov 2016 09:57:05 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 DV Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 222C91F3; Wed, 9 Nov 2016 09:57:04 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [192.168.1.65] (host81-157-246-94.range81-157.btcentralplus.com [81.157.246.94]) (authenticated bits=0) by theravensnest.org (8.15.2/8.15.2) with ESMTPSA id uA99utbf019101 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Nov 2016 09:56:57 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: theravensnest.org: Host host81-157-246-94.range81-157.btcentralplus.com [81.157.246.94] claimed to be [192.168.1.65] Content-Type: multipart/signed; boundary="Apple-Mail=_07EAA596-9DD0-4B01-AE13-2A736414C255"; protocol="application/pkcs7-signature"; micalg=sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: base/binutils (from ports/head -r424540) requires "gcc" to be a valid command on the host environment From: David Chisnall In-Reply-To: Date: Wed, 9 Nov 2016 09:56:48 +0000 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: References: To: Mark Millard X-Mailer: Apple Mail (2.3124) 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 09:57:05 -0000 --Apple-Mail=_07EAA596-9DD0-4B01-AE13-2A736414C255 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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: 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. David --Apple-Mail=_07EAA596-9DD0-4B01-AE13-2A736414C255 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIK5jCCBPww ggPkoAMCAQICECJrrb9nBol9MHok/UZg/AYwDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCSUwx FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24g QXV0aG9yaXR5MSMwIQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQTAeFw0xNjA0MTkw OTI3NDJaFw0xNzA0MTkwOTI3NDJaMEQxHTAbBgNVBAMMFHRoZXJhdmVuQGZyZWVic2Qub3JnMSMw IQYJKoZIhvcNAQkBFhR0aGVyYXZlbkBmcmVlYnNkLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEP ADCCAQoCggEBALsL5pEhrGjrswHVdMHWhgxb8ARKDYRePSqpDLmjJ40bpx+n1zrvIwjC2Vk2IpoD 04rg5Pog2IrhnX+Qk2NSXzBXWj2JAaTc9OtSeAY0BtgJYXONGONQbRKVy97QBdzd1SbMEzDrOgH5 UDI+5sF1PboOTmLyTAPI9273XdfZ0BnstUXs8NXr/7p9E5CWJOsO1iQcINbm4XiwC1PLNMeWUknE Nji/hFKwcE8IFtaUe1ymbw6yA3rBpDu3KewIRD1T66FPTZJeIzvUoBIqWd+GAOfCBG2QYmbc3y/x K2hCtcXThcB1uVFA2q39koLKA8wHyqv4Jhm3wzhAqKDsWK4bGW0CAwEAAaOCAbcwggGzMA4GA1Ud DwEB/wQEAwIEsDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwCQYDVR0TBAIwADAdBgNV HQ4EFgQU5J3Kc8GeW8pEGxBkcMoA7eUOPRwwHwYDVR0jBBgwFoAUJIFsOWG+SQ+PtxtGK8kotSdI bWgwbwYIKwYBBQUHAQEEYzBhMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5zdGFydHNzbC5jb20w OQYIKwYBBQUHMAKGLWh0dHA6Ly9haWEuc3RhcnRzc2wuY29tL2NlcnRzL3NjYS5jbGllbnQxLmNy dDA4BgNVHR8EMTAvMC2gK6AphidodHRwOi8vY3JsLnN0YXJ0c3NsLmNvbS9zY2EtY2xpZW50MS5j cmwwHwYDVR0RBBgwFoEUdGhlcmF2ZW5AZnJlZWJzZC5vcmcwIwYDVR0SBBwwGoYYaHR0cDovL3d3 dy5zdGFydHNzbC5jb20vMEYGA1UdIAQ/MD0wOwYLKwYBBAGBtTcBAgUwLDAqBggrBgEFBQcCARYe aHR0cDovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3DQEBCwUAA4IBAQBSBDH+kZf5 bZkNFcMSPdfnGC7F8utBIxs2bi3JQjsBoQTm1vnXdwgINSfO9At6iQZHoEyj8ZE6PcMFuEU0+bk0 aE8aYcW59WnxfWx943upZoMhX0YVaJcFK01EHFrddRAP44sh7Eu6JtdFuAG+6btDReMcg35Qm65X 7/280aVm7awadJ+IQs8r9qBVk2NFqkvHCETtJjNWXd7M6mcsfXstvykbubPQH/VNW/zrX6yzIcI4 aoz+Sn8RJmHNkk6cImqe1KvsdDLXmqCoeoMwos62pT18RaI//jwTdmnf5EHFMlevnxOr7rzA++71 OSZfdYf6+nvHOod1F721rNuy6lxFMIIF4jCCA8qgAwIBAgIQa6eKfQrXiNZRCvlZ5Oe04TANBgkq hkiG9w0BAQsFADB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UE CxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20g Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTUxMjE2MDEwMDA1WhcNMzAxMjE2MDEwMDA1WjB1 MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20g Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50 IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvX3a98OifYP2W4L921tfrh4bdcC1 Ga+YJKy7V3nYNewJHnzMlBsK0Hb8Dm4Wo3FZpylcYa1MJGT10QMGWaLER3xCIuRR+8eklf/EqeZW RLojJ7zBRtjMywPOCelrOU+DX12dKp+Ez4J6919rz1UudTO1GvZyCYJ/I7062uHsskM8b7gPxmcC oO1UHwwpgkvpCArJWGFoFzjLdsZbErJcS3HtAhlkbE/BKTMrdYg35Uo12SLBO5tbk8h2imbKTC8i Ms+pskrvI/AVlh6QoTTXk6xboVX6zgMgzxSVVLymQiygYYm0y5aMsvi2raFhC643SOGvErWWPPnS EfbeAD1xswIDAQABo4IBZDCCAWAwDgYDVR0PAQH/BAQDAgEGMB0GA1UdJQQWMBQGCCsGAQUFBwMC BggrBgEFBQcDBDASBgNVHRMBAf8ECDAGAQH/AgEAMDIGA1UdHwQrMCkwJ6AloCOGIWh0dHA6Ly9j cmwuc3RhcnRzc2wuY29tL3Nmc2NhLmNybDBmBggrBgEFBQcBAQRaMFgwJAYIKwYBBQUHMAGGGGh0 dHA6Ly9vY3NwLnN0YXJ0c3NsLmNvbTAwBggrBgEFBQcwAoYkaHR0cDovL2FpYS5zdGFydHNzbC5j b20vY2VydHMvY2EuY3J0MB0GA1UdDgQWBBQkgWw5Yb5JD4+3G0YrySi1J0htaDAfBgNVHSMEGDAW gBROC+8apEBbpRdphzDKNGhD0EGu8jA/BgNVHSAEODA2MDQGBFUdIAAwLDAqBggrBgEFBQcCARYe aHR0cDovL3d3dy5zdGFydHNzbC5jb20vcG9saWN5MA0GCSqGSIb3DQEBCwUAA4ICAQCL4/eH7AGL hK0PAQJbnOEjJyMEvTTwcAJuUh/bodjQl06u4putYOxdSyIjSP/sKt+31LmjG8+IO1WqykE4H/Lm 7NKezWVnCHuwb3ptgFmlwbMbGkU2MOZBtwzfKXdYUhFLhaE2uw5jXhXvLYitQay962wP5uPI6eAI hV4L8aaya1u4s7MnrTq0Rz25FuGNO79vTHYWj797tSRC8rM16js4yGKOLFpQvIg0F8IElv57b1st p+C7omqM5Qn15dePbSnqr8Jb65WtmJJbnv6rlqfY/aLuE/zmNAlzLmPgfMDStKIXdg+EoYBZTEo8 wBUaBxihfNbJ069ndQOxMNNqBelEMgpAtmjTbCuXFjqIwWq+XOx6ZV/Wh2FAmaLsSHlNvEjjSQMZ wE4EeHCdo66ZmEs/5JYlCeOkulKVQ6P3m5/XOj2jP17Q2AgmjP+11+sHN7PvrG0OwrQp9QMe3X+r n0G8MjtFfqBWvR9CgLIxzM3MJNxFdgdjS2rYnShP5uxvqwfZvhZVYCIkqdJhpYON0DvSodfiar0w iM79mySZJjzC0CTbiisBzS/BeBhqeo2wFfli/iw3hn1XKvAx0ty6w/scmBF0AYqmRHYj1TjMSw0l Al7AztLglqWjUPI+sukvadMRPxmtKXlS2nVR4an/Z16imsZ69+fFYH68c1CK7zmjozGCA04wggNK AgEBMIGJMHUxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSkwJwYDVQQLEyBT dGFydENvbSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEjMCEGA1UEAxMaU3RhcnRDb20gQ2xhc3Mg MSBDbGllbnQgQ0ECECJrrb9nBol9MHok/UZg/AYwCQYFKw4DAhoFAKCCAZkwGAYJKoZIhvcNAQkD MQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTYxMTA5MDk1NjQ5WjAjBgkqhkiG9w0BCQQx FgQUFXgIp671OXWSYZsWT00l2mzmYXswgZoGCSsGAQQBgjcQBDGBjDCBiTB1MQswCQYDVQQGEwJJ TDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlv biBBdXRob3JpdHkxIzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBAhAia62/ZwaJ fTB6JP1GYPwGMIGcBgsqhkiG9w0BCRACCzGBjKCBiTB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMN U3RhcnRDb20gTHRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkx IzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDEgQ2xpZW50IENBAhAia62/ZwaJfTB6JP1GYPwGMA0G CSqGSIb3DQEBAQUABIIBACWi0/ERcjzaBzJGw+vsEc5BaRgm1/EVWJCwKBi3NJ1ntUyonvKKd7LV yAjSjj9OOwuNCVhv6Fcperj4k16fjwWdd2snAXYjS04iPhJAhO6m4EgYzKMjvq8weIelQcbOqjlx lyUwmucm4hW3IAIhyFvgVKYYrudjzI9LcUL61CiV3C9pzsNAGzkq6D2pYrAjkup0Oond267Hwldx AFcM1MHnXPap8bmn6tsvG/OtyIg2WBNi7Y5nCcwdqdPwCwdvzs/EdAsrUqWVW68fRzwyjLzDRgU0 XVOE2COTOsxaDXkp1LBT/tQDusX6EKdTjWjqCOZKNBgt0Ge7PnAZx3aetlwAAAAAAAA= --Apple-Mail=_07EAA596-9DD0-4B01-AE13-2A736414C255-- 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 From owner-freebsd-toolchain@freebsd.org Wed Nov 9 12:19:40 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 68651C37F30 for ; Wed, 9 Nov 2016 12:19:40 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-56.reflexion.net [208.70.210.56]) (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 290EE6CE for ; Wed, 9 Nov 2016 12:19:39 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 1059 invoked from network); 9 Nov 2016 12:19:26 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 9 Nov 2016 12:19:26 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Wed, 09 Nov 2016 07:19:43 -0500 (EST) Received: (qmail 23789 invoked from network); 9 Nov 2016 12:19:43 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 12:19:43 -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 7F081EC881E; Wed, 9 Nov 2016 04:19:37 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: base/gcc (from ports/head -r424540) lookups do not match base/binutils 's /usr/powerpc64-freebsd/bin/ld or /usr/bin/ld (ld example) Message-Id: <432CF4F5-ECC1-4573-AE32-74E7B88E2624@dsl-only.net> Date: Wed, 9 Nov 2016 04:19:36 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML 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 12:19:40 -0000 The gcc (and cc) from base/gcc 's freebsd-gcc-5.4.0.txz for powerpc64 = (via cross builds) by default can not find ld from either the system ( = /usr/bin/ld ) or from base/binutils 's FreeBSD-binutils-2.25.1_3,1.txz = expanded content : > # cc main.c > collect2: fatal error: cannot find 'ld' > compilation terminated. Before showing truss output that reports for where ld is searched for: = here is were it actually is (along with some other files that match the = pattern that I used): > # find / -name "*ld" -print | grep "[/-]ld$" > /usr/src/contrib/netbsd-tests/usr.bin/ld > /usr/src/contrib/binutils/ld > /usr/src/gnu/usr.bin/binutils/ld > /usr/bin/ld > /usr/ports/devel/bcc/files/patch-ld > /usr/powerpc64-freebsd/bin/ld (The "env ABI=3DFreeBSD:12:powerpc64 pkg-static add = FreeBSD-binutils-2.25.1_3,1.txz" generated that last line's file.) The "truss -f output cc main.c" output shows none of those paths being = involved. It does show a stat for: > /usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld and another for: > /bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld among others. (ld is not the only thing with such a naming convention = for what is before the tool's base name.) None of the paths end in "/ld" = : all end in "-ld". None of the lookups are directly in /usr either: if = /usr is involved in the path then so is at least one subdirectory. The truss "ld" lookup reports are included in the output below, they are = all not-found failures: > # truss -f cc main.c 2>&1 | grep '[/-]ld"'=20 > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/real-ld",0xffffffffff= ffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffffffff= ffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/real-ld",0xffffffffffffd2= f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/collect-ld",0xfffffff= fffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xfffff= fffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/collect-ld",0xfffffffffff= fd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freeb= sd-ld",0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freeb= sd-ld",0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/powerpc64-freebsd-ld"= ,0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freebsd-l= d",0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/powerpc64-freebsd-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xffffffff= ffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xfffffffff= fffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xfffff= fffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/local/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",= 0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/local/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0= xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/home/markmi/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld"= ,0xffffffffffffd2f8) ERR#2 'No such file or directory' =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 12:37:57 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 1C77DC3676E for ; Wed, 9 Nov 2016 12:37:57 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-56.reflexion.net [208.70.210.56]) (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 A7AEF6D for ; Wed, 9 Nov 2016 12:37:55 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 32749 invoked from network); 9 Nov 2016 12:37:43 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 9 Nov 2016 12:37:43 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Wed, 09 Nov 2016 07:38:04 -0500 (EST) Received: (qmail 21781 invoked from network); 9 Nov 2016 12:38:03 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 12:38:03 -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 0A105EC8F04; Wed, 9 Nov 2016 04:37:54 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Bootstrapping a powerpc64 vs. pkg vs. base/gcc (via cross compiles) Message-Id: Date: Wed, 9 Nov 2016 04:37:53 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML 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 12:37:57 -0000 I really wish that TARGET_ARCH=3Dpowerpc64 had a tiny package repository with one item: pkg itself so that a standard bootstrap for pkg would = work. Why? A) pkg on the target needs to be built by a C/C++ compiler toolchain as things are. 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 = =20 in the target environment. A similar point would go for TARGET_ARCH=3Dpowerpc . (Part of the issue is that clang/clang++ in 3.8.0 and even 3.9.0 so far is not yet appropriate for general use for powerpc64 or for powerpc, = such as incorrect code generation --and ABI violations for powerpc. FreeBSD's 3.9.0 experiment still has a couple of the llvm fixes not in place and llvm does not have everything fixed yet.) =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 14:28:02 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 BF704C38DA1 for ; Wed, 9 Nov 2016 14:28:02 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-58.reflexion.net [208.70.210.58]) (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 859BCD9A for ; Wed, 9 Nov 2016 14:28:02 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 13944 invoked from network); 9 Nov 2016 14:28:17 -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 14:28:17 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Wed, 09 Nov 2016 09:27:59 -0500 (EST) Received: (qmail 8113 invoked from network); 9 Nov 2016 14:27:58 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 14:27:58 -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 0A499EC8F93; Wed, 9 Nov 2016 06:27:54 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: base/gcc (from ports/head -r424540) lookups do not match base/binutils 's /usr/powerpc64-freebsd/bin/ld or /usr/bin/ld (ld example) Date: Wed, 9 Nov 2016 06:27:53 -0800 References: <432CF4F5-ECC1-4573-AE32-74E7B88E2624@dsl-only.net> To: FreeBSD Toolchain , FreeBSD PowerPC ML In-Reply-To: <432CF4F5-ECC1-4573-AE32-74E7B88E2624@dsl-only.net> Message-Id: <0B654323-C75A-484B-A4E8-E32AD4DD7479@dsl-only.net> 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 14:28:02 -0000 [Note: By the end of the later additional material "cc main.c" actually = works based on cc being from base/gcc used for TARGET_ARCH=3Dpowerpc64 = .] On 2016-Nov-9, at 4:19 AM, Mark Millard wrote: > The gcc (and cc) from base/gcc 's freebsd-gcc-5.4.0.txz for powerpc64 = (via cross builds) by default can not find ld from either the system ( = /usr/bin/ld ) or from base/binutils 's FreeBSD-binutils-2.25.1_3,1.txz = expanded content : >=20 >> # cc main.c >> collect2: fatal error: cannot find 'ld' >> compilation terminated. >=20 > Before showing truss output that reports for where ld is searched for: = here is were it actually is (along with some other files that match the = pattern that I used): >=20 >> # find / -name "*ld" -print | grep "[/-]ld$" >> /usr/src/contrib/netbsd-tests/usr.bin/ld >> /usr/src/contrib/binutils/ld >> /usr/src/gnu/usr.bin/binutils/ld >> /usr/bin/ld >> /usr/ports/devel/bcc/files/patch-ld >> /usr/powerpc64-freebsd/bin/ld >=20 > (The "env ABI=3DFreeBSD:12:powerpc64 pkg-static add = FreeBSD-binutils-2.25.1_3,1.txz" generated that last line's file.) >=20 > The "truss -f output cc main.c" output shows none of those paths being = involved. It does show a stat for: >=20 >> /usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld >=20 > and another for: >=20 >> /bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld >=20 > among others. (ld is not the only thing with such a naming convention = for what is before the tool's base name.) None of the paths end in "/ld" = : all end in "-ld". None of the lookups are directly in /usr either: if = /usr is involved in the path then so is at least one subdirectory. >=20 > The truss "ld" lookup reports are included in the output below, they = are all not-found failures: >=20 >> # truss -f cc main.c 2>&1 | grep '[/-]ld"'=20 >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/real-ld",0xffffffffff= ffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffffffff= ffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/real-ld",0xffffffffffffd2= f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/collect-ld",0xfffffff= fffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xfffff= fffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/collect-ld",0xfffffffffff= fd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freeb= sd-ld",0xffffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freeb= sd-ld",0xffffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/powerpc64-freebsd-ld"= ,0xffffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freebsd-l= d",0xffffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/powerpc64-freebsd-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xffffffff= ffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xfffffffff= fffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xfffff= fffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/local/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",= 0xffffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/usr/local/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0= xffffffffffffd2f8) ERR#2 'No such file or directory' >> 2873: = stat("/home/markmi/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld"= ,0xffffffffffffd2f8) ERR#2 'No such file or directory' >=20 >=20 >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net Other files' naming differences are not necessarily the same so I list = some for reference. First: all the "truss -f cc main.c" references to /usr/bin/ are: > # truss -f cc main.c 2>&1 | grep /usr/bin/ > 3040: access("/usr/bin/cc",X_OK) =3D 0 (0x0) > 3040: stat("/usr/bin/cc",{ mode=3D-r-xr-xr-x = ,inode=3D21028101,size=3D2628488,blksize=3D32768 }) =3D 0 (0x0) > 3040: lstat("/usr/bin/cc",{ mode=3Dlrwxr-xr-x = ,inode=3D21028094,size=3D33,blksize=3D32768 }) =3D 0 (0x0) > 3040: = readlink("/usr/bin/cc","powerpc64-portbld-freebsd12.0-gcc",1023) =3D 33 = (0x21) > 3040: lstat("/usr/bin/powerpc64-portbld-freebsd12.0-gcc",{ = mode=3D-r-xr-xr-x ,inode=3D21028101,size=3D2628488,blksize=3D32768 }) =3D = 0 (0x0) > 3040: access("/usr/bin/cc",X_OK) =3D 0 (0x0) > 3040: stat("/usr/bin/cc",{ mode=3D-r-xr-xr-x = ,inode=3D21028101,size=3D2628488,blksize=3D32768 }) =3D 0 (0x0) > 3040: lstat("/usr/bin/cc",{ mode=3Dlrwxr-xr-x = ,inode=3D21028094,size=3D33,blksize=3D32768 }) =3D 0 (0x0) > 3040: = readlink("/usr/bin/cc","powerpc64-portbld-freebsd12.0-gcc",1023) =3D 33 = (0x21) > 3040: lstat("/usr/bin/powerpc64-portbld-freebsd12.0-gcc",{ = mode=3D-r-xr-xr-x ,inode=3D21028101,size=3D2628488,blksize=3D32768 }) =3D = 0 (0x0) > 3042: execve("/usr/bin/as",0x506600c8,0x50668000) =3D 8 (0x8) > 3043: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xfffff= fffffffd2b8) ERR#2 'No such file or directory' > 3043: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-gnm",0xffffffffffffd2b8) = ERR#2 'No such file or directory' > 3043: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-nm",0xffffffffffffd2b8) = ERR#2 'No such file or directory' > 3043: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-gstrip",0xffffffffffffd2b8) = ERR#2 'No such file or directory' > 3043: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-strip",0xffffffffffffd2b8) = ERR#2 'No such file or directory' > 3043: stat("/usr/bin/cc",{ mode=3D-r-xr-xr-x = ,inode=3D21028101,size=3D2628488,blksize=3D32768 }) =3D 0 (0x0) > 3043: access("/usr/bin/cc",X_OK) =3D 0 (0x0) By contrast what is in the file system for the failing references above = (pd, nm, strip) is: > # find / -name "*ld" -print | grep "[/-]ld$" > /usr/src/contrib/netbsd-tests/usr.bin/ld > /usr/src/contrib/binutils/ld > /usr/src/gnu/usr.bin/binutils/ld > /usr/bin/ld > /usr/ports/devel/bcc/files/patch-ld > /usr/powerpc64-freebsd/bin/ld Compare that last to what the stat from the truss run shows: > /usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld > # find / -name "*gnm" -print | grep "[/-]gnm$" (Yep: no gnm: nm used instead.) > # find / -name "*nm" -print | grep "[/-]nm$" > /usr/src/contrib/llvm/tools/llvm-nm > /usr/src/contrib/elftoolchain/nm > /usr/src/usr.bin/clang/llvm-nm > /usr/src/usr.bin/nm > /usr/bin/nm > /usr/bin/llvm-nm > /usr/bin/powerpc64-portbld-freebsd12.0-gcc-nm Compare that last to what the stat from the truss run shows: > /usr/bin/powerpc64-portbld-freebsd12.0-nm > # find / -name "*gstrip" -print | grep "[/-]gstrip$" (Yep: no gstrip: strip used instead.) > # find / -name "*strip" -print | grep "[/-]strip$" > /usr/bin/strip Compare that to what the stat from the truss run shows: > /usr/bin/powerpc64-portbld-freebsd12.0-strip In my context the system cross build made its own powerpc64 binutils. /usr/bin/strip is not from base/binutils : > # zcat FreeBSD-binutils-2.25.1_3,1.txz | tar -tf - | grep strip > # (No match.) So adding what is missing (result shown): > # ls -lt /usr/bin/ | head > total 608956 > lrwxr-xr-x 1 root wheel 14 Nov 9 05:38 = powerpc64-portbld-freebsd12.0-strip -> /usr/bin/strip > lrwxr-xr-x 1 root wheel 36 Nov 9 05:38 = powerpc64-portbld-freebsd12.0-nm -> powerpc64-portbld-freebsd12.0-gcc-nm > lrwxr-xr-x 1 root wheel 29 Nov 9 05:19 = powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld -> = /usr/powerpc64-freebsd/bin/ld > lrwxr-xr-x 1 root wheel 33 Nov 8 21:51 c++ -> = powerpc64-portbld-freebsd12.0-g++ > lrwxr-xr-x 1 root wheel 33 Nov 8 21:51 cc -> = powerpc64-portbld-freebsd12.0-gcc > lrwxr-xr-x 1 root wheel 33 Nov 8 21:51 cpp -> = powerpc64-portbld-freebsd12.0-cpp > lrwxr-xr-x 1 root wheel 33 Nov 8 21:51 g++ -> = powerpc64-portbld-freebsd12.0-g++ > lrwxr-xr-x 1 root wheel 33 Nov 8 21:51 gcc -> = powerpc64-portbld-freebsd12.0-gcc > lrwxr-xr-x 1 root wheel 34 Nov 8 21:51 gcov -> = powerpc64-portbld-freebsd12.0-gcov > #=20 leads to ld being found in a cc but ld not finding the libraries it = needs, here: > # cc main.c > /usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld: cannot = find crt1.o: No such file or directory > /usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld: cannot = find crti.o: No such file or directory > /usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld: cannot = find crtbegin.o: No such file or directory > collect2: error: ld returned 1 exit status In the file system are the following (more than just crt1.o , crti.o , = and crtbegin.o shown): > # find / -name "*crt*.o" -print > /usr/lib/crtend.o > /usr/lib/crti.o > /usr/lib/Scrt1.o > /usr/lib/crtbegin.o > /usr/lib/crtbeginT.o > /usr/lib/crtn.o > /usr/lib/crtendS.o > /usr/lib/crtbeginS.o > /usr/lib/crt1.o > /usr/lib/crtsavres.o > /usr/lib/gcrt1.o "truss -f cc main.cc" shows that one of /usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/ or: = /usr/powerpc64-portbld-freebsd12.0/lib/powerpc64-portbld-freebsd12.0/5.4.0= / or: /usr/powerpc64-portbld-freebsd12.0/lib/ is expected in order to find crt1.o or crti.o or crtbegin.o or crtend.o = or crtn.o : (I did any ../ collapsing above) > # truss -f cc main.c 2>&1 | grep crt > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/crt1.o",R_OK) = ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/powerpc64-portbld-freebsd12.0/5.4.0/crt1.o",R= _OK) ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/crt1.o",R_OK) ERR#2 'No such file or = directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/crti.o",R_OK) = ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/powerpc64-portbld-freebsd12.0/5.4.0/crti.o",R= _OK) ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/crti.o",R_OK) ERR#2 'No such file or = directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/crtbegin.o",R_OK)= ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/powerpc64-portbld-freebsd12.0/5.4.0/crtbegin.= o",R_OK) ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/crtbegin.o",R_OK) ERR#2 'No such file or = directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/crtend.o",R_OK) = ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/powerpc64-portbld-freebsd12.0/5.4.0/crtend.o"= ,R_OK) ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/crtend.o",R_OK) ERR#2 'No such file or = directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/crtn.o",R_OK) = ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/powerpc64-portbld-freebsd12.0/5.4.0/crtn.o",R= _OK) ERR#2 'No such file or directory' > 3138: = access("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../power= pc64-portbld-freebsd12.0/lib/crtn.o",R_OK) ERR#2 'No such file or = directory' > 3142: open("crt1.o",O_RDONLY,0666) ERR#2 'No such file or = directory' > 3142: write(2,"crt1.o",6) =3D 6 (0x6) > 3142: open("crti.o",O_RDONLY,0666) ERR#2 'No such file or = directory' > 3142: write(2,"crti.o",6) =3D 6 (0x6) > 3142: open("crtbegin.o",O_RDONLY,0666) ERR#2 'No such = file or directory' > 3142: write(2,"crtbegin.o",10) =3D 10 (0xa) > 3141: access("crt1.rpo",R_OK) ERR#2 'No such = file or directory' > 3141: access("crti.rpo",R_OK) ERR#2 'No such = file or directory' > 3141: access("crtbegin.rpo",R_OK) ERR#2 'No such file or = directory' > 3141: access("crtend.rpo",R_OK) ERR#2 'No such file or = directory' > 3141: access("crtn.rpo",R_OK) ERR#2 'No such = file or directory' > crt1.o 3141: write(2,"crt1.o",6) =3D 6 (0x6) > crti.o 3141: write(2,"crti.o",6) =3D 6 (0x6) > crtbegin.o 3141: write(2,"crtbegin.o",10) =3D 10 = (0xa) For reference: > # ls -l /usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/ > total 16 > drwxr-xr-x 2 root wheel 1024 Nov 9 02:31 include > drwxr-xr-x 5 root wheel 512 Nov 9 02:31 include-fixed > drwxr-xr-x 3 root wheel 512 Nov 9 02:31 install-tools > drwxr-xr-x 3 root wheel 512 Nov 9 02:31 plugin > # ls -l /usr/powerpc64-portbld-freebsd12.0/ > ls: /usr/powerpc64-portbld-freebsd12.0/: No such file or directory (So there is no /usr/powerpc64-portbld-freebsd12.0/lib/ or = /usr/powerpc64-portbld-freebsd12.0/lib/powerpc64-portbld-freebsd12.0/5.4.0= / to look in.) Hacking in: > # ls -dl /usr/powerpc64-portbld-freebsd12.0 > lrwxr-xr-x 1 root wheel 4 Nov 9 06:19 = /usr/powerpc64-portbld-freebsd12.0 -> /usr results in cc main.c finally producing an a.out like it should. =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Wed Nov 9 15:58:32 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 57B39C376C2 for ; Wed, 9 Nov 2016 15:58:32 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-56.reflexion.net [208.70.210.56]) (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 0D7C02DB for ; Wed, 9 Nov 2016 15:58:31 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 21381 invoked from network); 9 Nov 2016 15:58:53 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 9 Nov 2016 15:58:53 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Wed, 09 Nov 2016 10:58:39 -0500 (EST) Received: (qmail 17391 invoked from network); 9 Nov 2016 15:58:39 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 15:58:39 -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 46F9AEC9186; Wed, 9 Nov 2016 07:58:29 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: c++ (g++) from base/gcc (via cross build) does not find C++ standard headers, such as cstdlib Message-Id: <5D62C0E6-E6B7-42F5-B74B-8F555C154449@dsl-only.net> Date: Wed, 9 Nov 2016 07:58:28 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML 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 15:58:32 -0000 This was noticed via trying to build benchmarks/bonnie++ (via = portmaster): > --- bon_csv2html.o --- > c++ -pipe -g -fno-strict-aliasing -DNDEBUG -Wall -W -Wshadow = -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope -Wcast-align = -Wsign-compare -Wpointer-arith -Wwrite-strings -Wformat-security -Wswit > ch-enum -Winit-self -pipe -g -fno-strict-aliasing -c = bon_csv2html.cpp -o bon_csv2html.o . . . > --- bon_csv2html.o --- > bon_csv2html.cpp:2:19: fatal error: cstdlib: No such file or directory > compilation terminated. > *** [bon_csv2html.o] Error code 1 >=20 > make[2]: stopped in = /usr/obj/portswork/usr/ports/benchmarks/bonnie++/work/bonnie++-1.97.2 > --- bonnie++.o --- > bonnie++.cpp:31:18: fatal error: algo.h: No such file or directory > compilation terminated. In the file system there are: > # find / -name "cstdlib" -print | more = = =20 > /usr/include/c++/v1/tr1/cstdlib > /usr/include/c++/v1/cstdlib > /usr/src/contrib/libc++/include/cstdlib > /usr/src/contrib/libstdc++/include/tr1/cstdlib Using a simpler program: > # c++ main.cc > main.cc:1:19: fatal error: cstdlib: No such file or directory > compilation terminated. "truss -f c++ main.cc" reports for cstdlib references: > # truss -f c++ main.cc 2>&1 | grep cstdlib > 95852: read(3,"#include \n\n// Avoid n"...,1309) =3D 1309 = (0x51d) > 95852: = lstat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include/cstdlib",0= xffffffffffffba20) ERR#2 'No such file or directory' > 95852: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include/cstdlib.gch= ",0xffffffffffffcbd8) ERR#2 'No such file or directory' > 95852: = openat(AT_FDCWD,"/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include/= cstdlib",O_RDONLY|O_NOCTTY,00) ERR#2 'No such file or directory' > 95852: = lstat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include-fixed/cstd= lib",0xffffffffffffba20) ERR#2 'No such file or directory' > 95852: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include-fixed/cstdl= ib.gch",0xffffffffffffcbd8) ERR#2 'No such file or directory' > 95852: = openat(AT_FDCWD,"/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include-= fixed/cstdlib",O_RDONLY|O_NOCTTY,00) ERR#2 'No such file or directory' > 95852: lstat("/usr/include/cstdlib",0xffffffffffffba20) ERR#2 'No such = file or directory' > 95852: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../../../powerpc= 64-portbld-freebsd12.0/include/cstdlib.gch",0xffffffffffffcbd8) ERR#2 = 'No such file or directory' > 95852: = openat(AT_FDCWD,"/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/../../..= /../powerpc64-portbld-freebsd12.0/include/cstdlib",O_RDONLY|O_NOCTTY,00) = ERR#2 'No such file or directory' > 95852: read(4,"#include \n\n// Avoid n"...,32768) =3D 1309 = (0x51d) > main.cc:1:19: fatal error: cstdlib: No such file or directory So in finding no cstdlib c++ (g++) looks for each of: > /usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include/cstdlib > /usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include/cstdlib.gch > /usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include-fixed/cstdlib > = /usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include-fixed/cstdlib.gch= > /usr/include/cstdlib > /usr/powerpc64-portbld-freebsd12.0/include/cstdlib.gch > /usr/powerpc64-portbld-freebsd12.0/include/cstdlib none of which match the file system. No trivially small number of = symbolic links in the file system can cover making all the involved = paths for various headers work (each "include" already exists and has = files). =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Thu Nov 10 07:51:04 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 2AA59C3923D for ; Thu, 10 Nov 2016 07:51:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 008C7AF9 for ; Thu, 10 Nov 2016 07:51:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAA7p3UP090037 for ; Thu, 10 Nov 2016 07:51:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214380] net/freerdp: clang crashes during build on aarch64 Date: Thu, 10 Nov 2016 07:51:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 10 Nov 2016 07:51:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214380 Bug ID: 214380 Summary: net/freerdp: clang crashes during build on aarch64 Product: Ports & Packages Version: Latest Hardware: arm64 OS: Any Status: New Keywords: crash Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: bsdports@kyle-evans.net, freebsd-toolchain@FreeBSD.org CC: bsdports@kyle-evans.net Flags: maintainer-feedback?(bsdports@kyle-evans.net) Created attachment 176845 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D176845&action= =3Dedit trio.c (preprocessed, XZ compressed) --- winpr/libwinpr/CMakeFiles/winpr.dir/utils/trio/trio.c.o --- fatal error: error in backend: Cannot select: 0x4001521130: i32 =3D AArch64ISD::FCCMP 0x400147fab0, 0x4001598ab0, Constant:i32<0>, Constant:i32<13>, 0x400147f720 0x400147fab0: f128,ch =3D CopyFromReg 0x400023f930, Register:f128 %vreg103 0x4001b01850: f128 =3D Register %vreg103 0x4001598ab0: f128,ch =3D CopyFromReg 0x400023f930, Register:f128 %vreg29 0x40015b65f0: f128 =3D Register %vreg29 0x40014c8130: i32 =3D Constant<0> 0x400147f390: i32 =3D Constant<13> 0x400147f720: f128 =3D AArch64ISD::FCMP 0x40014c9d10, 0x4001598ab0 0x40014c9d10: f128,ch =3D CopyFromReg 0x400023f930, Register:f128 %vreg= 104 0x40014d3850: f128 =3D Register %vreg104 0x4001598ab0: f128,ch =3D CopyFromReg 0x400023f930, Register:f128 %vreg= 29 0x40015b65f0: f128 =3D Register %vreg29 In function: TrioWriteDouble cc: error: clang frontend command failed with exit code 70 (use -v to see invocation) FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) Target: aarch64-unknown-freebsd11.0 Thread model: posix InstalledDir: /usr/bin http://thunderx1.nyi.freebsd.org/data/110arm64-default/425457/logs/errors/f= reerdp-1.2.0_7.log --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 10 07:52:19 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 A8B07C393B0 for ; Thu, 10 Nov 2016 07:52:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 97E8FD48 for ; Thu, 10 Nov 2016 07:52:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAA7qJaL095385 for ; Thu, 10 Nov 2016 07:52:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214380] net/freerdp: clang crashes during build on aarch64 Date: Thu, 10 Nov 2016 07:52:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 10 Nov 2016 07:52:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214380 --- Comment #1 from Jan Beich (mail not working) --- Created attachment 176846 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D176846&action= =3Dedit trio.sh (compiler args) --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 10 07:58:01 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 B99B9C395B1 for ; Thu, 10 Nov 2016 07:58:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 A8B2729A for ; Thu, 10 Nov 2016 07:58:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAA7w1U6003226 for ; Thu, 10 Nov 2016 07:58:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214380] net/freerdp: clang crashes during build on aarch64 Date: Thu, 10 Nov 2016 07:58:01 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 10 Nov 2016 07:58:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214380 Jan Beich (mail not working) changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-ports-bugs@FreeBSD. |freebsd-toolchain@FreeBSD.o |org |rg --- Comment #2 from Jan Beich (mail not working) --- Over to toolchain@ to determine whether it affects /head or just /releng/11= .0. To reproduce you have to run trio.sh on aarch64: either qemu-user-static ja= il (via poudriere) or real hardware. For example: $ scp trio-de52a8.c.xz trio-de52a8.sh ref11-aarch64.freebsd.org: $ ssh ref11-aarch64.freebsd.org $ xz -d trio-de52a8.c.xz $ sh trio-de52a8.sh --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 10 19:40:40 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 B62D0C3AC38 for ; Thu, 10 Nov 2016 19:40:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 A5634F77 for ; Thu, 10 Nov 2016 19:40:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAAJeea8028067 for ; Thu, 10 Nov 2016 19:40:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214380] net/freerdp: clang crashes during build on aarch64 Date: Thu, 10 Nov 2016 19:40:40 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 10 Nov 2016 19:40:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214380 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: dim Date: Thu Nov 10 19:40:15 UTC 2016 New revision: 308487 URL: https://svnweb.freebsd.org/changeset/base/308487 Log: Pull in r263301 from upstream llvm trunk (by Ahmed Bougacha): [AArch64] Don't blindly lower f16/f128 FCCMPs. Instead, extend f16 (like we do when lowering a standalone SETCC), and let f128 be legalized to the RT calls. Fixes PR26803. This fixes a fatal "Cannot select" backend error when building the net/freerdp port for AArch64. PR: 214380 MFC after: 3 days Changes: head/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 10 19:41:43 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 E0188C3AD7B for ; Thu, 10 Nov 2016 19:41:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 CF105B8 for ; Thu, 10 Nov 2016 19:41:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAAJfhUq034160 for ; Thu, 10 Nov 2016 19:41:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214380] net/freerdp: clang crashes during build on aarch64 Date: Thu, 10 Nov 2016 19:41:43 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 10 Nov 2016 19:41:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214380 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress CC| |dim@FreeBSD.org Assignee|freebsd-toolchain@FreeBSD.o |dim@FreeBSD.org |rg | --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 10 21:55:52 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 4807FC3AE18 for ; Thu, 10 Nov 2016 21:55:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 3762A884 for ; Thu, 10 Nov 2016 21:55:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAALtpRa008966 for ; Thu, 10 Nov 2016 21:55:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214380] net/freerdp: clang crashes during build on aarch64 Date: Thu, 10 Nov 2016 21:55:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: blocked Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 10 Nov 2016 21:55:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214380 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |201763 Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201763 [Bug 201763] Tracking bug for AArch64 port build failures --=20 You are receiving this mail because: You are on the CC list for the bug.=