pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang gcc*: disable full bootstrap when the pkgsrc comp...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a0dd385e56a1
branches: trunk
changeset: 455027:a0dd385e56a1
user: tnn <tnn%pkgsrc.org@localhost>
date: Sat Jun 26 17:42:23 2021 +0000
description:
gcc*: disable full bootstrap when the pkgsrc compiler is clang
LLVM versions >= 12 cannot currently correctly compile gcc stage 1 because
GCC assumes references to certain symbols like "ix86_isa_flags" will be
optimized away.
Details: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255760
diffstat:
lang/gcc10/Makefile | 5 ++++-
lang/gcc6/Makefile | 5 ++++-
lang/gcc7/Makefile | 5 ++++-
lang/gcc8/Makefile | 5 ++++-
lang/gcc9/Makefile | 5 ++++-
5 files changed, 20 insertions(+), 5 deletions(-)
diffs (95 lines):
diff -r dc9461e5c2a1 -r a0dd385e56a1 lang/gcc10/Makefile
--- a/lang/gcc10/Makefile Sat Jun 26 14:08:44 2021 +0000
+++ b/lang/gcc10/Makefile Sat Jun 26 17:42:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2021/05/24 19:52:30 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2021/06/26 17:42:23 tnn Exp $
GCC_PKGNAME= gcc10
PKGREVISION= 1
@@ -121,6 +121,9 @@
MAKE_ENV.SunOS+= ac_cv_func_mkostemp=no
CONFIGURE_ARGS.DragonFly+= --disable-bootstrap
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ARGS+= --disable-bootstrap
+.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386)
CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
diff -r dc9461e5c2a1 -r a0dd385e56a1 lang/gcc6/Makefile
--- a/lang/gcc6/Makefile Sat Jun 26 14:08:44 2021 +0000
+++ b/lang/gcc6/Makefile Sat Jun 26 17:42:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2021/05/24 19:52:31 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2021/06/26 17:42:23 tnn Exp $
GCC_PKGNAME= gcc6
.include "version.mk"
@@ -130,6 +130,9 @@
MAKE_ENV.SunOS+= ac_cv_func_mkostemp=no
CONFIGURE_ARGS.DragonFly+= --disable-bootstrap
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ARGS+= --disable-bootstrap
+.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386)
CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
diff -r dc9461e5c2a1 -r a0dd385e56a1 lang/gcc7/Makefile
--- a/lang/gcc7/Makefile Sat Jun 26 14:08:44 2021 +0000
+++ b/lang/gcc7/Makefile Sat Jun 26 17:42:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2021/05/24 19:52:31 wiz Exp $
+# $NetBSD: Makefile,v 1.40 2021/06/26 17:42:23 tnn Exp $
GCC_PKGNAME= gcc7
.include "version.mk"
@@ -120,6 +120,9 @@
MAKE_ENV.SunOS+= ac_cv_func_mkostemp=no
CONFIGURE_ARGS.DragonFly+= --disable-bootstrap
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ARGS+= --disable-bootstrap
+.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386)
CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
diff -r dc9461e5c2a1 -r a0dd385e56a1 lang/gcc8/Makefile
--- a/lang/gcc8/Makefile Sat Jun 26 14:08:44 2021 +0000
+++ b/lang/gcc8/Makefile Sat Jun 26 17:42:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2021/05/24 19:52:31 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2021/06/26 17:42:23 tnn Exp $
GCC_PKGNAME= gcc8
.include "version.mk"
@@ -125,6 +125,9 @@
MAKE_ENV.SunOS+= ac_cv_func_mkostemp=no
CONFIGURE_ARGS.DragonFly+= --disable-bootstrap
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ARGS+= --disable-bootstrap
+.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386)
CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
diff -r dc9461e5c2a1 -r a0dd385e56a1 lang/gcc9/Makefile
--- a/lang/gcc9/Makefile Sat Jun 26 14:08:44 2021 +0000
+++ b/lang/gcc9/Makefile Sat Jun 26 17:42:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2021/05/24 19:52:31 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2021/06/26 17:42:23 tnn Exp $
GCC_PKGNAME= gcc9
.include "version.mk"
@@ -126,6 +126,9 @@
MAKE_ENV.SunOS+= ac_cv_func_mkostemp=no
CONFIGURE_ARGS.DragonFly+= --disable-bootstrap
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ARGS+= --disable-bootstrap
+.endif
.if ${MACHINE_PLATFORM:MNetBSD-*-i386} || ${MACHINE_PLATFORM:MLinux-*-i386}
CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
Home |
Main Index |
Thread Index |
Old Index