Date: Tue, 27 Apr 2010 11:07:15 +0200 From: Dominic Fandrey <kamikaze@bsdforen.de> To: Roman Divacky <rdivacky@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: ClangBSD build failures Message-ID: <4BD6A943.8010807@bsdforen.de> In-Reply-To: <20100427084658.GA37139@freebsd.org> References: <4BD68275.6020509@bsdforen.de> <20100427070835.GB16910@freebsd.org> <4BD6A28F.1060600@bsdforen.de> <20100427084211.GA36551@freebsd.org> <20100427084658.GA37139@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27/04/2010 10:46, Roman Divacky wrote: > 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 Actually I set CC and CXX in the environment. The definition in sys.mk is CC?=, so it shouldn't be a problem. > .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 :( Thanks a lot for your quick analysis. I already changed my test script to gcc and g++. Though I didn't think it would have an effect, I figured sticking to the guide would generally be a good idea. I didn't rerun the test, though. I have to wait for the night, when the machine is not in use. Anyway, thank you for figuring this out so quickly. It would seriously have confused me that it would start working for no apparent reason and I'd probably have blamed my hardware. > thnx for the report! I'm working on a small clang introductory paper, and some self-performed test seemed like the necessary salt, to give it the right flavour. If you're interested I can notify you or the entire list, when it's done. Regards -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD6A943.8010807>