Note that there are some explanatory texts on larger screens.

plurals
  1. POBuilding GCC 4.8.2 in OS X 10.9
    text
    copied!<p>I'm trying to compile and install GCC 4.8.2 in OS X 10.9. I followed the instructions here (<a href="http://gcc.gnu.org/wiki/InstallingGCC" rel="nofollow">http://gcc.gnu.org/wiki/InstallingGCC</a>) to first run <code>./contrib/download_prerequesites</code> and then ran configure and make from a directory different from the source. My build fails with error:</p> <pre><code>checking for suffix of object files... configure: error: in `/Users/prokilogrammer/temp/gcc-build482/x86_64-apple-darwin13.0.2/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. </code></pre> <p>Apparently this problem would be solved if GCC's dependencies (GMP, MPC, MPFR) are properly installed (<a href="http://gcc.gnu.org/wiki/FAQ#configure_suffix" rel="nofollow">http://gcc.gnu.org/wiki/FAQ#configure_suffix</a>). I checked and made sure they are correctly installed under /usr/local/lib &amp; /usr/local/include directories. </p> <p>Looking at config.log, I see the following errors:</p> <pre><code>configure:3565: checking for suffix of object files configure:3587: /Users/prokilogrammer/temp/gcc-build482/./gcc/xgcc -B/Users/prokilogrammer/temp/gcc-build482/./gcc/ -B/usr/local/x86_64-apple-darwin13.0.2/bin/ -B/usr/local/x86_64-apple-darwin13.0.2/lib/ -isystem /usr/local/x86_64-apple-darwin13.0.2/include -isystem /usr/local/x86_64-apple-darwin13.0.2/sys-include -c -g -O2 conftest.c &gt;&amp;5 conftest.c:1:0: internal compiler error: Segmentation fault: 11 /* confdefs.h */ ^ libbacktrace could not find executable to open </code></pre> <p>I am not sure if the segfault is because of the missing dependencies or a legit issue in gcc. </p> <p>Have you guys experienced similar problems? Is there a solution/workaround?</p> <p>PS: I have also tried setting LD_LIBRARY_PATH &amp; DYLD_LIBRARY_PATH without any luck.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload