Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails under FreeBSD 11.3 #47

Open
andrew-azarov opened this issue Nov 3, 2020 · 0 comments
Open

Build fails under FreeBSD 11.3 #47

andrew-azarov opened this issue Nov 3, 2020 · 0 comments

Comments

@andrew-azarov
Copy link

andrew-azarov commented Nov 3, 2020

hw.model: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
hw.machine: amd64
hw.ncpu: 16

Getting this error with SSE 4.2:

src/smhasher/metrohash64crc.cpp:52:21: error: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'metrohash64crc_1' that is compiled without support for 'sse4.2'
            v[0] ^= _mm_crc32_u64(v[0], read_u64(ptr)); ptr += 8;
                    ^
src/smhasher/metrohash64crc.cpp:53:21: error: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'metrohash64crc_1' that is compiled without support for 'sse4.2'
            v[1] ^= _mm_crc32_u64(v[1], read_u64(ptr)); ptr += 8;
                    ^
src/smhasher/metrohash64crc.cpp:54:21: error: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'metrohash64crc_1' that is compiled without support for 'sse4.2'
            v[2] ^= _mm_crc32_u64(v[2], read_u64(ptr)); ptr += 8;
                    ^
src/smhasher/metrohash64crc.cpp:55:21: error: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'metrohash64crc_1' that is compiled without support for 'sse4.2'
            v[3] ^= _mm_crc32_u64(v[3], read_u64(ptr)); ptr += 8;
                    ^
src/smhasher/metrohash64crc.cpp:84:17: error: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'metrohash64crc_1' that is compiled without support for 'sse4.2'
        hash ^= _mm_crc32_u64(hash, read_u32(ptr)); ptr += 4;
                ^
src/smhasher/metrohash64crc.cpp:90:17: error: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'metrohash64crc_1' that is compiled without support for 'sse4.2'
        hash ^= _mm_crc32_u64(hash, read_u16(ptr)); ptr += 2;
                ^
src/smhasher/metrohash64crc.cpp:96:17: error: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'metrohash64crc_1' that is compiled without support for 'sse4.2'
        hash ^= _mm_crc32_u64(hash, read_u8(ptr));

with CLANG default on FreeBSD.
gcc10 also produces the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant