[odb-users] Re: Prerequisites
Bruce Cresanta
cresanta at me.com
Fri Sep 5 06:42:43 EDT 2014
Boris,
The Xcode toolchain does not have a gcc with —enable-plugin configured. I compiled 2 compilers yesterday in the hope that I could simply compile odb. Tried gcc4.9.1 and had a lot of trouble. So… I tried gcc4.8.3 and that worked. I had to pass the g++ binary for gcc 4.8.3 to ./configure for odb.
like this:
cd /odb-2.3.0
./configure CXX=/path/to/gcc483/bin/g++
Worked on the first pass.
In order to compile gcc, I did the following in the gcc4.8.3 source distribution.
./configure --prefix=/usr/local/gcc483 --enable-plugin
You want to use —prefix to keep the gcc toolchain in it’s own directory once installed.
Thanks
Bruce
On Sep 5, 2014, at 3:26 AM, Boris Kolpackov <boris at codesynthesis.com> wrote:
> Hi Bruce,
>
> Bruce Cresanta <cresanta at me.com> writes:
>
>> The gcc compiler for my system wasn’t compiled with plugin support.
>> Having trouble working with a custom compiler.
>
> I am not sure what you mean by "custom compiler", but have you tried
> the ODB compiler binary for MacOS X (it includes a private copy of
> GCC). Is this what's giving your trouble? If so, could you elaborate
> on what kind of trouble? I would like to make sure this works since
> that's the most straightforward way of getting started with ODB on
> Mac OS.
>
>
>> Retrograded gcc to 4.8.3. Looking good.
>
> Yes, there were some changes in GCC 4.9 that broke ODB 2.3.0 (it was
> release before 4.9 and while we tested against early pre-releases of
> GCC, things still got changed afterwards).
>
> While you should be able to use ODB 2.3.0 with GCC 4.9.x by applying
> these patches:
>
> http://scm.codesynthesis.com/?p=odb/odb.git;a=commit;h=97281fd4454596834142fa43f83af38695b38e5b
> http://scm.codesynthesis.com/?p=odb/odb.git;a=commit;h=4617f8f3b0c07a40d46bb04ab4b66e8446a8250b
> http://scm.codesynthesis.com/?p=odb/odb.git;a=commit;h=4f54aea0a7a1735502c845524ae5d650eb630181
>
> I don't think you will miss much by sticking with 4.8.
>
> Boris
More information about the odb-users
mailing list