Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2010 10:46:58 +0200
From:      Roman Divacky <rdivacky@freebsd.org>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: ClangBSD build failures
Message-ID:  <20100427084658.GA37139@freebsd.org>
In-Reply-To: <20100427084211.GA36551@freebsd.org>
References:  <4BD68275.6020509@bsdforen.de> <20100427070835.GB16910@freebsd.org> <4BD6A28F.1060600@bsdforen.de> <20100427084211.GA36551@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I see whats going on... you have CC=cc and CXX=c++ in your share/mk/sys.mk
and the "c++" is clang thus the 

.if ${CC} == "clang" || ${CXX} == "clang++"
MMINTRIN_CLANG= -isystem ${WORLDTMP}/usr/include/clang/1.5
.endif

condition does not add the -isystem thus the gcc mmintrin.h is used.

you have to change the share/mk/sys.mk to have CC/CXX either "gcc/g++"
or "clang/clang++"

I have to think of some better way to test this as this proves way
too fragile :(

thnx for the report!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100427084658.GA37139>