NetBSD Problem Report #58473
From www@netbsd.org Fri Jul 26 22:23:11 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 80EE81A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 26 Jul 2024 22:23:11 +0000 (UTC)
Message-Id: <20240726222310.3EF381A923B@mollari.NetBSD.org>
Date: Fri, 26 Jul 2024 22:23:10 +0000 (UTC)
From: phil+netbsd@krylov.eu
Reply-To: phil+netbsd@krylov.eu
To: gnats-bugs@NetBSD.org
Subject: lang/libunwind 18.0.0+ requires C++17
X-Send-Pr-Version: www-1.0
>Number: 58473
>Category: pkg
>Synopsis: lang/libunwind 18.0.0+ requires C++17
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 26 22:25:00 +0000 2024
>Closed-Date: Fri Jul 26 22:31:05 +0000 2024
>Last-Modified: Fri Jul 26 22:35:01 +0000 2024
>Originator: Phil Krylov
>Release: pkgsrc-current
>Organization:
krylov.eu
>Environment:
Linux localhost.localdomain 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
>Description:
Under CentOS 7, where GCC 4.8.5 is the default compiler, lang/libunwind build fails with the message that it requires a C++17-compatible compiler. When I raise USE_CXX_FEATURES to c++14, GCC 6.5 is installed and compiles libunwind successfully, but the CMakeLists.txt still say C++17 is required, so I have changed that to c++17 to be on the safe side. Probably c++14 would be enough.
>How-To-Repeat:
bmake -C lang/libunwind bin-install
>Fix:
Index: lang/libunwind/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/libunwind/Makefile,v
retrieving revision 1.37
diff -p -u -r1.37 Makefile
--- lang/libunwind/Makefile 6 Jul 2024 15:45:07 -0000 1.37
+++ lang/libunwind/Makefile 26 Jul 2024 22:13:44 -0000
@@ -18,7 +18,7 @@ EXTRA_DIST+= ${LIBCXX}${EXTRACT_SUFX}
SITES.${LIBCXX}${EXTRACT_SUFX}= \
${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/}
-USE_CXX_FEATURES= c++11
+USE_CXX_FEATURES= c++17
USE_LANGUAGES= c c++
USE_TOOLS+= pax
SSP_SUPPORTED= no
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 26 Jul 2024 22:31:05 +0000
State-Changed-Why:
Committed, thanks.
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58473 CVS commit: pkgsrc/lang/libunwind
Date: Fri, 26 Jul 2024 22:30:47 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Fri Jul 26 22:30:47 UTC 2024
Modified Files:
pkgsrc/lang/libunwind: Makefile
Log Message:
libunwind: build requires C++17
From Phil Krylov in PR 58473.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/lang/libunwind/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.