https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082016-01-29T19:49:15ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #2878: [fix] CCVER problem when using clang and cpu extensions (intrinsics)https://bugs.dragonflybsd.org/issues/2878?journal_id=128302016-01-29T19:49:15Zarcade@b1t.namearcade@b1t.name
<ul><li><strong>Subject</strong> changed from <i>CCVER problem when using clang and cpu extensions (intrinsics)</i> to <i>[fix] CCVER problem when using clang and cpu extensions (intrinsics)</i></li></ul><p>Looks like CCVER configuration for clang misses a few things:</p>
<p>1. INCOPT needs "-isystem /usr/local/llvm37/lib/clang/3.7.1/include" as this is the place for files that clang needs to work with intrinsics.<br />2. INCOPTCXX needs "-cxx-isystem /usr/include/c++/5.0/backward" as libstdxx misses a few things (seen when compiling firefox).<br />3. gcc/gxx can be superseded too as some ports just hardcode compiler names. Thus:</p>
<pre><code>clang37_GCC=${clang37_CC}<br /> clang37_GXX=${clang37_CXX}</code></pre>
<p>As clang struggles to be mostly gcc compliant there's nothing bad with it probably.</p> DragonFlyBSD - Bug #2878: [fix] CCVER problem when using clang and cpu extensions (intrinsics)https://bugs.dragonflybsd.org/issues/2878?journal_id=128432016-03-15T11:46:07Zmarino
<ul></ul><p>"3. gcc/gxx can be superseded too as some ports just hardcode compiler names."</p>
<p>Any port that hardcodes "gcc" is wrong. that's considered a bug, even when GCC is specified for the port. If you find a port like that, open a PR at FreeBSD.</p> DragonFlyBSD - Bug #2878: [fix] CCVER problem when using clang and cpu extensions (intrinsics)https://bugs.dragonflybsd.org/issues/2878?journal_id=128542016-03-29T13:04:22Zarcade@b1t.namearcade@b1t.name
<ul></ul><p>Well, those ports are devel/clang* and www/firefox*. If lang/gcc is installed it shadows /usr/bin/gcc and thus CCVER doesn't works.</p> DragonFlyBSD - Bug #2878: [fix] CCVER problem when using clang and cpu extensions (intrinsics)https://bugs.dragonflybsd.org/issues/2878?journal_id=129262016-06-19T10:13:01Zdragonflybsd1
<ul></ul><p>i'll need to see an actual excerpt to understand what you mean. I don't know what you mean by "shadow". lang/gcc simply being installed doesn't affect anything.</p> DragonFlyBSD - Bug #2878: [fix] CCVER problem when using clang and cpu extensions (intrinsics)https://bugs.dragonflybsd.org/issues/2878?journal_id=129312016-06-24T11:25:21Zarcade@b1t.namearcade@b1t.name
<ul></ul><p>Can't remember correctly what was there. Probably Firefox redefined path so /usr/local/bin/gcc was selected first before /usr/bin/gcc.</p>