[Newbie Alert] Did i screw up my XCode?

Ton Machielsen ton at machielsen.net
Mon Apr 13 05:48:13 PDT 2015


TM-MBP:~ Ton$ /usr/bin/gcc -v

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)

Target: x86_64-apple-darwin14.3.0

Thread model: posix

On Mon, Apr 13, 2015 at 2:45 PM, Ryan Schmidt <ryandesign at macports.org>
wrote:

>
> 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
>
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20150413/c1445364/attachment.html>


More information about the macports-users mailing list