<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 5, 2014 at 1:17 AM, Michel Alexandre Salim <span dir="ltr">&lt;<a href="mailto:salimma@fedoraproject.org" target="_blank">salimma@fedoraproject.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
On 02/03/2014 10:31 PM, Dave Johansen wrote:<br>
&gt; On Sun, Feb 2, 2014 at 7:58 PM, Dave Johansen<br>
</div><div><div class="h5">&gt; &lt;<a href="mailto:davejohansen@gmail.com">davejohansen@gmail.com</a> &lt;mailto:<a href="mailto:davejohansen@gmail.com">davejohansen@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt; The EL6 build of llvm 3.4 is currently in testing and it was just<br>
&gt; pointed out that there&#39;s a potential issue with the build (<br>
&gt; <a href="https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-0264/llvm-3.4-5.el6" target="_blank">https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-0264/llvm-3.4-5.el6</a><br>
&gt;<br>
&gt;<br>
).<br>
&gt;<br>
&gt; If you examine the build.log (<br>
&gt; <a href="http://kojipkgs.fedoraproject.org//work/tasks/593/6470593/build.log" target="_blank">http://kojipkgs.fedoraproject.org//work/tasks/593/6470593/build.log</a><br>
&gt;<br>
&gt;<br>
) It looks like the include path is being included twice and that&#39;s<br>
&gt; causing the warning about the invalid host type. Is there<br>
&gt; something wrong with the .spec file? Or is there something I can do<br>
&gt; to fix/prevent this issue?<br>
&gt;<br>
&gt; Thanks, Dave<br>
&gt;<br>
&gt;<br>
&gt; I was able to get a hold of the original submitter of the issue and<br>
&gt; the issue is because of the multiple paths that exist on EL6.<br>
&gt; Here&#39;s his explanation and recommended solution:<br>
&gt;<br>
&gt;&gt; $ echo /usr/lib/gcc/x86_64*/*/include<br>
&gt;&gt; /usr/lib/gcc/x86_64-redhat-linux/4.4.4/include<br>
&gt; /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include<br>
&gt;&gt;<br>
&gt;&gt; EL6 originally had gcc-4.4.4 and gcc-4-4.7 still has the old<br>
&gt;&gt; path<br>
&gt; included for compatibility. Because of the space inbetween<br>
&gt; configure thinks /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include is<br>
&gt; a host type.<br>
&gt;&gt;<br>
&gt;&gt; The files in /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include have<br>
&gt; nothing to do with C++. Clang has own versions of these files in<br>
&gt; /usr/lib/clang/3.4/include.<br>
&gt;&gt;<br>
&gt;&gt; Therefore it should just be<br>
&gt;&gt; --with-c-include-dirs=%{_includedir},<br>
&gt; which is also the default if you specify nothing.<br>
&gt;&gt;<br>
&gt;&gt; C++ headers and runtime libs from gcc are selected by clang at<br>
&gt;&gt; runtime:<br>
&gt;&gt;<br>
&gt;&gt; $ clang -v clang version 3.4 (tags/RELEASE_34/final) Target:<br>
&gt;&gt; x86_64-redhat-linux-gnu Thread model: posix Found candidate GCC<br>
&gt;&gt; installation: /usr/lib/gcc/x86_64-redhat-linux/4.4.4 Found<br>
&gt;&gt; candidate GCC installation:<br>
&gt;&gt; /usr/lib/gcc/x86_64-redhat-linux/4.4.7 Selected GCC installation:<br>
&gt;&gt; /usr/lib/gcc/x86_64-redhat-linux/4.4.7<br>
</div></div><div class="im">&gt; So my question is if the same sort of change also needs to be made<br>
&gt; in the Fedora .spec file that the EL6 one is based on.<br>
&gt;<br>
</div>On Fedora there is no compatibility symlink; IIRC the<br>
00with-c-include-dirs was added (by myself) because at the time LLVM<br>
and Clang&#39;s detection routines were less reliable (there was a list of<br>
GCC versions it knows about, and if the version installed is newer -<br>
as is likely at every Fedora cycle - it breaks, unless the include<br>
directory is manually specified)<br>
<br>
I&#39;m no longer routinely involved in LLVM maintenance, but agree that<br>
it might be worth re-checking the Fedora .spec.<br></blockquote><div><br></div><div>I don&#39;t have a machine with rawhide available at the moment, but it sounds like this is worth looking into.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


I&#39;ll try rebuilding Pure once the LLVM update lands - does Clang now<br>
ship a complete set of C++ headers as well? That was a sticking point<br>
earlier as the headers shipped by GCC in EL6 is too old for newer<br>
versions of LLVM-targeting apps.<br></blockquote></div><br></div><div class="gmail_extra">I&#39;m not familiar with Pure, but apparently the newest version doesn&#39;t work with the glibc that&#39;s available on EL6 ( see <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1058472">https://bugzilla.redhat.com/show_bug.cgi?id=1058472</a> ), so it&#39;s just obsoleted by the llvm 3.4 package for the time being.<br>
<br></div><div class="gmail_extra">libc++ is complete ( <a href="http://libcxx.llvm.org/">http://libcxx.llvm.org/</a> ) and I&#39;ve been wondering if the EL6 llvm package should ship with them just so the C+11/14 stuff will work, but are there going to be any issues with that?<br>
</div><div class="gmail_extra"><br><br>One other issue is that I had to make the following change to get libffi support working properly in EL6. I&#39;m not sure if the same change is needed on Fedora or not, but I just wanted to throw it out there so that someone with a rawhide machine could see if this same change was need there as well.<br>
<a href="http://pkgs.fedoraproject.org/cgit/llvm.git/commit/?h=el6&amp;id=5b96b3dfff9ec6beaaa7d4fa7ee17a79cd58214c">http://pkgs.fedoraproject.org/cgit/llvm.git/commit/?h=el6&amp;id=5b96b3dfff9ec6beaaa7d4fa7ee17a79cd58214c</a><br>
</div></div>