Skip to content

Commit 5203aef

Browse files
fauustgrooverdan
authored andcommitted
MDEV-36995: ifunc is not supported by musl
Only glibc and not musl currently supports the mechanisms of IFUNC. This fixes 11.8 branch build on Alpine Linux. Build error was: mariadb-11.8.2/sql/vector_mhnsw.cc: In static member function 'static const FVector* FVector::create(metric_type, void*, const void*, size_t)': mariadb-11.8.2/sql/vector_mhnsw.cc:299:19: error: multiversioning needs 'ifunc' which is not supported on this target 299 | static FVector *align_ptr(void *ptr) { return (FVector*)ptr; } | ^~~~~~~~~ mariadb-11.8.2/sql/vector_mhnsw.cc:113:3: error: use of multiversioned function without a default
1 parent 67e6fde commit 5203aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/bloom_filters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SOFTWARE.
3535
implementation for now.
3636
*/
3737
#define DEFAULT_IMPLEMENTATION
38-
#if __GNUC__ > 7
38+
#if __GNUC__ > 7 && defined(__GLIBC__)
3939
#ifdef __x86_64__
4040
#ifdef HAVE_IMMINTRIN_H
4141
#include <immintrin.h>

0 commit comments

Comments
 (0)