<div dir="ltr">I am surprised that it even worked at all in the first case; last I heard, FSF GCC did not support multiple `-arch` flags at all...<div>See gcc docs here: <a href="http://gcc.gnu.org/onlinedocs/gcc/Darwin-Options.html" rel="noreferrer">http://gcc.gnu.org/onlinedocs/gcc/Darwin-Options.html</a></div>

<div><br></div><div>The code that the Apple version of gcc uses to support multiple arch flags can be found here: <a href="http://opensource.apple.com/source/gcc/gcc-5666.3/driverdriver.c" rel="noreferrer">http://opensource.apple.com/source/gcc/gcc-5666.3/driverdriver.c</a></div>

<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 11, 2014 at 12:53 PM, Andrew Jaffe <span dir="ltr">&lt;<a href="mailto:a.h.jaffe@gmail.com" target="_blank">a.h.jaffe@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to get a recent version of gcc 4.8.2 up on my machine.<br>
<br>
For a minimal source file, I get errors depending on the order of the -arch flags. (I have used +universal, although in fact some of these same errors occur even without that, strangely)<br>
<br>
Specifically,  `-arch x86_64 -arch i386` (or either of them alone) works:<br>
<br>
    % /opt/local/bin/gcc-mp-4.8 -arch x86_64 -arch i386 conftest.c<br>
    % /opt/local/bin/gcc-mp-4.8 -arch x86_64 -arch i386 -O3 conftest.c<br>
<br>
But `-arch i386 -arch x86_64` fails:<br>
<br>
    % /opt/local/bin/gcc-mp-4.8 -arch i386 -arch x86_64 conftest.c<br>
    /var/folders/6l/<u></u>7gzvw1zs42sbhj7_<u></u>hlrpykfm0000gv/T//cc6JCBdP.s:<u></u>5:bad register name `%rbp&#39;<br>
    /var/folders/6l/<u></u>7gzvw1zs42sbhj7_<u></u>hlrpykfm0000gv/T//cc6JCBdP.s:<u></u>7:bad register name `%rsp&#39;<br>
    /var/folders/6l/<u></u>7gzvw1zs42sbhj7_<u></u>hlrpykfm0000gv/T//cc6JCBdP.s:<u></u>10:bad register name `%rbp&#39;<br>
<br>
    % /opt/local/bin/gcc-mp-4.8 -arch i386 -arch x86_64 -O3 conftest.c<br>
<br>
/var/folders/6l/<u></u>7gzvw1zs42sbhj7_<u></u>hlrpykfm0000gv/T//ccs67E0q.s:<u></u>34:FATAL:Bad fx_size (0x8) in fix_to_relocation_info()<br>
<br>
Help! (Disclosure: I don&#39;t think this is strictly a macports problem: I get the same issue using the gcc that comes with a /usr/local binary install of gfortran.)<br>
<br>
The minimal source:<br>
<br>
     int main ()<br>
     {<br>
      return 0;<br>
     }<br>
<br>
For info:<br>
<br>
    % /opt/local/bin/gcc-mp-4.8 --version<br>
    gcc-mp-4.8 (MacPorts gcc48 4.8.2_0+universal) 4.8.2<br>
    Copyright (C) 2013 Free Software Foundation, Inc.<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
macports-users mailing list<br>
<a href="mailto:macports-users@lists.macosforge.org" target="_blank">macports-users@lists.<u></u>macosforge.org</a><br>
<a href="https://lists.macosforge.org/mailman/listinfo/macports-users" target="_blank">https://lists.macosforge.org/<u></u>mailman/listinfo/macports-<u></u>users</a><br>
</blockquote></div><br></div>