[packages/Mesa] for %{arm} with hardfloat pass -mfloat-abi=hard to clang invoked by bindgen

atler atler at pld-linux.org
Thu Dec 1 23:25:13 CET 2022


commit 958c933ebc086e0e568bc061cb651f89213699d1
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Dec 1 23:22:45 2022 +0100

    for %{arm} with hardfloat pass -mfloat-abi=hard to clang invoked by bindgen
    
    it appears that libclang preprocessing uses some minimal platform
    configuration which for %{arm} means soft float causing error on hard
    float targets:
    
    /usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found
    panicked at 'Unable to generate bindings: ClangDiagnostic("/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-soft.h' file not found\n")', bindgen-cli/main.rs:52:36

 Mesa.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/Mesa.spec b/Mesa.spec
index 47df97d..7309035 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -1506,6 +1506,12 @@ freedreno broadcom imagination-experimental panfrost \
 
 vulkan_drivers=$(echo $vulkan_drivers | xargs | tr ' ' ',')
 
+%if %{with gallium_rusticl}
+%ifarch %{arm32_with_hf}
+export BINDGEN_EXTRA_CLANG_ARGS="-mfloat-abi=hard"
+%endif
+%endif
+
 %meson build \
 	-Dplatforms=x11%{?with_wayland:,wayland} \
 	-Ddri3=enabled \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/958c933ebc086e0e568bc061cb651f89213699d1



More information about the pld-cvs-commit mailing list