#2527 closed defect (fixed)

Can't build on Mac OS X (10.10.5)

Reported by: scttnlsn Owned by: scttnlsn
Priority: normal Milestone: undecided
Component: packaging Version: 1.10.1
Keywords: pycryptopp Cc:
Launchpad Bug:

Description

Trying to get Tahoe setup on Mac OS X but the build fails when trying to install "pycryptopp". Here's the full output: https://gist.github.com/scttnlsn/4a1663b7a4917c9751a6 Any advice?

Change History (11)

comment:1 Changed at 2015-10-13T20:23:59Z by zooko

Hi there. I'm sorry you've hit this bug, and thank you for reporting it.

The critical part of the log that you posted is this:

Running pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958/setup.py -q bdist_egg --dist-dir /var/folders/z3/x8fdxj9x1rv8zt4ylnkjcgyh0000gn/T/easy_install-oDsLyH/pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958/egg-dist-tmp-OVEURv
src-cryptopp/integer.cpp:534:2: error: unknown token in expression
        ".intel_syntax;"
        ^

Apparently the toolchain on your system is incompatible with the assembler syntax in pycryptopp.

Could you please let us know version of OSX, and also show us the output of:

python misc/build_helpers/show-tool-versions.py 

This patch would fix your problem:

https://github.com/tahoe-lafs/pycryptopp/pull/23

as described in this ticket:

https://tahoe-lafs.org/trac/pycryptopp/ticket/85

Let me know if you want to help us test that patch.

comment:2 Changed at 2015-10-13T20:24:20Z by zooko

  • Owner changed from daira to scttnlsn

comment:3 Changed at 2015-10-13T20:31:54Z by zooko

  • Milestone changed from undecided to 1.10.3

comment:4 Changed at 2015-10-13T20:33:16Z by zooko

oh, I see that you said the version of OSX you are using in the subject line -- 10.10.5.

comment:5 Changed at 2015-10-13T20:33:44Z by scttnlsn

  • Milestone changed from 1.10.3 to undecided

I'm running OS X version 10.10.5 (Yosemite).

Here's the output of python misc/build_helpers/show-tool-versions.py:

platform: Darwin-14.5.0-x86_64-i386-64bit
machine:  x86_64
linux_distribution: ('', '', '')

python: 2.7.8 (default, Nov 30 2014, 12:34:08)  [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.54)]
maxunicode: 65535

locale: LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL= 
filesystem.encoding: utf-8
locale.getpreferredencoding: UTF-8
locale.defaultlocale: ('en_US', 'UTF-8')
locale.locale: (None, None)

buildbot: no such file or directory
buildslave: no such file or directory
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
gcc: Apple LLVM version 7.0.0 (clang-700.0.72)
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
g++: Apple LLVM version 7.0.0 (clang-700.0.72)
cryptest: no such file or directory
git: git version 2.2.2 
openssl: OpenSSL 0.9.8zg 14 July 2015 
Traceback (most recent call last):
  File "/Users/scott/.pyenv/versions/2.7.8/bin/flappclient", line 15, in <module>
    from foolscap.appserver.client import run_flappclient
  File "/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/foolscap/appserver/client.py", line 4, in <module>
    from twisted.python import usage
ImportError: No module named twisted.python
flappclient: 
valgrind: no such file or directory
as:  clang: error: unknown argument: '-version' 
setuptools: [setuptools 7.0 (/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg)]

cffi: DistributionNotFound

coverage: DistributionNotFound

cryptography: DistributionNotFound

foolscap: DistributionNotFound
foolscap module: <module 'foolscap' from '/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/foolscap/__init__.pyc'>
foolscap __version__: 0.9.1

mock: [mock 1.0.1 (/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages)]
mock module: <module 'mock' from '/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/mock.pyc'>
mock __version__: 1.0.1

Nevow: DistributionNotFound

pyasn1: DistributionNotFound

pycparser: DistributionNotFound

pycrypto: [pycrypto 2.6.1 (/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages)]
pycrypto module: <module 'Crypto' from '/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/Crypto/__init__.pyc'>
pycrypto __version__: 2.6.1

pycryptopp: DistributionNotFound

pyflakes: DistributionNotFound

pyOpenSSL: DistributionNotFound

simplejson: [simplejson 3.8.0 (/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages)]
simplejson module: <module 'simplejson' from '/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/simplejson/__init__.pyc'>
simplejson __version__: 3.8.0

six: [six 1.9.0 (/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages)]
six module: <module 'six' from '/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/six.pyc'>
six __version__: 1.9.0

trialcoverage: DistributionNotFound

Twisted: DistributionNotFound

TwistedCore: DistributionNotFound

TwistedWeb: DistributionNotFound

TwistedConch: DistributionNotFound

zfec: DistributionNotFound

zope.interface: [zope.interface 4.1.3 (/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages), setuptools 7.0 (/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg)]
zope.interface module: <module 'zope.interface' from '/Users/scott/.pyenv/versions/2.7.8/lib/python2.7/site-packages/zope/interface/__init__.pyc'>

I've give that pull request a try and report back.

comment:6 Changed at 2015-10-13T20:41:56Z by scttnlsn

I'm able to build https://github.com/tahoe-lafs/pycryptopp/pull/23 successfully. Is there a way to then build tahoe-lafs using the alternate build of pycryptopp?

comment:7 Changed at 2015-10-14T00:06:44Z by warner

I brought the pycryptopp buildbot back online: https://tahoe-lafs.org/buildbot-pycryptopp/waterfall . And I added an OS-X buildslave that has (for now) 10.10.5 . The builder is red, as we expect.

I think the next step is for Zooko to land the first two patches of PR 26, which turns off the .asm code. That should make the OS-X build go green. Then we can land the rest of PR26, or not. Then we need a new release.

Zooko: note that there's a new Versioneer, in case you want to upgrade that too while you're at it. It won't give you the verbose-and-precise 120-bit decimal version string, though :).

comment:8 Changed at 2015-11-24T16:45:01Z by jeanmichel

Hello, I am having the same problem when using pycryptopp == 0.6.0.1206569328141510525648634803928199668821045408958 as a direct dependency within a Pyramid project. I think pycryptopp is needed for Beaker to work properly, which is another dependency of my project. I am also developing on OSX Yosemite 10.10.5. Any update on the problem?

comment:9 Changed at 2016-01-03T22:50:45Z by zooko

We just landed https://github.com/tahoe-lafs/pycryptopp/pull/27 in trunk which should fix this issue, @jeanmichel. Sorry for the delay! We'll make a new release of pycryptopp soon.

comment:10 Changed at 2016-01-03T22:50:59Z by zooko

  • Resolution set to fixed
  • Status changed from new to closed

comment:11 Changed at 2016-01-14T17:50:50Z by daira

  • Component changed from unknown to packaging
  • Keywords pycryptopp added

This still isn't released: https://pypi.python.org/pypi/pycryptopp

Note: See TracTickets for help on using tickets.