pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

fix for cross/aarch64-none-elf-gcc



Is the objections against the following patch?
I'll add comments to it.

Problem:
https://us-central.manta.mnx.io/pkgsrc/public/reports/Linux/el8/trunk/x86_64/20240523.1429/cross-aarch64-none-elf-gcc-8.2.0nb5/build.log

Solution:
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/cross/aarch64-none-elf-gcc/distinfo,v
retrieving revision 1.7
diff -u -r1.7 distinfo
--- distinfo	15 Apr 2022 17:16:07 -0000	1.7
+++ distinfo	7 Jun 2024 20:20:04 -0000
@@ -8,6 +8,7 @@
 Size (newlib-3.0.0.tar.gz) = 18168046 bytes
 SHA1 (patch-gcc_config_aarch64_aarch64.h) = 7571479979f480ff1a1e7391e92fd30b1be99ac2
 SHA1 (patch-gcc_config_host-darwin.c) = bb6513d096bed62a3c40a6543c6c854e5c20ef9d
+SHA1 (patch-gcc_plugin.c) = ca3991ba929a8501aba29b97a26d1f7455562efc
 SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
 SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
 SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
Index: patches/patch-gcc_plugin.c
===================================================================
RCS file: patches/patch-gcc_plugin.c
diff -N patches/patch-gcc_plugin.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-gcc_plugin.c	7 Jun 2024 20:20:04 -0000
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- gcc/plugin.c.orig	2024-06-07 13:22:58.717044364 +0000
++++ gcc/plugin.c
+@@ -677,6 +677,8 @@ try_init_one_plugin (struct plugin_name_
+
+ #else // POSIX-like with dlopen()/dlsym().
+
++#include <dlfcn.h>
++
+ /* We need a union to cast dlsym return value to a function pointer
+    as ISO C forbids assignment between function pointer and 'void *'.
+    Use explicit union instead of __extension__(<union_cast>) for


Home | Main Index | Thread Index | Old Index