| @@ -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 | |
3 | GCC9_VERSION= 9.2.0 | | 3 | GCC9_VERSION= 9.2.0 |
4 | | | 4 | |
5 | DISTNAME= gcc-${GCC9_VERSION} | | 5 | DISTNAME= gcc-${GCC9_VERSION} |
6 | PKGNAME= gcc9-${GCC9_VERSION} | | 6 | PKGNAME= gcc9-${GCC9_VERSION} |
7 | PKGREVISION= 1 | | 7 | PKGREVISION= 1 |
8 | CATEGORIES= lang | | 8 | CATEGORIES= lang |
9 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC9_VERSION}/} | | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC9_VERSION}/} |
10 | EXTRACT_SUFX= .tar.xz | | 10 | EXTRACT_SUFX= .tar.xz |
11 | | | 11 | |
12 | MAINTAINER= pkgsrc-users@NetBSD.org | | 12 | MAINTAINER= pkgsrc-users@NetBSD.org |
13 | HOMEPAGE= https://gcc.gnu.org/ | | 13 | HOMEPAGE= https://gcc.gnu.org/ |
14 | COMMENT= The GNU Compiler Collection (GCC) - Release 9 Series | | 14 | COMMENT= 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--) |
61 | NOT_FOR_PLATFORM+= Linux-*-x86_64 | | 61 | NOT_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 | # | ^~~~~~~~~~~ |
| | | 73 | NOT_FOR_PLATFORM+= SunOS-*-x86_64 |
| | | 74 | |
63 | LANGS= c | | 75 | LANGS= 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. |
66 | LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} | | 78 | LINKER_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. |
69 | LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} | | 81 | LDFLAGS_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. |
74 | BOOT_LDFLAGS= -static-libstdc++ -static-libgcc ${LDFLAGS_FOR_TARGET} | | 86 | BOOT_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 |