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: broken on SunOS-*-x86_64



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b7b0c7e2546
branches:  trunk
changeset: 410617:4b7b0c7e2546
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 25 20:29:11 2020 +0000

description:
lang/gcc9: broken on SunOS-*-x86_64

diffstat:

 lang/gcc9/Makefile |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r a301416ab939 -r 4b7b0c7e2546 lang/gcc9/Makefile
--- a/lang/gcc9/Makefile        Sat Jan 25 20:20:45 2020 +0000
+++ b/lang/gcc9/Makefile        Sat Jan 25 20:29:11 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2020/01/25 20:20:45 rillig Exp $
+# $NetBSD: Makefile,v 1.7 2020/01/25 20:29:11 rillig Exp $
 
 GCC9_VERSION=  9.2.0
 
@@ -60,6 +60,18 @@
 #    for (long pi = start_idx; pi >= 0; pi--)
 NOT_FOR_PLATFORM+=     Linux-*-x86_64
 
+# The build and target host is x86_64-sun-solaris2.11.
+# It still fails to compile some seemingly linux-specific code.
+#
+# libtool: compile:  /home/pbulk/build/lang/gcc9/work/build/./gcc/xgcc [...]
+#   -c ../../../../gcc-9.2.0/libsanitizer/sanitizer_common/sanitizer_linux.cc
+# ...
+# ../../../../gcc-9.2.0/libsanitizer/sanitizer_common/sanitizer_linux.cc: In constructor '__sanitizer::ThreadLister::ThreadLister(__sanitizer::pid_t)':
+# ../../../../gcc-9.2.0/libsanitizer/sanitizer_common/sanitizer_linux.cc:932:63: error: 'O_DIRECTORY' was not declared in this scope
+#  932 |   descriptor_ = internal_open(task_directory_path, O_RDONLY | O_DIRECTORY);
+#      |                                                               ^~~~~~~~~~~
+NOT_FOR_PLATFORM+=     SunOS-*-x86_64
+
 LANGS=                 c
 
 # In some cases LINKER_RPATH_FLAG needs a trailing space.



Home | Main Index | Thread Index | Old Index