clang buildworld broken

James james at hicag.org
Sat Mar 24 16:09:50 UTC 2012


On Sat, Mar 24, 2012 at 10:17 AM, Dennis Glatting <freebsd at pki2.com> wrote:
> I csup RELENG_9 last night and compiled /usr/src and clang is
> erroring out:

    Hi Dennis. I get the same error and am testing a correction right
    now. The problem is related to improvements to boot2 in r233374
    (MFC of r232570 and r232754). It has the side-effect of making the
    binary just a wee too large for the BTX link to succeed. r232754
    contains a change not MFCd to stable/9:

    Index: bsd.sys.mk
    ===================================================================
    --- bsd.sys.mk	(revision 232753)
    +++ bsd.sys.mk	(revision 232754)
    @@ -100,8 +100,10 @@

     .if ${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang"
     CLANG_NO_IAS	=	-no-integrated-as
    -CLANG_OPT_SMALL	=	-mllvm -stack-alignment=8 -mllvm -inline-threshold=3 \
    -			-mllvm -enable-load-pre=false
    +CLANG_OPT_SMALL	=	-mllvm -stack-alignment=8 \
    +			-mllvm -inline-threshold=3 \
    +			-mllvm -enable-load-pre=false \
    +			-mllvm -simplifycfg-dup-ret
     .endif

     .if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "ia64" && \

    It's likely this with get it shrunk down enough.

-- 
James.


More information about the freebsd-questions mailing list