GregBowyer / cld2-cffi

Python bindings to the Compact Language Detector
Apache License 2.0
33 stars 10 forks source link

Cffi port #1

Closed GregBowyer closed 9 years ago

jisaacso commented 9 years ago

Build failure on OSX

(env)Josephs-MacBook-Pro:cld2-cffi jisaacso$ python setup.py install
running install
running build_ext
building '_cffi__xffd9cd01x65516402' extension
creating /Users/jisaacso/Documents/projects/cld2-cffi/cld2/__pycache__/cld2
creating /Users/jisaacso/Documents/projects/cld2-cffi/cld2/__pycache__/cld2/__pycache__
creating /Users/jisaacso/Documents/projects/cld2-cffi/cld2/__pycache__/cld2/internal
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Icld2/public -Icld2/internal -Icld2 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cld2/__pycache__/_cffi__xffd9cd01x65516402.c -o /Users/jisaacso/Documents/projects/cld2-cffi/cld2/__pycache__/cld2/__pycache__/_cffi__xffd9cd01x65516402.o -O2
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Icld2/public -Icld2/internal -Icld2 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cld2/encoding_lut.cc -o /Users/jisaacso/Documents/projects/cld2-cffi/cld2/__pycache__/cld2/encoding_lut.o -O2
clang: error: no such file or directory: 'cld2/encoding_lut.cc'
clang: error: no input files
Traceback (most recent call last):
  File "setup.py", line 103, in <module>
    'Topic :: Text Processing :: Linguistic'
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, 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 971, in run_command
    cmd_obj.ensure_finalized()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 66, in finalize_options
    self.distribution.ext_modules = get_ext_modules()
  File "setup.py", line 46, in get_ext_modules
    import cld2
  File "/Users/jisaacso/Documents/projects/cld2-cffi/cld2/__init__.py", line 183, in <module>
    extra_compile_args=_COMPILER_ARGS)
  File "/Users/jisaacso/Documents/projects/cld2-cffi/env/lib/python2.7/site-packages/cffi/api.py", line 367, in verify
    lib = self.verifier.load_library()
  File "/Users/jisaacso/Documents/projects/cld2-cffi/env/lib/python2.7/site-packages/cffi/verifier.py", line 96, in load_library
    self._compile_module()
  File "/Users/jisaacso/Documents/projects/cld2-cffi/env/lib/python2.7/site-packages/cffi/verifier.py", line 192, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/Users/jisaacso/Documents/projects/cld2-cffi/env/lib/python2.7/site-packages/cffi/ffiplatform.py", line 28, in compile
    outputfilename = _build(tmpdir, ext)
  File "/Users/jisaacso/Documents/projects/cld2-cffi/env/lib/python2.7/site-packages/cffi/ffiplatform.py", line 54, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command '/usr/bin/clang' failed with exit status 1
GregBowyer commented 9 years ago

Can you try the latest version please ?

landscape-bot commented 9 years ago

Code Health Repository health increased by 1% when pulling 7c37955 on cffi-port into 95763bc on master.

GregBowyer commented 9 years ago

Long since merged and released