NetBSD Problem Report #55627

From www@netbsd.org  Sun Aug 30 03:28:38 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8A2EC1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 30 Aug 2020 03:28:38 +0000 (UTC)
Message-Id: <20200830032837.2967E1A923F@mollari.NetBSD.org>
Date: Sun, 30 Aug 2020 03:28:37 +0000 (UTC)
From: tr@vispaul.me
Reply-To: tr@vispaul.me
To: gnats-bugs@NetBSD.org
Subject: git-base fails to build using GCC 7.4.0 with PKGSRC_USE_STACK_CHECK
X-Send-Pr-Version: www-1.0

>Number:         55627
>Category:       pkg
>Synopsis:       git-base fails to build using GCC 7.4.0 with PKGSRC_USE_STACK_CHECK
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 30 03:30:00 +0000 2020
>Originator:     Travis Paul
>Release:        NetBSD 9.0 (GCC in base) and pkgsrc current
>Organization:
>Environment:
NetBSD pbulk-limited.local 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
When setting PKGSRC_USE_STACK_CHECK=yes in mk.conf git-base fails to build with the following error:

in file included from builtin/rebase.c:20:0:
builtin/rebase.c: In function 'cmd_rebase__interactive':
builtin/rebase.c:480:37: internal compiler error: in recompute_tree_invariant_for_addr_expr, at tree.c:4282
   OPT_CALLBACK_F('k', "keep-empty", &options, NULL,
./parse-options.h:152:32: note: in definition of macro 'OPT_CALLBACK_F'
  { OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), (cb) }
                                ^
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.
gmake: *** [Makefile:2386: builtin/rebase.o] Error 1

>How-To-Repeat:
Build git-base-2.28.0 using GCC 7.4.0 with with PKGSRC_USE_STACK_CHECK=yes
>Fix:
I only know of workarounds:
- Set PKGSRC_USE_STACK_CHECK=no in mk.conf 
- Use the default disabled value (of no) 
- Set STACK_CHECK_SUPPORTED=no in /usr/pkgsrc/devel/git/Makefile.common (Maybe this can be done conditionally when using GCC 7.4.0?)

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.