NetBSD Problem Report #55627

From  Sun Aug 30 03:28:38 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 8A2EC1A923A
	for <>; Sun, 30 Aug 2020 03:28:38 +0000 (UTC)
Message-Id: <>
Date: Sun, 30 Aug 2020 03:28:37 +0000 (UTC)
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
NetBSD pbulk-limited.local 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 amd64

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 <> for instructions.
gmake: *** [Makefile:2386: builtin/rebase.o] Error 1

Build git-base-2.28.0 using GCC 7.4.0 with with PKGSRC_USE_STACK_CHECK=yes
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:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.