pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[OSX] unixODBC and universal binaries build problem
4+ messages / 2 participants
[nested] [flat]

* [OSX] unixODBC and universal binaries build problem
@ 2012-06-17 08:42  Lothar <lothar.behrens@lollisoft.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Lothar @ 2012-06-17 08:42 UTC (permalink / raw)
  To: pgsql-odbc

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?

Thanks, Lothar


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















^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [OSX] unixODBC and universal binaries build problem
@ 2012-06-17 09:29  Dave Page <dpage@pgadmin.org>
  parent: Lothar <lothar.behrens@lollisoft.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Dave Page @ 2012-06-17 09:29 UTC (permalink / raw)
  To: Lothar <lothar.behrens@lollisoft.de>; +Cc: pgsql-odbc

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


-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [OSX] unixODBC and universal binaries build problem
@ 2012-06-17 12:54  Lothar <lothar.behrens@lollisoft.de>
  parent: Dave Page <dpage@pgadmin.org>
  0 siblings, 1 reply; 4+ messages in thread

From: Lothar @ 2012-06-17 12:54 UTC (permalink / raw)
  To: 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















^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [OSX] unixODBC and universal binaries build problem
@ 2012-06-17 13:07  Dave Page <dpage@pgadmin.org>
  parent: Lothar <lothar.behrens@lollisoft.de>
  0 siblings, 0 replies; 4+ messages in thread

From: Dave Page @ 2012-06-17 13:07 UTC (permalink / raw)
  To: Lothar <lothar.behrens@lollisoft.de>; +Cc: pgsql-odbc

On Sun, Jun 17, 2012 at 1:54 PM, Lothar <lothar.behrens@lollisoft.de> wrote:
> 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

Sorry - I realised I typoed that on my phone. It's
"--disable-dependency-tracking".


-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2012-06-17 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-06-17 08:42 [OSX] unixODBC and universal binaries build problem Lothar <lothar.behrens@lollisoft.de>
2012-06-17 09:29 ` Dave Page <dpage@pgadmin.org>
2012-06-17 12:54   ` Lothar <lothar.behrens@lollisoft.de>
2012-06-17 13:07     ` Dave Page <dpage@pgadmin.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox