Jenkins build is still unstable: FreeBSD_HEAD #564
Bryan Drewery
bdrewery at FreeBSD.org
Mon Aug 29 18:20:58 UTC 2016
On 8/29/2016 11:12 AM, Ngie Cooper (yaneurabeya) wrote:
>
>> 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
>
Trust me, you're wasting your time, this is not the problem. If it were
then _nothing_ would compile from the /usr/bin/cc compiler. It's only a
problem with running the ATF tests which means it is likely storing the
flags it is built with somewhere and reusing them.
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-testing/attachments/20160829/d6b08a23/attachment.sig>
More information about the freebsd-testing
mailing list