NetBSD Problem Report #56791

From he@smistad.uninett.no  Tue Apr 12 18:46:39 2022
Return-Path: <he@smistad.uninett.no>
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C1AA71A921F
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 12 Apr 2022 18:46:38 +0000 (UTC)
Message-Id: <20220412184631.ED4FC43FF9F@smistad.uninett.no>
Date: Tue, 12 Apr 2022 20:46:31 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: lang/libunwind 13.0.1 fails to build on sparc64
X-Send-Pr-Version: 3.95

>Number:         56791
>Category:       pkg
>Synopsis:       libunwind 13.0.1 fails to build on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 12 18:50:00 +0000 2022
>Last-Modified:  Sat Apr 23 16:00:03 +0000 2022
>Originator:     Havard Eidnes
>Release:        NetBSD 9.99.96
>Organization:
   I try...
>Environment:
System: NetBSD s1.urc.uninett.no 9.99.96 NetBSD 9.99.96 (S1) #11: Mon Apr  4 02:09:51 CEST 2022  he@s1.urc.uninett.no:/usr/obj/sys/arch/sparc64/compile/S1 sparc64
Architecture: sparc64
Machine: sparc64
>Description:

>How-To-Repeat:
	The build of lang/libunwind 13.0.1 is failing, blocking other
	package builds on sparc64:

/usr/pkgsrc/lang/libunwind/work/libunwind-13.0.1.src/src/UnwindCursor.hpp: In instantiation of 'libunwind::UnwindCursor<A, R>::UnwindCursor(unw_context_t*, A&) [with A = libunwind::LocalAddressSpace; R = libunwind::Registers_sparc; unw_context_t = unw_context_t]':
/usr/pkgsrc/lang/libunwind/work/libunwind-13.0.1.src/src/libunwind.cpp:82:56:   required from here
/usr/pkgsrc/lang/libunwind/work/libunwind-13.0.1.src/src/UnwindCursor.hpp:1211:63: error: static assertion failed: UnwindCursor<> does not fit in unw_cursor_t
 1211 |   static_assert((check_fit<UnwindCursor<A, R>, unw_cursor_t>::does_fit),
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

      and it's downhill from there.


>Fix:
	Sorry, do not know...
	Suggestions welcome.

>Audit-Trail:
From: "Havard Eidnes" <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56791 CVS commit: pkgsrc/lang/rust
Date: Mon, 18 Apr 2022 14:59:59 +0000

 Module Name:	pkgsrc
 Committed By:	he
 Date:		Mon Apr 18 14:59:59 UTC 2022

 Modified Files:
 	pkgsrc/lang/rust: options.mk

 Log Message:
 rust: default to rust-llvm on NetBSD/sparc64.

 (NetBSD)/sparc64 systems fail to build libunwind 13.0.1,
 and libunwind is depended on here unless rust-llvm is turned
 on.  The latter succeeds, though.  So default to using
 rust-llvm on NetBSD/sparc64.
 Ref. PR#56791


 To generate a diff of this commit:
 cvs rdiff -u -r1.20 -r1.21 pkgsrc/lang/rust/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56791: lang/libunwind 13.0.1 fails to build on sparc64
Date: Thu, 21 Apr 2022 02:38:36 +0000

 Not sent to gnats.

    ------

 From: Havard Eidnes <he@NetBSD.org>
 To: gnats-admin@netbsd.org
 cc: pkgsrc-bugs@netbsd.org
 Subject: Re: pkg/56791: lang/libunwind 13.0.1 fails to build on sparc64
 Date: Fri, 15 Apr 2022 00:41:13 +0200 (CEST)

 Hi,

 it seems FreeBSD has found the similar issue with libunwind:

   https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233405

 Regards,

 - H?vard

From: "Havard Eidnes" <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56791 CVS commit: pkgsrc/lang/rust
Date: Sat, 23 Apr 2022 15:54:35 +0000

 Module Name:	pkgsrc
 Committed By:	he
 Date:		Sat Apr 23 15:54:34 UTC 2022

 Modified Files:
 	pkgsrc/lang/rust: options.mk

 Log Message:
 lang/rust: don't depend in libunwind, does not appear to be required.

 Also remove the workaround for PR#56791, now that sparc64 can
 build rust without the "rust-llvm" option set.


 To generate a diff of this commit:
 cvs rdiff -u -r1.21 -r1.22 pkgsrc/lang/rust/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Havard Eidnes" <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56791 CVS commit: pkgsrc/lang/rust
Date: Sat, 23 Apr 2022 15:55:31 +0000

 Module Name:	pkgsrc
 Committed By:	he
 Date:		Sat Apr 23 15:55:31 UTC 2022

 Modified Files:
 	pkgsrc/lang/rust: Makefile

 Log Message:
 lang/rust: bump PKGREVISION after removal of PR#56791 workaround.


 To generate a diff of this commit:
 cvs rdiff -u -r1.253 -r1.254 pkgsrc/lang/rust/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

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.