<div dir="ltr"><div><div>hi Ryan, yeah cleaning the directory fixed the problem, the second time it build and installed correctly.<br><br></div>However, I don&#39;t see a &quot;clang&quot; executable. I only see this in /opt/local/bin<br><br>Macintosh-2:build jchung$ ls -l /opt/local/bin/clang*<br>-rwxr-xr-x  1 root  wheel  62 Dec 24 11:55 /opt/local/bin/clang++-mp-3.4<br>-rwxr-xr-x  1 root  wheel  79 Dec 24 11:55 /opt/local/bin/clang-apply-replacements-mp-3.4<br>-rwxr-xr-x  1 root  wheel  67 Dec 24 11:55 /opt/local/bin/clang-format-mp-3.4<br>-rwxr-xr-x  1 root  wheel  70 Dec 24 11:55 /opt/local/bin/clang-modernize-mp-3.4<br>-rwxr-xr-x  1 root  wheel  60 Dec 24 11:55 /opt/local/bin/clang-mp-3.4<br><br></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><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>here&#39;s the contents of test.c<br><br>Macintosh-2:build jchung$ cat test.c<br>#include &lt;stdio.h&gt;<br>main() {<br> printf(&quot;Hello World\n&quot;);<br>}<br>Macintosh-2:build jchung$ <br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 23, 2015 at 2:42 PM, Ryan Schmidt <span dir="ltr">&lt;<a href="mailto:ryandesign@macports.org" target="_blank">ryandesign@macports.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On Dec 23, 2015, at 12:38 AM, John T. Chung &lt;<a href="mailto:jchung@nyquest.com">jchung@nyquest.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Ryan, thanks for the reply.<br>
&gt; I can rebuild it, if needed, but since it took about 48 hours. I&#39;d prefer to avoid it if possible,<br>
&gt;<br>
&gt; If this was built on my local system, do you know where the staging directory possibly might be?<br>
&gt; I was just going to see if I can construct that archive manually.<br>
<br>
</span>Have you solved whatever problem caused the I/O error? That&#39;s the first thing to do. If your disk is having a hardware failure, it needs to be replaced. If the disk is corrupted, it needs to be repaired. If the disk is full, more space needs to be made available.<br>
<br>
If you haven&#39;t yet run &quot;sudo port clean clang-3.4&quot;, the staging directory is the directory called &quot;destroot&quot; inside the directory identified by running the command &quot;port work clang-3.4&quot;.<br>
<br>
You should not attempt to create the archive manually. Rather, get MacPorts to recreate it.<br>
<br>
For example, run &quot;sudo port uninstall clang-3.4&quot;, then run &quot;sudo port install clang-3.4&quot;. This should use the existing destroot directory to make and install a new archive.<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><font size="2"><i><b><span style="font-family:times new roman,serif">John Chung</span><br style="font-family:times new roman,serif"><span style="font-family:times new roman,serif">Technology Architect</span><br style="font-family:times new roman,serif"><span style="font-family:times new roman,serif">Nyquest Consulting</span><br style="font-family:times new roman,serif"><span style="font-family:times new roman,serif"><a href="http://www.nyquest.com" target="_blank">http://www.nyquest.com</a></span><br style="font-family:times new roman,serif"><span style="font-family:times new roman,serif">Mobi<font size="2">le 419.464.9637 Office: </font>419.973.9072</span></b></i></font><br></div>
</div>