Re: [OSX] unixODBC and universal binaries build problem

From: Lothar <lothar(dot)behrens(at)lollisoft(dot)de>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [OSX] unixODBC and universal binaries build problem
Date: 2012-06-17 12:54:58
Message-ID: 66BBCBA6-D4BF-4D39-84C3-4246DD19CB2F@lollisoft.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Am 17.06.2012 um 11:29 schrieb Dave Page:

>
>
> On Sunday, June 17, 2012, Lothar wrote:
> Hi,
>
> To use PostGreSQL with unixODBC in an application compiled as universal binary I try to build the unixODBC 2.2.12 version of unixODBC in a universal binary
> for i386 and ppc targeting OSX 10.3 compatibility.
>
> While configuring is successful, the build fails with the following message:
>
> gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
>
> Any ideas to overcome this
>
> Hi
>
> Try configuring with --disable-dependecy-tracking
>
> Regards, Dave

Then I get this:

mac:unixODBC-2.2.12 lothar$ CC="gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" CXX="g++ -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" ./configure --enable-gui=no --disable-dependecy-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) awk
checking for bison... bison -y
checking for gcc... gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk accepts -g... yes
checking for gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk... gcc
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
mac:unixODBC-2.2.12 lothar$

The same when I try this:

mac:unixODBC-2.2.12 lothar$ CFLAGS="gcc -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" LDFLAGS="g++ -arch i386 -arch ppc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" ./configure --enable-gui=no --disable-dependecy-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) awk
checking for bison... bison -y
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

Thanks, it may be that I have to go the lipo way or kill support for older OSX versions.

-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Ginsterweg 4
65760 Eschborn

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2012-06-17 13:07:21 Re: [OSX] unixODBC and universal binaries build problem
Previous Message Dave Page 2012-06-17 09:29:02 Re: [OSX] unixODBC and universal binaries build problem