Sat Jan 25 20:29:11 2020 UTC ()
lang/gcc9: broken on SunOS-*-x86_64


(rillig)
diff -r1.6 -r1.7 pkgsrc/lang/gcc9/Makefile

cvs diff -r1.6 -r1.7 pkgsrc/lang/gcc9/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/gcc9/Makefile 2020/01/25 20:20:45 1.6
+++ pkgsrc/lang/gcc9/Makefile 2020/01/25 20:29:11 1.7
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.6 2020/01/25 20:20:45 rillig Exp $ 1# $NetBSD: Makefile,v 1.7 2020/01/25 20:29:11 rillig Exp $
2 2
3GCC9_VERSION= 9.2.0 3GCC9_VERSION= 9.2.0
4 4
5DISTNAME= gcc-${GCC9_VERSION} 5DISTNAME= gcc-${GCC9_VERSION}
6PKGNAME= gcc9-${GCC9_VERSION} 6PKGNAME= gcc9-${GCC9_VERSION}
7PKGREVISION= 1 7PKGREVISION= 1
8CATEGORIES= lang 8CATEGORIES= lang
9MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC9_VERSION}/} 9MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC9_VERSION}/}
10EXTRACT_SUFX= .tar.xz 10EXTRACT_SUFX= .tar.xz
11 11
12MAINTAINER= pkgsrc-users@NetBSD.org 12MAINTAINER= pkgsrc-users@NetBSD.org
13HOMEPAGE= https://gcc.gnu.org/ 13HOMEPAGE= https://gcc.gnu.org/
14COMMENT= The GNU Compiler Collection (GCC) - Release 9 Series 14COMMENT= The GNU Compiler Collection (GCC) - Release 9 Series
@@ -50,26 +50,38 @@ CHECK_PORTABILITY_SKIP= contrib/download @@ -50,26 +50,38 @@ CHECK_PORTABILITY_SKIP= contrib/download
50# Linux/el7/trunk/x86_64/20200123.2242/gcc9-9.2.0nb1/build.log 50# Linux/el7/trunk/x86_64/20200123.2242/gcc9-9.2.0nb1/build.log
51# ... 51# ...
52# cc -c -DHAVE_CONFIG_H -g -I/usr/include -I/usr/pkg/include \ 52# cc -c -DHAVE_CONFIG_H -g -I/usr/include -I/usr/pkg/include \
53# -I/usr/pkg/include/python3.7 -I. \ 53# -I/usr/pkg/include/python3.7 -I. \
54# -I../../gcc-9.2.0/libiberty/../include -W -Wall -Wwrite-strings \ 54# -I../../gcc-9.2.0/libiberty/../include -W -Wall -Wwrite-strings \
55# -Wc++-compat -Wstrict-prototypes -pedantic \ 55# -Wc++-compat -Wstrict-prototypes -pedantic \
56# -D_GNU_SOURCE ../../gcc-9.2.0/libiberty/argv.c -o argv.o 56# -D_GNU_SOURCE ../../gcc-9.2.0/libiberty/argv.c -o argv.o
57# ... 57# ...
58# compute_powtab.c: In function 'mpn_compute_powtab_mul': 58# compute_powtab.c: In function 'mpn_compute_powtab_mul':
59# compute_powtab.c:142:3: error: 'for' loop initial declarations are only allowed in C99 mode 59# compute_powtab.c:142:3: error: 'for' loop initial declarations are only allowed in C99 mode
60# for (long pi = start_idx; pi >= 0; pi--) 60# for (long pi = start_idx; pi >= 0; pi--)
61NOT_FOR_PLATFORM+= Linux-*-x86_64 61NOT_FOR_PLATFORM+= Linux-*-x86_64
62 62
 63# The build and target host is x86_64-sun-solaris2.11.
 64# It still fails to compile some seemingly linux-specific code.
 65#
 66# libtool: compile: /home/pbulk/build/lang/gcc9/work/build/./gcc/xgcc [...]
 67# -c ../../../../gcc-9.2.0/libsanitizer/sanitizer_common/sanitizer_linux.cc
 68# ...
 69# ../../../../gcc-9.2.0/libsanitizer/sanitizer_common/sanitizer_linux.cc: In constructor '__sanitizer::ThreadLister::ThreadLister(__sanitizer::pid_t)':
 70# ../../../../gcc-9.2.0/libsanitizer/sanitizer_common/sanitizer_linux.cc:932:63: error: 'O_DIRECTORY' was not declared in this scope
 71# 932 | descriptor_ = internal_open(task_directory_path, O_RDONLY | O_DIRECTORY);
 72# | ^~~~~~~~~~~
 73NOT_FOR_PLATFORM+= SunOS-*-x86_64
 74
63LANGS= c 75LANGS= c
64 76
65# In some cases LINKER_RPATH_FLAG needs a trailing space. 77# In some cases LINKER_RPATH_FLAG needs a trailing space.
66LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} 78LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /}
67 79
68## The Library rpath to use in end programs. 80## The Library rpath to use in end programs.
69LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} 81LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*}
70 82
71# The "-static-libstdc++ -static-libgcc" flags are normally added to the 83# The "-static-libstdc++ -static-libgcc" flags are normally added to the
72# boot-ldflags by configure but because we are supply the boot-ldflags 84# boot-ldflags by configure but because we are supply the boot-ldflags
73# we mash supply them. 85# we mash supply them.
74BOOT_LDFLAGS= -static-libstdc++ -static-libgcc ${LDFLAGS_FOR_TARGET} 86BOOT_LDFLAGS= -static-libstdc++ -static-libgcc ${LDFLAGS_FOR_TARGET}
75# Needed on Darwin when LDFLAGS point to a SDK 87# Needed on Darwin when LDFLAGS point to a SDK