From: Jens <jensl@laas.mine.nu>
To: musl@lists.openwall.com
Subject: Re: question about xmmintrin.h
Date: Fri, 7 Jun 2013 15:33:05 +0200 (CEST) [thread overview]
Message-ID: <alpine.LNX.2.10.1306071528200.346@laas.mine.nu> (raw)
In-Reply-To: <20130607011216.GM29800@brightrain.aerifal.cx>
On Thu, 6 Jun 2013, Rich Felker wrote:
> On Thu, Jun 06, 2013 at 10:52:48PM +0200, Szabolcs Nagy wrote:
>> * Jens <jensl@laas.mine.nu> [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
>
>
prev parent reply other threads:[~2013-06-07 13:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 17:50 Jens
2013-06-06 20:52 ` Szabolcs Nagy
2013-06-07 1:12 ` Rich Felker
2013-06-07 13:33 ` Jens [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.10.1306071528200.346@laas.mine.nu \
--to=jensl@laas.mine.nu \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).