Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692988 - dev-libs/leveldb-1.20 - port/port_posix_sse.cc:58:3: error: use of undeclared identifier '__get_cpuid'
Summary: dev-libs/leveldb-1.20 - port/port_posix_sse.cc:58:3: error: use of undeclared...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Arthur Zamarin
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-08-28 02:17 UTC by pmarheine
Modified: 2021-08-20 12:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pmarheine 2019-08-28 02:17:18 UTC
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
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2021-08-20 12:50:00 UTC
Should be fixed in latest version in tree, with commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad4b3e0fe8379f6fa34c7b48b4584590025760c