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

Mark Millard markmi at dsl-only.net
Thu Mar 12 22:44:52 UTC 2015


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 at 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=clang-cpp
CC=clang
CXX=clang++
#CFLAGS+=-DELF_VERBOSE
#WITH_DEBUG_FILES=
#WITHOUT_CLANG


===
Mark Millard
markmi at dsl-only.net



More information about the freebsd-ppc mailing list