Skip to content

snowboy python module includes wrong snowboy-detect-swig.o (compiled files) #568

@norbusan

Description

@norbusan

Installation using pip(3) on x86_64-linux is broken because the Python Pip distribution (https://files.pythonhosted.org/packages/86/fc/3a13408cb3b32abff1b0539f44fca02ca378d9077b11f0c95674f278f3de/snowboy-1.2.0b1.tar.gz) contains swig/Python/snowboy-detect-swig.o which is a Mach-O 64-bit x86_64 object and newer than the .c file and thus it is not rebuilt automatically. After this, the loader fails with

  Compiling snowboy...
  g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x  -shared snowboy-detect-swig.o \
  ../..//lib/ubuntu64/libsnowboy-detect.a -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -L/usr/lib -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
  snowboy-detect-swig.o: file not recognized: File format not recognized
  collect2: error: ld returned 1 exit status

Please remove the generated files from the Python distribution package. Thanks.

(BTW, this is probably the source of several other issues mentioning that installation fails!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions