Jenkins build is still unstable: FreeBSD_HEAD #564

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Mon Aug 29 18:12:25 UTC 2016


> On Aug 29, 2016, at 11:10, Ngie Cooper (yaneurabeya) <yaneurabeya at gmail.com> wrote:

…

> 	Ok, found a likely culprit: lib/clang/include/clang/Config/config.h. DEFAULT_SYSROOT’s probably being stored in the compiler, somehow…
> Cheers,
> -Ngie
> 
> 24 /* Default <path> to all compiler invocations for --sysroot=<path>. */
> 25 /* #undef DEFAULT_SYSROOT */
> 
> $ grep -r DEFAULT_SYSROOT lib/clang/
> lib/clang/include/clang/Config/config.h:/* #undef DEFAULT_SYSROOT */
> lib/clang/clang.build.mk:               -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\”
> $ cc -print-search-dirs
> programs: =/usr/bin
> libraries: =/usr/bin/../lib/clang/3.8.0:/usr/lib

	Yup. Here’s the smoking gun:

$ grep -r TOOLS_PREFIX Makefile*
Makefile.inc1:          TOOLS_PREFIX=${WORLDTMP} \
Makefile.inc1:XMAKE=            TOOLS_PREFIX=${WORLDTMP} ${BMAKE} \
Makefile.inc1:KTMAKE=           TOOLS_PREFIX=${WORLDTMP} MAKEOBJDIRPREFIX=${WORLDTMP} \
Makefile.inc1:# The internal bootstrap compiler has a default sysroot set by TOOLS_PREFIX
Makefile.inc1:  TOOLS_PREFIX=${XDTP}

	TOOLS_PREFIX needs to be set to the system path when compiling the copy of clang that goes into /usr/bin.
Thanks,
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-testing/attachments/20160829/776c98b6/attachment.sig>


More information about the freebsd-testing mailing list