From nobody Sat Jul 30 13:56:27 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Lw5XC5QNVz4XkPf for ; Sat, 30 Jul 2022 13:56:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lw5XC4LH9z49yg for ; Sat, 30 Jul 2022 13:56:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lw5XC38C4zGqt for ; Sat, 30 Jul 2022 13:56:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26UDuRxo098101 for ; Sat, 30 Jul 2022 13:56:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26UDuRls098100 for ports-bugs@FreeBSD.org; Sat, 30 Jul 2022 13:56:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265519] devel/libunwind: fix build with clang 15 Date: Sat, 30 Jul 2022 13:56:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659189387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zKvLaHm6te+CwOzvPZxTo2jPo8H+htJMYOxYj4aoiYc=; b=aWxVAPFXpHfg07oS3bJPacHiN/On143QkecVvK4VrtyyW5ZzDT+PTE9reznQAbXXMN2fE+ lQoaHruDRL2H506jTo+OtwVLM43MHm86PBCOtVEJNoNyNXn5ur8KyssHg0R3MT+Qg2O27U KzQhuafcmwcYIMRMXdWj/04oP/qb+ofvCzIIMk/3/yxwsaUBMRiJfbWKQDvdNjlbuzIooj VUBnYx4G4y9KS+fgvxownAGNoynx736oOcZ9bkV8eCfXDK6PYpvEYAjnGSEWNHy+tfjYmP CmvL1gQesUBjDqgIAh9U0bWzxep7qmYVhkYbGdwCnqE7bHtcrt662TaCSloOfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659189387; a=rsa-sha256; cv=none; b=d+xA6iSW77AHsgCFZK9uq/pZxI32D6lblqbAkcKEpicSM6ZRSOKIQS+wlPLb23S4Zza6Di 2qP33DgTcUd0o49yK+oTXCJvCQ727jES8+AO5ZUlfyMHvXUk3yExrQo3fLkAciJ/b8zfcy Bb/o2z8IHEfP1IOYRkdsnuBT+KrbGd/EXy8ytV/S6ye/gGxkZpQdQw5ztB5E/F/7cosMMB uH1LakoHkZ337aQ4686l2ZJhoGy3Ly3P0S4Nx4qN5JtS968U5hYBxrK8dnJqOHQC0+BqDl /PbaE8w1VAriaw9mqcIvKWAiDMa22qyWXl6yHr1OPC3xPXZ3M9tQXUwWao2i5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265519 Bug ID: 265519 Summary: devel/libunwind: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org During an exp-run for llvm 15 (see bug 265425), it turned out that devel/libunwind fails to build with clang and lld 15, with multiple errors: setjmp/siglongjmp.c:111:48: error: incompatible pointer to integer conversion passing 'unw_word_t *' (aka 'unsigned long *') to parameter of t= ype 'unw_word_t' (aka 'unsigned long'); remove & [-Wint-conversion] if (unw_set_reg (&c, UNW_REG_EH + 2, &wp[JB_MASK]) < 0) ^~~~~~~~~~~~ ../include/libunwind-common.h:283:56: note: passing argument to paramet= er here extern int unw_set_reg (unw_cursor_t *, int, unw_word_t); ^ dwarf/Gparser.c:901:5: error: call to undeclared function '_Ux86_64_stash_frame'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tdep_stash_frame (c, rs); ^ ../include/tdep-x86_64/libunwind_i.h:246:41: note: expanded from macro 'tdep_stash_frame' #define tdep_stash_frame UNW_OBJ(stash_frame) ^ The first error is because the syntax is indeed wrong, the '&' should be removed. The second error is because tdep_stash_frame() is only declared for Linux in libunwind_i.h, but it is used in Gparser.c. Declare it unconditionally to fix the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=