From owner-freebsd-ppc@FreeBSD.ORG Mon Jun 30 07:55:10 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1DC5D4 for ; Mon, 30 Jun 2014 07:55:10 +0000 (UTC) Received: from asp.reflexion.net (outbound-245.asp.reflexion.net [69.84.129.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7DA7E28E0 for ; Mon, 30 Jun 2014 07:55:09 +0000 (UTC) Received: (qmail 12323 invoked from network); 30 Jun 2014 07:55:08 -0000 Received: from unknown (HELO mail-cs-04.app.dca.reflexion.local) (10.81.19.4) by 0 (rfx-qmail) with SMTP; 30 Jun 2014 07:55:08 -0000 Received: by mail-cs-04.app.dca.reflexion.local (Reflexion email security v7.30.3) with SMTP; Mon, 30 Jun 2014 03:55:08 -0400 (EDT) Received: (qmail 19866 invoked from network); 30 Jun 2014 07:55:07 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (DHE-RSA-AES256-SHA encrypted) SMTP; 30 Jun 2014 07:55:07 -0000 X-No-Relay: not in my network Received: from [192.168.1.8] (c-98-246-178-138.hsd1.or.comcast.net [98.246.178.138]) by iron2.pdx.net (Postfix) with ESMTPSA id 731E61C43A2 for ; Mon, 30 Jun 2014 00:55:06 -0700 (PDT) From: Mark Millard Subject: powerpc64 10.0-STABLE uses -mlongcall , -mcall-aixdesc , and -Wa, -many --none of which does clang 3.4.1 support Message-Id: <7AB6B15C-2FB0-41A5-915D-ADEC175D78B8@dsl-only.net> Date: Mon, 30 Jun 2014 00:55:06 -0700 To: freebsd-ppc@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) X-Mailer: Apple Mail (2.1878.2) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2014 07:55:10 -0000 buildworld uses -mlongcall for /usr/src/lib/csu/powerpc64/ and so clang = 3.4.1 stops there. buildkernel uses -mcall-aixdesc and -Wa,-many for = /usr/obj/usr/src/sys/GENERIC64/ and so clang stops there as well. Technique of discovery: Starting from FreeBSD-10.0-STABLE-powerpc-powerpc64-20140622-r267746-disk1.iso [with /usr/ports/Mk/Uses/compiler.mk still reverted so it does not avoid = clang so much --but I'v not gotten to devel/boost-all testing yet] and with /etc/make.conf being: CPP=3Dclang-cpp CC=3Dclang CXX=3Dclang++ then following script tries buildworld and buildkernel: #!/bin/sh rm -fr /usr/obj/* # # Presume a free-standing clang c++ is available for bootstrapping: # One is in 10.0-STABLE for the specifics here. # # Convert to having hosted implementation material in place. # cd /usr/src/lib/libcxxrt make clean make make install # cd /usr/src/lib/libc++ make clean make make install # # Then with the hosted implementation in place... # make buildworld make buildkernel In essence: it bootstraps from a freestanding clang based c++ = implementation to a hosted c++ implementation before any other possible = other uses of the c++ compiler (including before llvm and/or clang are = rebuilt: They require a hosted implementation.). libcxxrt and libc++ built without reporting errors. The lack of && = between make buildworld and make buildkernel allowed the script file to = show where both stopped: I was more interested in that information than = continuing to build without starting over. I will probably see what happens if I repeat my boost-all experiment: = rebuild all the prerequisites in this context and then retry boost-all = (if it it gets that far). That would mean that icu had been built by = clang (if it is successful). =3D=3D=3D Mark Millard markmi@dsl-only.net