The version 0.4 installs invalid headers. For example, every file in the folder /usr/local/include/cling/Interpreter/ looks like this: > #!/bin/sh > # $FreeBSD: head/lang/cling/files/llvm-wrapper.sh.in 454856 2017-11-24 23:17:50Z dbaio $ > > LLVM_PREFIX="/usr/local/llvm39_cern-root" > LLVM_SUFFIX="39_cern-root" > > tool=$(basename $0) > tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}" > LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \ > "${tool}" "${@}" And the files have a high link count, they look like hard links of each other.
It looks like these lines are the culprit: > .for file in ${CLING_FILES:C/^/XXXX/1:NXXXX*} > ${LN} -f ${STAGEDIR}${PREFIX}/${FIRST_FILE} ${STAGEDIR}${PREFIX}/${file} > .endfor They hard-link all headers to bin/cling (!).
New version is available: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230637
Fixed on r477226