git: 1e55f2d4fdf9 - 2025Q3 - lang/gcc16-devel: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Sep 2025 15:22:36 UTC
The branch 2025Q3 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1e55f2d4fdf90827bbe5e2f26c3d542fac855af2
commit 1e55f2d4fdf90827bbe5e2f26c3d542fac855af2
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-09-19 18:26:23 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-22 15:22:30 +0000
lang/gcc16-devel: fix build on armv7
Some type confusion issues.
Approved by: portmgr (build fix blanket)
MFH: 2025Q3
(cherry picked from commit a3f86bfa89021696f42a133a98e314b2b6875418)
---
.../gcc16-devel/files/patch-gcc_jit_jit-recording.cc | 11 +++++++++++
lang/gcc16-devel/files/patch-gcc_jit_libgccjit.cc | 20 ++++++++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/lang/gcc16-devel/files/patch-gcc_jit_jit-recording.cc b/lang/gcc16-devel/files/patch-gcc_jit_jit-recording.cc
new file mode 100644
index 000000000000..eb1071b632c0
--- /dev/null
+++ b/lang/gcc16-devel/files/patch-gcc_jit_jit-recording.cc
@@ -0,0 +1,11 @@
+--- gcc/jit/jit-recording.cc.orig 2025-09-19 17:08:24 UTC
++++ gcc/jit/jit-recording.cc
+@@ -4822,7 +4822,7 @@ recording::function::write_reproducer (reproducer &r)
+ r.write(" gcc_jit_function_add_integer_array_attribute (%s,\n"
+ " %s,\n"
+ " (int[])%s,\n"
+- " %lu);\n",
++ " %zu);\n",
+ id,
+ fn_attribute_reproducer_strings[std::get<0>(attribute)],
+ get_vector_int_debug (std::get<1>(attribute)).c_str(),
diff --git a/lang/gcc16-devel/files/patch-gcc_jit_libgccjit.cc b/lang/gcc16-devel/files/patch-gcc_jit_libgccjit.cc
new file mode 100644
index 000000000000..82b0517b99bd
--- /dev/null
+++ b/lang/gcc16-devel/files/patch-gcc_jit_libgccjit.cc
@@ -0,0 +1,20 @@
+--- gcc/jit/libgccjit.cc.orig 2025-09-19 17:04:52 UTC
++++ gcc/jit/libgccjit.cc
+@@ -4405,7 +4405,7 @@ gcc_jit_context_new_rvalue_vector_perm (gcc_jit_contex
+ mask_len == elements1_len,
+ ctxt, loc,
+ "mismatching length for mask:"
+- " elements1 length: %ld mask length: %ld",
++ " elements1 length: %zu mask length: %zu",
+ mask_len,
+ elements1_len);
+
+@@ -4426,7 +4426,7 @@ gcc_jit_context_new_rvalue_vector_perm (gcc_jit_contex
+ mask_element_size == elements1_element_size,
+ ctxt, loc,
+ "mismatching size for mask element type:"
+- " elements1 element type: %ld mask element type: %ld",
++ " elements1 element type: %zu mask element type: %zu",
+ mask_element_size,
+ elements1_element_size);
+