Cross-compiling for ARM in ChromiumOS, it misdetects SSE support on the target. armv7a-cros-linux-gnueabihf-clang++ -O2 -pipe -march=armv8-a+crc -mtune=cortex-a57.cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -I. -I./include -std=c++0x -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT -DSNAPPY -DNDEBUG -fPIC -msse4.2 -DLEVELDB_PLATFORM_POSIX_SSE -c port/port_posix_sse.cc -o out-shared/port/port_posix_sse.o port/port_posix_sse.cc:58:3: error: use of undeclared identifier '__get_cpuid' __get_cpuid(1, &eax, &ebx, &ecx, &edx); ^ port/port_posix_sse.cc:97:7: error: use of undeclared identifier '_mm_crc32_u8' STEP1; ^ port/port_posix_sse.cc:83:9: note: expanded from macro 'STEP1' l = _mm_crc32_u8(l, *p++); \ ^ port/port_posix_sse.cc:113:7: error: use of undeclared identifier '_mm_crc32_u32' STEP4; ^ port/port_posix_sse.cc:86:9: note: expanded from macro 'STEP4' l = _mm_crc32_u32(l, LE_LOAD32(p)); \ ^ port/port_posix_sse.cc:119:5: error: use of undeclared identifier '_mm_crc32_u8' STEP1; ^ port/port_posix_sse.cc:83:9: note: expanded from macro 'STEP1' l = _mm_crc32_u8(l, *p++); \ ^ 4 errors generated. make: *** [Makefile:433: out-shared/port/port_posix_sse.o] Error 1 * ERROR: dev-libs/leveldb-1.20::portage-stable failed (compile phase): * emake failed
Should be fixed in latest version in tree, with commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad4b3e0fe8379f6fa34c7b48b4584590025760c