From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3402 Path: news.gmane.org!not-for-mail From: Jens Newsgroups: gmane.linux.lib.musl.general Subject: Re: question about xmmintrin.h Date: Fri, 7 Jun 2013 15:33:05 +0200 (CEST) Message-ID: References: <20130606205248.GE15710@port70.net> <20130607011216.GM29800@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1370611954 25724 80.91.229.3 (7 Jun 2013 13:32:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 13:32:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3406-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 07 15:32:35 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UkwmR-0001iz-My for gllmg-musl@plane.gmane.org; Fri, 07 Jun 2013 15:32:35 +0200 Original-Received: (qmail 26322 invoked by uid 550); 7 Jun 2013 13:32:33 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26314 invoked from network); 7 Jun 2013 13:32:33 -0000 In-Reply-To: <20130607011216.GM29800@brightrain.aerifal.cx> User-Agent: Alpine 2.10 (LNX 1266 2009-07-14) Xref: news.gmane.org gmane.linux.lib.musl.general:3402 Archived-At: On Thu, 6 Jun 2013, Rich Felker wrote: > On Thu, Jun 06, 2013 at 10:52:48PM +0200, Szabolcs Nagy wrote: >> * Jens [2013-06-06 19:50:46 +0200]: >>> >>> x264 wants the gcc include header xmmintrin.h. >>> >>> It seems like it is not picked up when using the musl-gcc wrapper. >>> >> >> yes the compiler provides some headers which should be available >> with musl-gcc >> >> as a workaround you may try >> >> CFLAGS="-isystem `musl-gcc -print-file-name=include`" > > The gcc include directory needs to be _after_ the libc include > directory in order not to interfere with the libc headers. I think > this could best be accomplished in the spec file for the wrapper. Thanks, modifying the spec file worked. *cpp_options: -nostdinc -isystem /opt/musl/include -isystem /usr/gcc/include %(old_cpp_options) *cc1: %(cc1_cpu) -nostdinc -isystem /opt/musl/include -isystem /usr/gcc/include Not sure if the entry in cpp_options is needed. Cheers, Jens > > By the way, the same order issue exists for native compilers. I just > rm the harmful gcc headers when installing, but it would be nice if > the patch for musl support in gcc could fix the include order so that > the libc include directory is searched before the gcc one rather than > after. > > Rich > >