[tahoe-dev] Trouble compiling on OSX

Olaf TNSB still.another.person at gmail.com
Thu Jul 28 22:55:25 PDT 2011


Hi all,

I'm a bit of a lurker and frankly more at home on Linux than the Mac
I'm trying to compile on (and failing).

I'm running OSX 10.6.8 with port (macports) installed to make my
machine more GNU-like.  I tried to follow the hugely complicated(!)
build instructions on
(http://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/docs/quickstart.rst)
but failed miserably.  :-(

Here is a copy/paste of my failed compile...  It looks like Nevow is
the problem, but as it doesn't "Just Work" I thought I'd help (by
asking for help!)...

I'm running Python 2.7.2

Happy to provide any other system info that is needed.




 allmydata-tahoe-1.8.2 13:37 > python setup.py build
Not found: tahoe-deps
Not found: ../tahoe-deps
conftest.c:1:23: error: sys/epoll.h: No such file or directory

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/Twisted-10.2.0-py2.7-macosx-10.6-x86_64.egg
Searching for zope.interface
Reading http://pypi.python.org/simple/zope.interface/
Best match: zope.interface 3.6.4
Downloading http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.6.4.tar.gz#md5=2071121e3c5daeeca229e4d3a58548c1
Processing zope.interface-3.6.4.tar.gz
Running zope.interface-3.6.4/setup.py -q bdist_egg --dist-dir
/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-u84rLS/zope.interface-3.6.4/egg-dist-tmp-PxF4wG

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/zope.interface-3.6.4-py2.7-macosx-10.6-x86_64.egg
running darcsver
setup.py darcsver: using extant version file ['src/allmydata/_version.py']
running develop
Not found: tahoe-deps
Not found: ../tahoe-deps
running egg_info
writing requirements to src/allmydata_tahoe.egg-info/requires.txt
writing src/allmydata_tahoe.egg-info/PKG-INFO
writing top-level names to src/allmydata_tahoe.egg-info/top_level.txt
writing dependency_links to src/allmydata_tahoe.egg-info/dependency_links.txt
writing entry points to src/allmydata_tahoe.egg-info/entry_points.txt
writing requirements to src/allmydata_tahoe.egg-info/requires.txt
writing src/allmydata_tahoe.egg-info/PKG-INFO
writing top-level names to src/allmydata_tahoe.egg-info/top_level.txt
writing dependency_links to src/allmydata_tahoe.egg-info/dependency_links.txt
writing entry points to src/allmydata_tahoe.egg-info/entry_points.txt
reading manifest file 'src/allmydata_tahoe.egg-info/SOURCES.txt'
writing manifest file 'src/allmydata_tahoe.egg-info/SOURCES.txt'
running build_ext
Creating /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/site.py
Processing setuptools_darcs-1.2.12.egg
Copying setuptools_darcs-1.2.12.egg to
/Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages
Adding setuptools-darcs 1.2.12 to easy-install.pth file

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/setuptools_darcs-1.2.12.egg
Creating /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/allmydata-tahoe.egg-link
(link to src)
Adding allmydata-tahoe 1.8.2 to easy-install.pth file
Installing tahoe script to support/bin

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/src
Processing dependencies for allmydata-tahoe==1.8.2
Searching for pycryptopp>=0.5.20
Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/
Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-dep-eggs/
Best match: pycryptopp 0.5.29
Downloading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/pycryptopp-0.5.29.tar.bz2
Processing pycryptopp-0.5.29.tar.bz2
Running pycryptopp-0.5.29/setup.py -q bdist_egg --dist-dir
/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-Tz9rtk/pycryptopp-0.5.29/egg-dist-tmp-O2NgIY
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
Adding pycryptopp 0.5.29 to easy-install.pth file

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/pycryptopp-0.5.29-py2.7-macosx-10.6-x86_64.egg
Searching for mock
Reading http://pypi.python.org/simple/mock/
Reading http://www.voidspace.org.uk/python/mock/
Reading http://www.voidspace.org.uk/python/mock.html
Best match: mock 0.8.0beta1
Downloading http://www.voidspace.org.uk/downloads/mock-0.8.0beta1.tar.gz#egg=mock-dev
Processing mock-0.8.0beta1.tar.gz
Running mock-0.8.0beta1/setup.py -q bdist_egg --dist-dir
/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-BnRpk4/mock-0.8.0beta1/egg-dist-tmp-nawTBY
zip_safe flag not set; analyzing archive contents...
Adding mock 0.8.0beta1 to easy-install.pth file

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/mock-0.8.0beta1-py2.7.egg
Searching for pyasn1>=0.0.8a
Reading http://pypi.python.org/simple/pyasn1/
Best match: pyasn1 0.0.13
Downloading http://pypi.python.org/packages/2.7/p/pyasn1/pyasn1-0.0.13-py2.7.egg#md5=9f9b6ecc9459b3853e270547e6a2800d
Processing pyasn1-0.0.13-py2.7.egg
creating /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/pyasn1-0.0.13-py2.7.egg
Extracting pyasn1-0.0.13-py2.7.egg to
/Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages
Adding pyasn1 0.0.13 to easy-install.pth file

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/pyasn1-0.0.13-py2.7.egg
Searching for pycrypto==2.0.1,==2.1.0,>=2.3
Reading http://pypi.python.org/simple/pycrypto/
Reading http://www.pycrypto.org/
Reading http://pycrypto.sourceforge.net
Reading http://www.amk.ca/python/code/crypto
Best match: pycrypto 2.3
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.3.tar.gz
Processing pycrypto-2.3.tar.gz
Running pycrypto-2.3/setup.py -q bdist_egg --dist-dir
/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-UBkBN0/pycrypto-2.3/egg-dist-tmp-F6C3TX
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
zip_safe flag not set; analyzing archive contents...
Adding pycrypto 2.3 to easy-install.pth file

Installed /Users/sandbox/src/allmydata-tahoe-1.8.2/support/lib/python2.7/site-packages/pycrypto-2.3-py2.7-macosx-10.6-x86_64.egg
Searching for Nevow>=0.6.0
Reading http://pypi.python.org/simple/Nevow/
Reading http://divmod.org/trac/wiki/DivmodNevow
Reading http://divmod.org/projects/nevow
Reading http://www.divmod.org/
Best match: Nevow 0.10.0
Downloading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/Nevow-0.10.0.tar.bz2
Processing Nevow-0.10.0.tar.bz2
Running Nevow-0.10.0/setup.py -q bdist_egg --dist-dir
/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-FBATZe/Nevow-0.10.0/egg-dist-tmp-LnCeiY
Traceback (most recent call last):
  File "setup.py", line 417, in <module>
    **setup_args
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",
line 152, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",
line 953, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",
line 972, in run_command
    cmd_obj.run()
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/develop.py",
line 23, in run
    self.old_run()
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/develop.py",
line 33, in old_run
    self.install_for_development()
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/develop.py",
line 103, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py",
line 526, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/pkg_resources.py",
line 573, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/pkg_resources.py",
line 823, in best_match
    return self.obtain(req, installer) # try and download/install
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/pkg_resources.py",
line 835, in obtain
    return installer(requirement)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py",
line 453, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py",
line 483, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py",
line 663, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py",
line 938, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py",
line 927, in run_setup
    run_setup(setup_script, args)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/sandbox.py",
line 62, in run_setup
    lambda: execfile(
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/sandbox.py",
line 105, in run
    return func()
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/setuptools-0.6c16dev3.egg/setuptools/sandbox.py",
line 64, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 3, in <module>

  File "/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-FBATZe/Nevow-0.10.0/nevow/__init__.py",
line 143, in <module>
  File "/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-FBATZe/Nevow-0.10.0/nevow/__init__.py",
line 29, in load
  File "/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-FBATZe/Nevow-0.10.0/nevow/util.py",
line 183, in _namedAnyWithBuiltinTranslation
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/Twisted-10.2.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/reflect.py",
line 464, in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/Twisted-10.2.0-py2.7-macosx-10.6-x86_64.egg/twisted/python/reflect.py",
line 400, in _importAndCheckStack
    return __import__(importName)
  File "/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-FBATZe/Nevow-0.10.0/formless/__init__.py",
line 9, in <module>
  File "/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-FBATZe/Nevow-0.10.0/formless/annotate.py",
line 851, in <module>
  File "/var/folders/ex/exox8aq2HTysJzQcnQTpy++++TI/-Tmp-/easy_install-FBATZe/Nevow-0.10.0/formless/annotate.py",
line 731, in __new__
  File "/Users/sandbox/src/allmydata-tahoe-1.8.2/zope.interface-3.6.4-py2.7-macosx-10.6-x86_64.egg/zope/interface/interface.py",
line 685, in __hash__
    return hash((self.__name__, self.__module__))
AttributeError: 'MetaTypedInterface' object has no attribute '__name__'


More information about the tahoe-dev mailing list