Обсуждение: [OSX] unixODBC and universal binaries build problem

Поиск
Список
Период
Сортировка

[OSX] unixODBC and universal binaries build problem

От
Lothar
Дата:
Hi,

To use PostGreSQL with unixODBC in an application compiled as universal binary I try to build the unixODBC 2.2.12
versionof 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













Re: [OSX] unixODBC and universal binaries build problem

От
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 


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

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

Re: [OSX] unixODBC and universal binaries build problem

От
Lothar
Дата:
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
versionof 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
acceptANSI 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













Re: [OSX] unixODBC and universal binaries build problem

От
Dave Page
Дата:
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
versionof 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