Skip to content

[BUG] Snappy ExternalProject build fails with SSE4.2 "target specific option mismatch" on x86_64 #488

@liulx20

Description

@liulx20

When building neug from source on x86_64 Linux with GCC 13, the Arrow bundled snappy ExternalProject fails to compile with:

/usr/lib/gcc/x86_64-linux-gnu/13/include/smmintrin.h:834:1: error: inlining failed in call to 'always_inline' 
'unsigned int _mm_crc32_u32(unsigned int, unsigned int)': target specific option mismatch

snappy_ep/snappy.cc:174:38: note: called from here
  174 |   const uint32_t hash = _mm_crc32_u32(bytes, mask);

Environment

  • OS: Linux (Ubuntu 20.04+)
  • Compiler: GCC 13
  • Architecture: x86_64
  • Arrow version: 18.0.0 (bundled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciCI/CD and build system

    Type

    No fields configured for Bug.

    Projects

    Status
    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions