[egenix-users] Issues building mxBase on OS X 10.6

david skloot at gmail.com
Thu Sep 10 17:17:40 CEST 2009


Hi,
It turns out that the issue was that 10.6 now uses GCC 4.2 by default,
which was causing it to fail for some reason. Setting the CC
environment variable to gcc 4.0 allowed it to compile properly.

On Wed, Sep 9, 2009 at 4:24 PM, M.-A. Lemburg <mal at egenix.com> wrote:
> david wrote:
>> Hello,
>> I'm having problems installing mxBase on my new Snow Leopard system.
>> It doesn't matter if I start with a binary package or from source, the
>> result is the same.
>
> This is a problem with Python and some assumptions made by distutils
> which are no longer true for Mac OS X 10.6.
>
> While I've seen a few patches go in for Python 2.6, I don't think they'll
> be backported to 2.5.
>
> The mention of the 10.4 SDK in the sysroot parameter looks strange.
> Perhaps that causes the problems ?!
>
>> Here is the output:
>>
>> $ python setup.py install
>> running install
>> no build data file 'build/build-py2.5_ucs2.pck' found
>> running build
>> running mx_autoconf
>> checking for availability of strptime()
>> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
>> -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1
>> -I/usr/local/include -I/opt/local/include
>> -I/Library/Frameworks/Python.framework/Versions/2.5/include -c
>> _configtest.c -o _configtest.o
>> cc1: error: unrecognized command line option "-Wno-long-double"
>> cc1: error: unrecognized command line option "-Wno-long-double"
>> lipo: can't figure out the architecture type of: /var/tmp//cc4XyWUa.out
>> failure.
>> removing: _configtest.c _configtest.o
>> checking compiler for bad static forward handling
>> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
>> -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1
>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>> -I/usr/local/include -I/opt/local/include
>> -I/Library/Frameworks/Python.framework/Versions/2.5/include -c
>> _configtest.c -o _configtest.o
>> cc1: error: unrecognized command line option "-Wno-long-double"
>> cc1: error: unrecognized command line option "-Wno-long-double"
>> lipo: can't figure out the architecture type of: /var/tmp//ccynFFmT.out
>> failure.
>>
>>
>> And so on. I am also having the same "lipo: can't figure out the
>> architecture type..." message when trying to build psycopg2, so I
>> understand this isn't specific to mxBase. I'm new to Mac and am having
>> zero luck figuring this one out. I have found a limited amount of
>> discussion about this error, but it seems to usually come down to
>> "sounds like your build environment is hosed" - which seems odd to me,
>> because this is a brand new install.
>>
>> Thanks for your time,
>> David
>>
>>
>> _______________________________________________________________________
>> eGenix.com User Mailing List                     http://www.egenix.com/
>> https://www.egenix.com/mailman/listinfo/egenix-users
>
> --
> Marc-Andre Lemburg
> eGenix.com
>
> Professional Python Services directly from the Source  (#1, Sep 09 2009)
>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
> ________________________________________________________________________
>
> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>
>
>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>           Registered at Amtsgericht Duesseldorf: HRB 46611
>               http://www.egenix.com/company/contact/
>



More information about the egenix-users mailing list