k6dsp / crcutil

Automatically exported from code.google.com/p/crcutil
Apache License 2.0
0 stars 0 forks source link

FTBFS on amd64 #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Crcutil FTBFS on amd64 as follows:

/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-D_FORTIFY_SOURCE=2 -DCRCUTIL_USE_MM_CRC32=1 -Wall -msse2 -Icode -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o code/crc32c_sse4.lo code/crc32c_sse4.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -D_FORTIFY_SOURCE=2 -DCRCUTIL_USE_MM_CRC32=1 -Wall -msse2 -Icode -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c code/crc32c_sse4.cc -fPIC -DPIC -o code/.libs/crc32c_sse4.o In file included from code/crc32c_sse4.h:23:0, from code/crc32c_sse4.cc:19: code/crc32c_sse4_intrin.h: In function 'unsigned int _mm_crc32_u8(unsigned int, unsigned char)': code/crc32c_sse4_intrin.h:56:41: error: 'builtin_ia32_crc32qi' was not declared in this scope return builtin_ia32_crc32qi(C, V); ^ code/crc32c_sse4_intrin.h: In function 'long long unsigned int _mm_crc32_u64(long long unsigned int, long long unsigned int)': code/crc32c_sse4_intrin.h:62:41: error: 'builtin_ia32_crc32di' was not declared in this scope return builtin_ia32_crc32di(C, V); ^ code/crc32c_sse4_intrin.h:63:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ code/crc32c_sse4_intrin.h: In function 'unsigned int _mm_crc32_u8(unsigned int, unsigned char)': code/crc32c_sse4_intrin.h:57:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Makefile:685: recipe for target 'code/crc32c_sse4.lo' failed


The remedy is to add "-mcrc32" to CFLAGS (as mentioned in README).
It would be nice to fix this by adding corresponding autotools checks (to 
detect available platform features) or using this build flag by default (if 
appropriate).

Original issue reported on code.google.com by only...@gmail.com on 7 Dec 2014 at 12:59