Tagged Questions

GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and older versions of OS X.

learn more… | top users | synonyms

0
votes
0answers
29 views

building gcc 4.9.2 with Java enabled; command top_builddir not found

Building gcc fails if Java is enabled and the command make is run from another make file (an automation script). The process run smoothly if Java is either not enabled or when i goto build directory ...
2
votes
1answer
101 views

GCC : Command not found

I'm very new to Mac and right now my operating system is 10.10 Yosemite. I installed XCode and Xcode CLT, gcc came along with it as well. I was asked to change the default compiler to gcc. I went ...
1
vote
0answers
28 views

MAC HPC GNU or MAC PORT GNU

I have been using the gcc compiler from http://hpc.sourceforge.net/index.php for 6 years. Unfortunately they are not using the most up to date compiler. I have already installed gcc 4.8.3 from mac ...
1
vote
3answers
2k views

Issue installing GCC using homebrew (scipy package dependency)

I am attempting to install the scipy (Scientific Python, including matplotlib) package using homebrew, and I noticed that it fails when it needs to install a dependency (gcc version 4.9.0). I ...
0
votes
0answers
60 views

OSX 10.9: GCC standalone (non-admin)

I have a Mac Mini at home, with my own administrator account. My school provides MacBook Airs. I have XCode installed on the Mini, but I only use the command line extensions-- GCC, G++, etc. I don't ...
1
vote
1answer
159 views

Compile error OSX

I'm trying to compile a program called PEAR enter link description here and seems there is something wrong at this step. I have Xcode installed. Thanks for your help, Bernardo ...
0
votes
1answer
64 views

Can I compile mpich 3 with gcc 4.9 on Mavericks?

I am trying to compile mpich 3 on a Mac Pro with Mavericks using gcc 4.9. Has any one had luck doing this? My machine is hanging on configure step.
0
votes
2answers
298 views

switch back to clang after installing gcc through Macports on Mavericks

After I installed Macports (and after that I have installed several versions of gcc through Macports), whenever I type gcc, one of those gcc installed through Macports will be invoked. Before I ...
0
votes
0answers
45 views

how to build mysqlsniffer in os x 10.9

I'm trying to build that (hackmysql.com/code/mysqlsniffer.tgz) in my mac. I see only errors during compilation. I understand that is because of some gcc keys/options. Based on Google search i've ...
2
votes
1answer
3k views

C compiler with openmp support on Mavericks via Homebrew

I need to have a C compiler with openmp support. I installed gcc49 via Homebrew but still the configure script of the library I like to install (nfft) complains: You don't seem to have a C compiler ...
2
votes
4answers
15k views

Install gcc to mac via Terminal

I have installed Xcode and the command line tools from the Mac Developers website, which I have read a few times is a prerequisite. I also installed the MacPorts program. In terminal: sudo port ...
0
votes
2answers
1k views

How do I install GCC and make on a mac without administrator access or using Xcode?

I'd like to install gcc and make on my Macbook Air, but I don't have root access on it. I found this link through searching on google, but I have no idea how to set up the prefix's so that the actual ...
1
vote
0answers
1k views

<omp.h> library isn't found in the GCC version (4.2.1) in Mavericks [closed]

I have a problem with GCC. I want to update it to a new version, from the 4.2.1, to program with parallel programming. However, in this version there is not the library <omp.h>. How can I ...
1
vote
1answer
128 views

Wine on Mac via Homebrew

I installed a Windows application on my Mac after successfully installing Wine via Homebrew. The application runs and seems to function correctly except that all of my data is missing. I get the ...
0
votes
1answer
374 views

GCC 4.7 (via brew) keeps including from “/usr/include/c++/4.2.1”

This one is driving me crazy: I need to use lot of stuff which simply does not compile with the standard clang/llvm compilers which come with Xcode 5 (on Mac OS X 10.8), so I decided to install gcc47 ...
2
votes
1answer
2k views

Uninstall OSX-gcc-installer without first installing Xcode

Is there a way that I can uninstall osx-gcc-installer without first having to install Xcode, then run sudo /Developer/Library/uninstall-devtools —mode=all ? I installed it on Mountain Lion, and I ...
3
votes
1answer
6k views

No GDB in the new Command Line Tools (OS X Mountain Lion) for Xcode - September 2013?

I've recently formatted my Mac and when I reinstalled the command line tools, I installed the new Command Line Tools (OS X Mountain Lion) for Xcode - September 2013. I've just typed gdb in my ...
0
votes
1answer
2k views

Where to find ARM GCC compiler in XCODE5?

I am trying to run kivy on Mac and it relies on my Xcode arm gcc compiler. I already tryied to answer this question in a stackoverflow question but here I we again... Where to find the arm apple ...
1
vote
1answer
319 views

MacPorts: How do I make py32-scipy not depend on gcc48?

MacPorts has many unnecessary dependencies. I need to disable the dependency of py32-scipy on gcc48 because gcc48 won't build on my system for some reason. I get this error: (much information ...
5
votes
4answers
13k views

How to set gcc 4.8 as default gcc compiler

I recently installed gcc 4.8 using brew on OSX 10.7.5 (Lion). I can now compile using gcc 4.8 by using g++-4.8 some_file.c or using the default gcc 4.2 by using g++ some_file.c I want to use gcc ...
2
votes
2answers
2k views

What build flags are available for brew install of gcc?

I'm curious as to what build flags are available to me when installing gcc 4.8 using brew. This question explains how to install gcc 4.8 using brew, but only specifies two possible flags i.e ...
2
votes
1answer
79 views

What is the relationship between the OS release, the XCode release, and the default compiler?

If you run: 'cc --version' or 'c++ --version' on a modern OS X with XCode and the command line tools installed (in my case, Mountain Lion with XCode 4.6.x) you will see that the default C ...
1
vote
1answer
746 views

How do I specify what is used as the real C compiler?

I have a configure on Mountain Lion that's running into trouble: [snip] checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc checking whether the C ...
1
vote
1answer
658 views

Installing gcc47 as default using Homebrew

I'm trying to install gcc47 as my default compiler using homebrew. I can successfully install gcc47, but it adds a -4.7 suffix on all of its binaries. If I try to symlink it in /usr/local/bin things ...
3
votes
1answer
3k views

How to install g++-45 with Homebrew

I have installed gcc45 by using brew tap homebrew/versions & brew install gcc45. However, I can not find g++-4.5 in /usr/local/bin. How can I install g++-4.5 separately by Homebrew? Thanks. My ...
-1
votes
1answer
277 views

gcc vs. llvm, compiling c++ code, migrating from linux [closed]

i'm migrating from linux machine to mac os x. I was used to write c++ application (for opengl and opencv application mainly) using vim as editor. Now, i have installed XCode on a new 10.8 mac os x ...
1
vote
0answers
279 views

Problems with gdb 7.5.1 debugging executable built via g++ 4.7.2 [closed]

I've been updating my Mac toolchain in order to take advantage of C++11 features and eventually get pretty-print debugging of STL data structures. I used Homebrew to build the gcc 4.7.2 compiler. I've ...
1
vote
2answers
453 views

How to compile gcc-4.0 on Mountain Lion?

So far I've successfully launched the configure, but when I type make, I get the following error, after some time (there's a lot which compile successfully): ld: unknown/unsupported architecture ...
0
votes
1answer
211 views

(new) Compiler for (old) XCode

My OS X does not allow me to update to current XCode software. With the new XCode and iOS SDK, the sourcecode is compiled with a newer compiler which has some new syntax options which are missing on ...
20
votes
2answers
10k views

How to compile mod_wsgi, mod_fastcgi, etc on Mountain Lion (Mavericks) by fixing `apxs:Error: Command failed with rc=65536`?

I've updated to OS X Mountain Lion. Update has removed all of my python and apache modules including mod_wsgi. Now I'm trying to recompile mod_wsgi (it compiled without problems on Lion). I use ...
8
votes
1answer
2k views

Why does it appear that I apparently “do not have access to Command Line Tools” in ML?

I just upgraded to Mountain Lion, and now gcc, make, g++, etc. are not found when trying to launch them in Terminal. So I went to Xcode Preferences, Downloads, and clicked "Install" next to Command ...
0
votes
2answers
5k views

Xcode update for 10.6.8

I would like to use a newer version of Xcode (current version on my system is 3.2.4) and the command line tools (gcc & make). I have tried to install Xcode through the Mac App Store, however I ...
1
vote
3answers
7k views

Where can I find gcc in Xcode 3.2.6?

I have a Mac with OS X 10.6.8 Snow Leopard. I'm trying very hard to learn the basics of programming in C, but I can't get my first simple program to run. I read online to go to Xcode Preferences -> ...
2
votes
2answers
4k views

Can Xcode compile C programs?

For the last couple of hours, I have been trying to find and install a gcc compiler so that I can compile C programs using eclipse C/C++ IDE. Eclipse doesn't come with a compiler, so I tried to find ...
5
votes
2answers
3k views

Which version of gcc is on Mountain Lion?

I am looking forward to migrate my c++ code to C++11, which might requires at least g++ 4.6. So what is the GCC installed on Mountain Lion?
7
votes
2answers
11k views

GCC not found, but Xcode is installed

I have Xcode installed, but when I type gcc in terminal I get "command not found". Maybe I messed up the $PATH variable? What is suposed to be the default value? EDIT: (...):/ imac2$ echo $PATH ...
10
votes
3answers
7k views

I installed Xcode but I still don't have gcc in my terminal

I just got a Mac and I'm a complete newbie, so this may be kind of a really easy question, but I wasn't able to solve it with Google or F1. I was trying to run a C program from the Terminal that ...
2
votes
0answers
252 views

C and C++ executables freeze in Lion, remotely hosted on Ubuntu box [closed]

I'm trying to compile and run some very simple C and C++ code in Lion. Compilation works fine. Running the executable leads to the 'spinning beach ball of death.' Force-quitting out of Terminal ...
54
votes
5answers
75k views

How do I install GCC via Homebrew?

I am using Homebrew exclusively (i.e. I don’t, and won’t, use MacPorts or Fink). I also want to keep manual installations to a bare minimum.1 … But how can I install GCC? First of all, I’ve of ...