diff options
author | rillig <rillig@pkgsrc.org> | 2020-01-10 07:49:48 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-01-10 07:49:48 +0000 |
commit | 415bc610436a32cbac8a17b65a6920eed7c89a76 (patch) | |
tree | 9c8443987c22cda8c0ac88b72482fdc5ccd028fa /lang/gcc9 | |
parent | c0b8b33babdfbd0feb02f46a38dfb47eeccd5800 (diff) | |
download | pkgsrc-415bc610436a32cbac8a17b65a6920eed7c89a76.tar.gz |
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 (limited to 'lang/gcc9')
-rw-r--r-- | lang/gcc9/distinfo | 3 | ||||
-rw-r--r-- | lang/gcc9/patches/patch-libgomp_affinity-fmt.c | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/lang/gcc9/distinfo b/lang/gcc9/distinfo index 4d3fa866637..1e20f090acc 100644 --- a/lang/gcc9/distinfo +++ b/lang/gcc9/distinfo @@ -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 --git a/lang/gcc9/patches/patch-libgomp_affinity-fmt.c b/lang/gcc9/patches/patch-libgomp_affinity-fmt.c new file mode 100644 index 00000000000..75874657494 --- /dev/null +++ b/lang/gcc9/patches/patch-libgomp_affinity-fmt.c @@ -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 |