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 using CMake under Debian 8/x86_64 [CORE5661] #5927

Closed
firebird-automations opened this issue Nov 15, 2017 · 5 comments
Closed

Build fails using CMake under Debian 8/x86_64 [CORE5661] #5927

firebird-automations opened this issue Nov 15, 2017 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Vadim Zeitlin (vz)

Votes: 1

Trying to build with CMake fails with

Building CXX object src/CMakeFiles/common.dir/common/CRC32C.cpp.o
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/nmmintrin.h:31:0,
from /tmp/firebird/src/common/CRC32C.cpp:34:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h: In function 'unsigned int CRC32C(unsigned int, const unsigned char*)':
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h:827:1: error: inlining failed in call to always_inline 'unsigned int _mm_crc32_u8(unsigned int, unsigned char)': target specific option mismatch
_mm_crc32_u8 (unsigned int __C, unsigned char __V)
^
/tmp/firebird/src/common/CRC32C.cpp:41:41: error: called from here
return _mm_crc32_u8(hash_value, *value);
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/nmmintrin.h:31:0,
from /tmp/firebird/src/common/CRC32C.cpp:34:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h:833:1: error: inlining failed in call to always_inline 'unsigned int _mm_crc32_u16(unsigned int, short unsigned int)': target specific option mismatch
_mm_crc32_u16 (unsigned int __C, unsigned short __V)
^
/tmp/firebird/src/common/CRC32C.cpp:44:60: error: called from here
return _mm_crc32_u16(hash_value, *(unsigned short*) value);
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/nmmintrin.h:31:0,
from /tmp/firebird/src/common/CRC32C.cpp:34:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h:839:1: error: inlining failed in call to always_inline 'unsigned int _mm_crc32_u32(unsigned int, unsigned int)': target specific option mismatch
_mm_crc32_u32 (unsigned int __C, unsigned int __V)
^
/tmp/firebird/src/common/CRC32C.cpp:48:65: error: called from here
hash_value = _mm_crc32_u32(hash_value, *(unsigned int*) value);
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/nmmintrin.h:31:0,
from /tmp/firebird/src/common/CRC32C.cpp:34:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h:833:1: error: inlining failed in call to always_inline 'unsigned int _mm_crc32_u16(unsigned int, short unsigned int)': target specific option mismatch
_mm_crc32_u16 (unsigned int __C, unsigned short __V)
^
/tmp/firebird/src/common/CRC32C.cpp:55:67: error: called from here
hash_value = _mm_crc32_u16(hash_value, *(unsigned short*) value);
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/nmmintrin.h:31:0,
from /tmp/firebird/src/common/CRC32C.cpp:34:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/smmintrin.h:827:1: error: inlining failed in call to always_inline 'unsigned int _mm_crc32_u8(unsigned int, unsigned char)': target specific option mismatch
_mm_crc32_u8 (unsigned int __C, unsigned char __V)
^
/tmp/firebird/src/common/CRC32C.cpp:62:48: error: called from here
hash_value = _mm_crc32_u8(hash_value, *value);
^
src/CMakeFiles/common.dir/build.make:537: recipe for target 'src/CMakeFiles/common.dir/common/CRC32C.cpp.o' failed
make: *** [src/CMakeFiles/common.dir/common/CRC32C.cpp.o] Error 1

This happens because CMake compiles this file without -msse4 option used by autoconf-based build system. I don't know how to add this option for just this file using CMake, but adding it globally would at least fix the build for now.

BTW, I'd gladly avoid using CMake in the first place if only autoconf supported building out of the source directory, which it currently doesn't, unfortunately...

@firebird-automations
Copy link
Collaborator Author

Commented by: @mariuz

This is fixed by #117

@firebird-automations
Copy link
Collaborator Author

Commented by: Vadim Zeitlin (vz)

Thanks, I can confirm that this is indeed fixed in the latest B3_0_Release (but unfortunately the build still doesn't work, see CORE5662).

I don't seem to have the permission to close it myself, could someone else please do it?

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0.3 [ 10810 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Cannot be tested

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

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

No branches or pull requests

1 participant