flier / pyfasthash

Python Non-cryptographic Hash Library
Apache License 2.0
281 stars 50 forks source link

compilation error when installed with pip2 from pypi #38

Closed shouldsee closed 2 years ago

shouldsee commented 4 years ago
pip2 install pyhash --no-cache
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Collecting pyhash
  Downloading pyhash-0.9.3.tar.gz (602 kB)
     |████████████████████████████████| 602 kB 1.2 MB/s 
    In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/nmmintrin.h:31:0,
                     from src/smhasher/metrohash64crc.cpp:28:
    /usr/lib/gcc/x86_64-linux-gnu/5/include/smmintrin.h:846:1: error: inlining failed in call to always_inline ‘long long unsigned int _mm_crc32_u64(long long unsigned int, long long unsigned int)’: target specific option mismatch
     _mm_crc32_u64 (unsigned long long __C, unsigned long long __V)
     ^
    src/smhasher/metrohash64crc.cpp:90:51: error: called from here
             hash ^= _mm_crc32_u64(hash, read_u16(ptr)); ptr += 2;
                                                       ^
    In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/nmmintrin.h:31:0,
                     from src/smhasher/metrohash64crc.cpp:28:
    /usr/lib/gcc/x86_64-linux-gnu/5/include/smmintrin.h:846:1: error: inlining failed in call to always_inline ‘long long unsigned int _mm_crc32_u64(long long unsigned int, long long unsigned int)’: target specific option mismatch
     _mm_crc32_u64 (unsigned long long __C, unsigned long long __V)
     ^
    src/smhasher/metrohash64crc.cpp:90:51: error: called from here
             hash ^= _mm_crc32_u64(hash, read_u16(ptr)); ptr += 2;
                                                       ^
    In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/nmmintrin.h:31:0,
                     from src/smhasher/metrohash64crc.cpp:28:
    /usr/lib/gcc/x86_64-linux-gnu/5/include/smmintrin.h:846:1: error: inlining failed in call to always_inline ‘long long unsigned int _mm_crc32_u64(long long unsigned int, long long unsigned int)’: target specific option mismatch
     _mm_crc32_u64 (unsigned long long __C, unsigned long long __V)
     ^
    src/smhasher/metrohash64crc.cpp:96:50: error: called from here
             hash ^= _mm_crc32_u64(hash, read_u8(ptr));
                                                      ^
    In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/nmmintrin.h:31:0,
                     from src/smhasher/metrohash64crc.cpp:28:
    /usr/lib/gcc/x86_64-linux-gnu/5/include/smmintrin.h:846:1: error: inlining failed in call to always_inline ‘long long unsigned int _mm_crc32_u64(long long unsigned int, long long unsigned int)’: target specific option mismatch
     _mm_crc32_u64 (unsigned long long __C, unsigned long long __V)
     ^
    src/smhasher/metrohash64crc.cpp:96:50: error: called from here
             hash ^= _mm_crc32_u64(hash, read_u8(ptr));
                                                      ^
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Freeze

atomicwrites==1.3.0
attrs==19.3.0
configparser==4.0.2
contextlib2==0.6.0.post1
delay-and-cache==0.1
funcsigs==1.0.2
importlib-metadata==1.5.0
lazydict==1.0.0b2
more-itertools==5.0.0
packaging==20.1
pathlib2==2.3.5
pluggy==0.13.1
py==1.8.1
pyparsing==2.4.6
pytest==4.6.9
scandir==1.10.0
six==1.14.0
thermoPIF7==0.0.1
wcwidth==0.1.8
zipp==1.2.0
flier commented 2 years ago

caused by incorrect CPU feature detection