From owner-freebsd-toolchain@FreeBSD.ORG Thu Mar 12 22:44:52 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 56291A7 for ; Thu, 12 Mar 2015 22:44:52 +0000 (UTC) Received: from asp.reflexion.net (outbound-241.asp.reflexion.net [69.84.129.241]) (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 F173C796 for ; Thu, 12 Mar 2015 22:44:51 +0000 (UTC) Received: (qmail 4690 invoked from network); 12 Mar 2015 22:44:50 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 12 Mar 2015 22:44:50 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.40.1) with SMTP; Thu, 12 Mar 2015 18:44:50 -0400 (EDT) Received: (qmail 11732 invoked from network); 12 Mar 2015 22:44:50 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (DHE-RSA-AES256-SHA encrypted) SMTP; 12 Mar 2015 22:44:50 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-67-189-19-145.hsd1.or.comcast.net [67.189.19.145]) by iron2.pdx.net (Postfix) with ESMTPSA id E547E1C4052; Thu, 12 Mar 2015 15:44:44 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Trying to bootstrap libc++ from 11.0-CURRENT with clang 3.4.1 still around from 10.1-STABLE: ld unable to build shared library libcxxrt.so.1 Message-Id: <02BBD42E-3326-4DCC-9A2E-243B680B4815@dsl-only.net> Date: Thu, 12 Mar 2015 15:44:48 -0700 To: FreeBSD PowerPC ML , freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Mailer: Apple Mail (2.2070.6) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 12 Mar 2015 22:44:52 -0000 Basic context (more listed at the end of the message): # freebsd-version -ku; uname -a 11.0-CURRENT 11.0-CURRENT FreeBSD FBSDG3C0 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r279514M: Mon Mar = 9 22:24:27 PDT 2015 = root@FBSDG4S0:/usr/obj/usr/srcC/sys/GENERICvtsc-NODEBUG powerpc The above powerpc (non-64) 11.0-CURRENT was bootstrapped from = 10.1-STABLE without doing "make delete-old" and the like. So there is a = clang 3.4.1 still in place but without libc++. No port-based compilers = installed, not even powerpc64-xtoolchain-gcc. (In my other copies of the 11.0-CURRENT bootstrap I had run delete-old = --before realizing the lack of a newer clang. I finally realized I had = one powerpc (non-64) snapshot from before "delete-old". So this note is = largely independent of the other notes I've sent in about when clang is = not available and trying to use powerpc64-xtoolchain-gcc to bootstrap = having clang.) The problem... In trying to bootstrap libc++ for clang into 11.0-CURRENT when it has = clang 3.4.1 from the 10.1-STABLE I started by trying to build libcxxrt = (which libc++ requires). So from /usr/src/lib/libcxxrt I tried: "make = clean && make". The result was... ... building shared library libcxxrt.so.1 /usr/bin/ld: warning: creating a DT_TEXTREL in a shared object. clang: error: linker command failed with exit code 1 (use -v to see = invocation) *** Error code 1 More context: # more /etc/src.conf CPP=3Dclang-cpp CC=3Dclang CXX=3Dclang++ #CFLAGS+=3D-DELF_VERBOSE #WITH_DEBUG_FILES=3D #WITHOUT_CLANG =3D=3D=3D Mark Millard markmi at dsl-only.net