From owner-freebsd-current@FreeBSD.ORG Tue Apr 27 09:07:51 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A7561065672; Tue, 27 Apr 2010 09:07:51 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id B51238FC34; Tue, 27 Apr 2010 09:07:50 +0000 (UTC) Received: from mobileKamikaze.norad (unknown [188.46.73.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id B144B8A1BC9; Tue, 27 Apr 2010 11:07:20 +0200 (CEST) Message-ID: <4BD6A943.8010807@bsdforen.de> Date: Tue, 27 Apr 2010 11:07:15 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: Roman Divacky References: <4BD68275.6020509@bsdforen.de> <20100427070835.GB16910@freebsd.org> <4BD6A28F.1060600@bsdforen.de> <20100427084211.GA36551@freebsd.org> <20100427084658.GA37139@freebsd.org> In-Reply-To: <20100427084658.GA37139@freebsd.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: ClangBSD build failures X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2010 09:07:51 -0000 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?