<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 23, 2015 at 11:59 PM, John T. Chung <span dir="ltr">&lt;<a href="mailto:jchung@nyquest.com" target="_blank">jchung@nyquest.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>However, I don&#39;t see a &quot;clang&quot; executable. I only see this in /opt/local/bin</div></div></div></blockquote><div><br></div><div>We support multiple clang versions that can be uinstalled concurrently. If you want to use this version as clang then you want &quot;port select&quot;:</div><div><br></div><div>    sudo port select --set clang mp-clang-3.4</div><div><br></div><div>(use &quot;port select --list clang&quot; to see what versions are available)</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I assumed the compiler would be clang-mp-3.4 but when I attempted to compile a &quot;HELLO WORLD&quot; C program, I got this:<br></div><br>Macintosh-2:build jchung$ clang-mp-3.4 test.c<br>test.c:2:1: warning: type specifier missing, defaults to &#39;int&#39; [-Wimplicit-int]<br>main() {<br>^~~~<br>1 warning generated.<br>gcc: error: unrecognized command line option &#39;-arch&#39;<br>clang: error: assembler (via gcc) command failed with exit code 1 (use -v to see invocation)<br><br>why is it still calling &quot;gcc&quot;<br></div></blockquote><div><br></div><div>Because the compiler itself produces assembly language, and the only way it knows how to run an assembler on your system to convert that to object code is via Apple&#39;s gcc. But it sounds like it&#39;s using it incorrectly, or you have a &quot;gcc&quot; installed somewhere that does not support Apple&#39;s additions.</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>