Date: Thu, 12 Mar 2015 15:44:48 -0700 From: Mark Millard <markmi@dsl-only.net> To: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, freebsd-toolchain@freebsd.org 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>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02BBD42E-3326-4DCC-9A2E-243B680B4815>