Skip to content

popcnt issue on CentOS 7.2 #80

Description

@pengxu7

I built NativeJIT with g++ 5.4.0 on CentOS 7.2. Then I tried to compile your "radius" test code (http://bitfunnel.org/getting-started-with-nativejit/) but got following error:"

/usr/local/gcc54/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/include/popcntintrin.h: In function 'uint8_t NativeJIT::BitOp::GetNonZeroBitCount(uint32_t)':
/usr/local/gcc54/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/include/popcntintrin.h:35:1: error: inlining failed in call to always_inline 'int _mm_popcnt_u32(unsigned int)': target specific option mismatch
_mm_popcnt_u32 (unsigned int __X)
^
In file included from ./nativejit/inc/NativeJIT/CodeGen/X64CodeGenerator.h:32:0,
from ./nativejit/inc/NativeJIT/CodeGen/FunctionBuffer.h:40,
from test.cpp:2:
./nativejit/inc/NativeJIT/BitOperations.h:89:55: error: called from here
return static_cast<uint8_t>(_mm_popcnt_u32(value));
"

Am I missing anything?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions