pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc9 lang/gcc9: fix build problem on CentOS 6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ae80b6e86005
branches:  trunk
changeset: 347284:ae80b6e86005
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jan 10 07:49:48 2020 +0000

description:
lang/gcc9: fix build problem on CentOS 6

There may still be follow-up problems. This fix is just based on the bulk
build logs.

diffstat:

 lang/gcc9/distinfo                             |   3 ++-
 lang/gcc9/patches/patch-libgomp_affinity-fmt.c |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r da6889ff6451 -r ae80b6e86005 lang/gcc9/distinfo
--- a/lang/gcc9/distinfo        Fri Jan 10 07:46:43 2020 +0000
+++ b/lang/gcc9/distinfo        Fri Jan 10 07:49:48 2020 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.1 2020/01/05 21:15:45 rillig Exp $
+$NetBSD: distinfo,v 1.2 2020/01/10 07:49:48 rillig Exp $
 
 SHA1 (gcc-9.2.0.tar.xz) = 306d27c3465fa36862c206738d06d65fff5c3645
 RMD160 (gcc-9.2.0.tar.xz) = a51d7f812f45980c517c4505e04a217cf319a992
 SHA512 (gcc-9.2.0.tar.xz) = a12dff52af876aee0fd89a8d09cdc455f35ec46845e154023202392adc164848faf8ee881b59b681b696e27c69fd143a214014db4214db62f9891a1c8365c040
 Size (gcc-9.2.0.tar.xz) = 70607648 bytes
+SHA1 (patch-libgomp_affinity-fmt.c) = 4dd5c204f1d45b466269e7a854ecadb99a7d6eeb
 SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h) = f12f6a97f94d13efa73a2500411bc77b27887edd
 SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__configure__char.cc) = 007bce70f75deace18f60924b5a3f94bf7a0af2f
diff -r da6889ff6451 -r ae80b6e86005 lang/gcc9/patches/patch-libgomp_affinity-fmt.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc9/patches/patch-libgomp_affinity-fmt.c    Fri Jan 10 07:49:48 2020 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-libgomp_affinity-fmt.c,v 1.1 2020/01/10 07:49:48 rillig Exp $
+
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93219
+
+On RedHat EL 6 x86_64:
+
+> ../../../gcc-9.2.0/libgomp/affinity-fmt.c: In function 'gomp_print_string':
+> ../../../gcc-9.2.0/libgomp/affinity-fmt.c:43:3: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result]
+>    43 |   fwrite (str, 1, len, stderr);
+>       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+--- libgomp/affinity-fmt.c.orig        2019-01-01 12:31:55.000000000 +0000
++++ libgomp/affinity-fmt.c
+@@ -40,7 +40,7 @@
+ void
+ gomp_print_string (const char *str, size_t len)
+ {
+-  fwrite (str, 1, len, stderr);
++  (void)fwrite (str, 1, len, stderr);
+ }
+ 
+ void



Home | Main Index | Thread Index | Old Index