[Newbie Alert] Did i screw up my XCode?

Ryan Schmidt ryandesign at macports.org
Mon Apr 13 05:45:54 PDT 2015

On Apr 13, 2015, at 7:18 AM, Ton Machielsen wrote:

> New MacPorts user here. So this is what i have done so far:
> Installed Xcode
> Installed MacPorts
> All working fine
> Replaced MacPorts with Homebrew because i needed something that was in Homebrew but not in MacPorts. Now i cannot remember what.
> Removed Homebrew.
> Removed and reinstalled MacPorts. Cannot find port command.
> Removed MacPorts.
> Removed Xcode.
> Reinstalled Xcode.
> Reinstalled MacPorts.
> Now, when i want to compile something i get the following error:
> TM-MBP:lir03-51 Ton$ ./configure
> checking OS... checking for gcc... /usr/bin/gcc
> -------------------------------------------------------
> In file included from <built-in>:321: <command line>:2:9: warning: '__STDC_VERSION__' macro redefined [-Wmacro-redefined] #define __STDC_VERSION__ 0L ^ <built-in>:318:9: note: previous definition is here #define __STDC_VERSION__ 199901L ^ 1 warning generated.
> -------------------------------------------------------
> The gcc compiler is installed but does not work.
> The reason is probably missing header files.
> Debian, Ubuntu: apt-get install libc6-dev
> Fedora: yum install gcc
> SuSE: zypper install gcc
> ———————————————————————————
> How can i start from scratch so that MacPorts and Xcode behave nicely together?
> OSX 10.10.3 here.

What is /usr/bin/gcc? Find out by running:

/usr/bin/gcc -v

More information about the macports-users mailing list