Skip to content
Snippets Groups Projects
Commit 9e288953 authored by Aurelien Jarno's avatar Aurelien Jarno
Browse files

debian/patches/arm64/local-remove-aarch64-bits-math-vector-h.diff: temporarily...

debian/patches/arm64/local-remove-aarch64-bits-math-vector-h.diff: temporarily remove aarch64 specific bits/math-vector.h file, so that the generic one is used instead. Addresses: #1070441, #1070443, #1070444, #1070446.
parent 857ddd99
No related branches found
No related tags found
No related merge requests found
glibc (2.38-8) UNRELEASED; urgency=medium
[ Aurelien Jarno ]
* debian/patches/arm64/local-remove-aarch64-bits-math-vector-h.diff:
temporarily remove aarch64 specific bits/math-vector.h file, so that the
generic one is used instead. Addresses: #1070441, #1070443, #1070444,
#1070446.
-- Aurelien Jarno <aurel32@debian.org> Mon, 06 May 2024 22:25:38 +0200
glibc (2.38-7) unstable; urgency=medium
 
[ Samuel Thibault ]
......
Temporarily remove bits/math-vector.h as it causes a few packages to FTBFS:
- #1070441 cmbc: arm64 FTBFS with glibc 2.38
- #1070443 aspectc++: arm64 FTBFS with glibc 2.38
- #1070444 cxref: arm64 FTBFS with glibc 2.38
- #1070446 rocm-hipamd: arm64 FTBFS with glibc 2.38
See upstream bug https://sourceware.org/bugzilla/show_bug.cgi?id=30909
diff --git a/sysdeps/aarch64/fpu/bits/math-vector.h b/sysdeps/aarch64/fpu/bits/math-vector.h
deleted file mode 100644
index 7c200599c1..0000000000
--- a/sysdeps/aarch64/fpu/bits/math-vector.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Platform-specific SIMD declarations of math functions.
-
- Copyright (C) 2023 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef _MATH_H
-# error "Never include <bits/math-vector.h> directly;\
- include <math.h> instead."
-#endif
-
-/* Get default empty definitions for simd declarations. */
-#include <bits/libm-simd-decl-stubs.h>
-
-#if __GNUC_PREREQ(9, 0)
-# define __ADVSIMD_VEC_MATH_SUPPORTED
-typedef __Float32x4_t __f32x4_t;
-typedef __Float64x2_t __f64x2_t;
-#elif __glibc_clang_prereq(8, 0)
-# define __ADVSIMD_VEC_MATH_SUPPORTED
-typedef __attribute__ ((__neon_vector_type__ (4))) float __f32x4_t;
-typedef __attribute__ ((__neon_vector_type__ (2))) double __f64x2_t;
-#endif
-
-#if __GNUC_PREREQ(10, 0) || __glibc_clang_prereq(11, 0)
-# define __SVE_VEC_MATH_SUPPORTED
-typedef __SVFloat32_t __sv_f32_t;
-typedef __SVFloat64_t __sv_f64_t;
-typedef __SVBool_t __sv_bool_t;
-#endif
-
-/* If vector types and vector PCS are unsupported in the working
- compiler, no choice but to omit vector math declarations. */
-
-#ifdef __ADVSIMD_VEC_MATH_SUPPORTED
-
-# define __vpcs __attribute__ ((__aarch64_vector_pcs__))
-
-__vpcs __f32x4_t _ZGVnN4v_cosf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_expf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_logf (__f32x4_t);
-__vpcs __f32x4_t _ZGVnN4v_sinf (__f32x4_t);
-
-__vpcs __f64x2_t _ZGVnN2v_cos (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_exp (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_log (__f64x2_t);
-__vpcs __f64x2_t _ZGVnN2v_sin (__f64x2_t);
-
-# undef __ADVSIMD_VEC_MATH_SUPPORTED
-#endif /* __ADVSIMD_VEC_MATH_SUPPORTED */
-
-#ifdef __SVE_VEC_MATH_SUPPORTED
-
-__sv_f32_t _ZGVsMxv_cosf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_expf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_logf (__sv_f32_t, __sv_bool_t);
-__sv_f32_t _ZGVsMxv_sinf (__sv_f32_t, __sv_bool_t);
-
-__sv_f64_t _ZGVsMxv_cos (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_exp (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_log (__sv_f64_t, __sv_bool_t);
-__sv_f64_t _ZGVsMxv_sin (__sv_f64_t, __sv_bool_t);
-
-# undef __SVE_VEC_MATH_SUPPORTED
-#endif /* __SVE_VEC_MATH_SUPPORTED */
......@@ -23,6 +23,8 @@ arm/local-sigaction.diff
arm/unsubmitted-ldso-multilib.diff
arm/local-arm-futex.diff
arm64/local-remove-aarch64-bits-math-vector-h.diff
hppa/local-inlining.diff
# Committed for 2.39
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment