[odb-users] GCC Headers on MacOS X

Andrew Cunningham odb at a-cunningham.com
Wed Sep 21 21:43:12 EDT 2016


Hi Lukas,
I was able to build the ODB compiler on OS X using  GCC 4.8 from
MacPorts....
For example....

./configure CXX=x86_64-apple-darwin15-c++-mp-4.8


Andrew

On Wed, Sep 21, 2016 at 6:17 PM, Boris Kolpackov <boris at codesynthesis.com>
wrote:
>
> Hi Lukas,
>
> Lukas Obermann <obermann.lukas at gmail.com> writes:
>
> > I am trying to build ODB on a Mac. I am integrating it into a existing
> > build system, so I do want to avoid using the pre-built versions and get
> > the build running, as it will also be build on Windows and Linux (will
test
> > those next).
>
> I must warn you, Windows will be really hard (as in "patching GCC" hard).
>
>
> > Executing a gcc --version gives me following:
> >
> > $ gcc --version
> > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> > --with-gxx-include-dir=/usr/include/c++/4.2.1
> > Apple LLVM version 7.3.0 (clang-703.0.31)
> > Target: x86_64-apple-darwin15.6.0
> > Thread model: posix
> > InstalledDir:
> >
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> This is actually not GCC, it is Apple's Clang pretending to be GCC.
>
> To build ODB from source on Mac OS you will need to build GCC with plugin
> support enabled (--enable-plugin configure option). You could also try
> GCC from homebrew though I am not sure if it's built with plugins enabled
> these days.
>
> Boris
>


More information about the odb-users mailing list