From owner-freebsd-ports@freebsd.org Fri May 27 21:56:18 2016 Return-Path: Delivered-To: freebsd-ports@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 81C40B4CB4E for ; Fri, 27 May 2016 21:56:18 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-180.reflexion.net [208.70.211.180]) (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 2E6E31BF3 for ; Fri, 27 May 2016 21:56:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 13626 invoked from network); 27 May 2016 21:56:47 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 27 May 2016 21:56:47 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v7.90.3) with SMTP; Fri, 27 May 2016 17:56:13 -0400 (EDT) Received: (qmail 27325 invoked from network); 27 May 2016 21:56:13 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 27 May 2016 21:56:13 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 74C931C43D6; Fri, 27 May 2016 14:56:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: 11.0-CURRENT -r300770 libc++ update vs. lang/powerpc64-xtoolchain-gcc: no go [self hosted powerpc64 context] From: Mark Millard In-Reply-To: <8FAD594D-4349-4EA7-A712-D3792537FB1D@FreeBSD.org> Date: Fri, 27 May 2016 14:56:15 -0700 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML , freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <95E2A9D6-8E1A-46FB-84FF-60927A6F1CE4@dsl-only.net> <8FAD594D-4349-4EA7-A712-D3792537FB1D@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 21:56:18 -0000 On 2016-May-27, at 1:50 PM, Dimitry Andric wrote: >=20 > On 27 May 2016, at 01:53, Mark Millard wrote: >>=20 >> I do buildworld/buildkernel on a powerpc64 targeting itself via = lang/powerpc64-xtoolchain-gcc (a.k.a. lang/powerpc64-gcc for the most = part). [Getting that lang/powerpc64-gcc installed for self-hosted use = does take some work-around activity.] I have buildworld build clang (but = not use it). [I've been doing this with 11.0-CURRENT for a long time.] >>=20 >> Actually I use lang/gcc49 as the "system compiler" and = lang/powerpc64-gcc as the self-hosting so-called "cross compiler". (I = later list the src.conf content.) gcc4.2.1 is not installed. >>=20 >> Trying to go from: >>=20 >>> # uname -apKU >>> FreeBSD FBSDG5C0 11.0-CURRENT FreeBSD 11.0-CURRENT #36 r300531M: Mon = May 23 20:13:52 PDT 2016 = root@FBSDG5C0:/usr/obj/xtoolchain/powerpc.powerpc64/usr/src/sys/GENERIC64v= tsc-NODEBUG powerpc powerpc64 1100111 1100111 >>=20 >> (for which -r300531 built and installed fine this way) to -r300777 = now fails with errors such as: >>=20 >>> --- lib/libc++__L --- >>> In file included from = /usr/src/lib/libc++/../../contrib/libc++/include/iterator:346:0, >>> from = /usr/src/lib/libc++/../../contrib/libc++/include/memory:606, >>> from = /usr/src/lib/libc++/../../contrib/libc++/include/algorithm:628, >>> from = /usr/src/lib/libc++/../../contrib/libc++/src/algorithm.cpp:10: >>> /usr/src/lib/libc++/../../contrib/libc++/include/iosfwd:176:14: = error: 'mbstate_t' was not declared in this scope >>> typedef fpos streampos; >>> ^ >=20 > This is hopefully fixed by r300873 now. Can you please verify? >=20 > -Dimitry buildworld/buildkernel started, based on -r300875 for powerpc64 under/on = powerpc64 FreeBSD via lang/powerpc-xtoolchain-gcc as the so-called = "cross compiler". If it completes successfully it takes about 8 hours = for what I normally include in such builds. I've also started a clang-based buildworld for powerpc (non-64) under = powerpc FreeBSD as a cross check. (This environment involves work = arounds, such as changes to signal delivery to avoid clang's code = generation ABI violations in its stack handling. A clang based = buildkernel would not complete so I would use a separate gcc 4.2.1 = kernel build to get an overall system.) =3D=3D=3D Mark Millard markmi at dsl-only.net