ZODB doesn't compile on snow leopard

Bug #427323 reported by Christian Zagrodnick
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ZODB
Invalid
Undecided
Unassigned

Bug Description

Getting distribution for 'ZODB3'.
cc1: error: unrecognized command line option "-Wno-long-double"
error: Setup script exited with error: command 'gcc' failed with exit status 1
An error occured when trying to install ZODB3 3.9.0.Look above this message for any errors thatwere output by easy_install.

Revision history for this message
Andreas Jung (ajung) wrote :

Compiling on Snow Leopard works fine for me but the tests fail:

copying build/lib.macosx-10.3-i386-2.6/BTrees/_OOBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_IOBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_OIBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_IIBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_IFBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_fsBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_LOBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_OLBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_LLBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/BTrees/_LFBTree.so -> src/BTrees
copying build/lib.macosx-10.3-i386-2.6/persistent/cPersistence.so -> src/persistent
copying build/lib.macosx-10.3-i386-2.6/persistent/cPickleCache.so -> src/persistent
copying build/lib.macosx-10.3-i386-2.6/persistent/TimeStamp.so -> src/persistent
Traceback (most recent call last):
  File "setup.py", line 230, in <module>
    include_package_data = True,
  File "/opt/python-2.6.2/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/opt/python-2.6.2/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/opt/python-2.6.2/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/opt/python-2.6.2/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/test.py", line 121, in run
  File "/opt/python-2.6.2/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/test.py", line 101, in with_project_on_sys_path
  File "/opt/python-2.6.2/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/test.py", line 130, in run_tests
  File "/opt/python-2.6.2/lib/python2.6/unittest.py", line 816, in __init__
    self.parseArgs(argv)
  File "/opt/python-2.6.2/lib/python2.6/unittest.py", line 843, in parseArgs
    self.createTests()
  File "/opt/python-2.6.2/lib/python2.6/unittest.py", line 849, in createTests
    self.module)
  File "/opt/python-2.6.2/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/opt/python-2.6.2/lib/python2.6/unittest.py", line 598, in loadTestsFromName
    test = obj()
  File "setup.py", line 149, in alltests
    import ZEO.ClientStorage
  File "/Users/ajung/src/svn.zope.org/ZODB/trunk/src/ZEO/ClientStorage.py", line 22, in <module>
    from persistent.TimeStamp import TimeStamp
  File "/Users/ajung/src/svn.zope.org/ZODB/trunk/src/persistent/__init__.py", line 19, in <module>
    from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
ImportError: dlopen(/Users/ajung/src/svn.zope.org/ZODB/trunk/src/persistent/cPersistence.so, 2): no suitable image found. Did find:
 /Users/ajung/src/svn.zope.org/ZODB/trunk/src/persistent/cPersistence.so: mach-o, but wrong architecture
ajung@suxmac2:~/src/svn.zope.org/ZODB/trunk

Revision history for this message
Christian Zagrodnick (zagy) wrote :

It helps to set MACOSX_DEPLOYMENT_TARGET=10.6 in lib/python2.6/config/Makefile.

After chaning that everything works fine. But this obviously is a python bug.

Revision history for this message
Jim Fulton (jim-zope) wrote : Re: [Bug 427323] Re: ZODB doesn't compile on snow leopard

On Sun, Sep 13, 2009 at 5:05 AM, Christian Zagrodnick <email address hidden> wrote:
> It helps to set MACOSX_DEPLOYMENT_TARGET=10.6 in
> lib/python2.6/config/Makefile.
>
> After chaning that everything works fine. But this obviously is a python
> bug.

I hear there is a 2.6 release planned to deal with this. I'm not
going to update to snow leopard until that happens.

Jim

--
Jim Fulton

Revision history for this message
Hanno Schlichting (hannosch) wrote :

Python build issues on Snow Leopard have been fixed in Python 2.6.3.

Changed in zodb:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.