summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authormarino <marino>2015-06-15 17:14:27 +0000
committermarino <marino>2015-06-15 17:14:27 +0000
commite316eefa3798ffe774cadda25d0ab6f9a05a4fe4 (patch)
tree5af23ea6cf838478fe8f3c83db7af4ac069b4afd /lang
parent239aa3b592a22f7c3539e923d202c050e2bab22b (diff)
downloadpkgsrc-e316eefa3798ffe774cadda25d0ab6f9a05a4fe4.tar.gz
lang/gcc5-aux: Reduce functionality to allow build on NetBSD 7
There are three major issues with gcc5-aux on NetBSD 7.0 Beta. 1) The gold linker fails in the middle of the build with an "operation not permitted" error. I believe this is either an issue directory with NetBSD 7.0 beta (not seen on 6.99) or an issue with the binutils 2.25 from pkgsrc. It turns out that NetBSD 7.0 uses binutils 2.23 which is new enough. By removing the requirement for using pkgsrc binutils, it will build until it hits issue #2 which is ... 2) Fortran no longer builds on NetBSD 7.0. Something about an "old" version of locale symbol. Something changed with locales and gcc5's Fortran does not like it. The solution is to turn off fortran and objc options by default. This means only C, C++, and Ada languages are supported by default. Obviously this is not a "solution" but it will have to do for now. 3) The signal trampoline has changed. The pattern for the signal trampoline has been altered and now the NetBSD unwind support can't recognize the end of the stack. This causes all the stack overflow and stack check tests to fail. I didn't do anything here. It requires a lot of work with gdb to figure out what the new pattern looks like and I don't have any sort of time for that. Stack handling still works for NetBSD 5 and 6 though.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc5-aux/Makefile5
-rw-r--r--lang/gcc5-aux/Makefile.version3
-rw-r--r--lang/gcc5-aux/options.mk5
3 files changed, 8 insertions, 5 deletions
diff --git a/lang/gcc5-aux/Makefile b/lang/gcc5-aux/Makefile
index 2a92c3e6bbf..756af879389 100644
--- a/lang/gcc5-aux/Makefile
+++ b/lang/gcc5-aux/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2015/06/15 09:46:27 marino Exp $
+# $NetBSD: Makefile,v 1.2 2015/06/15 17:14:27 marino Exp $
#
PKGNAME= gcc5-aux-${SNAPSHOT}
+PKGREVISION= ${MAIN_PR}
DISTNAME= ${IDENTIFICATION}
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/${IDENTIFICATION}/}
@@ -63,7 +64,7 @@ NSUFF= ${OS_VERSION}
NELF= elf
. endif
XLDF= -lm
-. if empty(OS_VERSION:M7.99.*)
+. if ${OS_VERSION:R} < 7
MODERN_BINUTILS= yes
. endif
BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.netbsd.614.tar.bz2
diff --git a/lang/gcc5-aux/Makefile.version b/lang/gcc5-aux/Makefile.version
index e8b77ececcf..45145dd751a 100644
--- a/lang/gcc5-aux/Makefile.version
+++ b/lang/gcc5-aux/Makefile.version
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.version,v 1.1 2015/06/15 09:46:27 marino Exp $
+# $NetBSD: Makefile.version,v 1.2 2015/06/15 17:14:27 marino Exp $
#
SNAPSHOT= 20150422
@@ -6,6 +6,7 @@ GCC_BRANCH= 5
GCC_POINT= 1.0
GCC_VERSION= ${GCC_BRANCH}.${GCC_POINT}
BUILD_RELEASE= yes
+MAIN_PR= 1
.if ${BUILD_RELEASE:Mno}
# Snapshot naming pattern
diff --git a/lang/gcc5-aux/options.mk b/lang/gcc5-aux/options.mk
index 837f43a1fed..e91d5a82e79 100644
--- a/lang/gcc5-aux/options.mk
+++ b/lang/gcc5-aux/options.mk
@@ -1,10 +1,11 @@
-# $NetBSD: options.mk,v 1.1 2015/06/15 09:46:27 marino Exp $
+# $NetBSD: options.mk,v 1.2 2015/06/15 17:14:27 marino Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gcc5-aux
PKG_SUPPORTED_OPTIONS= fortran objc testsuite static bootstrap
-PKG_SUGGESTED_OPTIONS= fortran objc
+PKG_SUGGESTED_OPTIONS= #fortran objc
# disable nls for now (build error involving iconv)
+# disable fortran, breaks during build on NetBSD 7.0-beta
.include "../../mk/bsd.options.mk"