From owner-freebsd-ppc@FreeBSD.ORG Sat Jun 21 02:38:42 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A38581D8 for ; Sat, 21 Jun 2014 02:38:42 +0000 (UTC) Received: from asp.reflexion.net (outbound-246.asp.reflexion.net [69.84.129.246]) (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 40FBF2447 for ; Sat, 21 Jun 2014 02:38:41 +0000 (UTC) Received: (qmail 31635 invoked from network); 21 Jun 2014 02:31:59 -0000 Received: from unknown (HELO mail-cs-03.app.dca.reflexion.local) (10.81.19.3) by 0 (rfx-qmail) with SMTP; 21 Jun 2014 02:31:59 -0000 Received: by mail-cs-03.app.dca.reflexion.local (Reflexion email security v7.20.4) with SMTP; Fri, 20 Jun 2014 22:31:59 -0400 (EDT) Received: (qmail 7536 invoked from network); 21 Jun 2014 02:31:58 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (DHE-RSA-AES256-SHA encrypted) SMTP; 21 Jun 2014 02:31:58 -0000 X-No-Relay: not in my network Received: from [192.168.10.102] (c-71-59-195-4.hsd1.or.comcast.net [71.59.195.4]) by iron2.pdx.net (Postfix) with ESMTPSA id 91C841C4390 for ; Fri, 20 Jun 2014 19:31:52 -0700 (PDT) From: Mark Millard Message-Id: <492B39F0-BB51-469A-90FE-DBE4F4A81B87@dsl-only.net> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: PowerPC Packages [boost vs. libc++ apparently being missing at the time] Date: Fri, 20 Jun 2014 19:31:57 -0700 References: <8C621F9D-6AAD-4CCC-BE2F-0EEEDC433FCB@dsl-only.net> <5AD2392C-AA99-40AA-94EC-2AE6EFCEA874@dsl-only.net> To: freebsd-ppc@freebsd.org In-Reply-To: <5AD2392C-AA99-40AA-94EC-2AE6EFCEA874@dsl-only.net> 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: Sat, 21 Jun 2014 02:38:42 -0000 For the following boost build error (the first) I think the explanation = is simply that /usr/lib/libc++.* is not being built with clang from = /usr/src/contrib/libc++/... and installed first. clang is required for = this build because the gcc vintage (compiler and C++ library) that = FreeBSD is stuck at is too old to handle C++11 and its library and = libc++ is modern and requires C++ 11. And boost apparently requires = clang contexts to be using c++11 and c++11's library. > Building boost-libs-1.55.0_2.txz (origin = /buildshare/ports/355755/devel/boost-libs) for powerpc-10-0 on XXX > ... > clang-linux.compile.c++.without-pch = bin.v2/libs/atomic/build/clang-linux-3.3/release/threading-multi/lockpool.= o > clang-linux.link.dll = bin.v2/libs/atomic/build/clang-linux-3.3/release/threading-multi/libboost_= atomic.so.1.55.0 > /usr/bin/ld: cannot find -lc++ > clang++: error: linker command failed with exit code 1 (use -v to see = invocation) =46rom https://wiki.freebsd.org/NewC++Stack are notes about this for 9.X = and 10.0 where clang is not yet the default compiler: > ... They were merged into 9-STABLE prior to 9.1 and are in 9.1 and = later, but libc++ is not built by default in 9.x. They are all built by = default in 10.0, replacing their GNU equivalents, on any platforms where = clang is the default compiler. Our old GCC is not capable of building = libc++ (which uses C++11 internally), so this stack is not built by = default on other architectures. As far as I can tell technically /lib/libcxxrt.* (with its symbolic link = in /usr/lib/) and then clang's/llvm's /usr/lib/libc++.* should be built = and in place before trying hosted-implementation C++11 compiles with = clang. (Freestanding C++11 implementations instead have an = implementation defined set of C++ libraries and so /usr/lib/libc++.* = need not be involved.) The lack of /usr/lib/libc++.* for = powerpc/powerpc64 would seem to be the issue for the above. i386 and = amd64 for 10.0-RELEASE (and later) have /usr/lib/libc++.* in place as = required and do not have this problem from what I can tell. [I'm away from the PowerMac's so I can not cross check everything = currently. Sorry if that means that I've made any mistakes above.] =3D=3D=3D Mark Millard markmi at dsl-only.net