NetBSD Problem Report #59604

From www@netbsd.org  Wed Aug 20 01:26:59 2025
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) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 069F21A923A
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 20 Aug 2025 01:26:59 +0000 (UTC)
Message-Id: <20250820012657.E60FB1A923C@mollari.NetBSD.org>
Date: Wed, 20 Aug 2025 01:26:57 +0000 (UTC)
From: zandoye@gmail.com
Reply-To: zandoye@gmail.com
To: gnats-bugs@NetBSD.org
Subject: platform-header file does not exist while installing lang/clang if the riscv target is disabled in lang/llvm
X-Send-Pr-Version: www-1.0

>Number:         59604
>Category:       pkg
>Synopsis:       platform-header file does not exist while installing lang/clang if the riscv target is disabled in lang/llvm
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 20 01:30:01 +0000 2025
>Last-Modified:  Wed Aug 20 14:00:01 +0000 2025
>Originator:     kandu
>Release:        pkgsrc-2025Q2
>Organization:
smaji
>Environment:
Darwin ZANs-MBP.lan 20.6.0 Darwin Kernel Version 20.6.0: Thu Jul  6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 x86_64
>Description:
while in the installation phase of the lang/clang package, pkgsrc complains that the file

${PLIST.RISCV}lib/clang/19/include/riscv_vector.h

does not exist
>How-To-Repeat:
set the PKG_OPTIONS.llvm options without llvm-target-riscv
and then build the lang/clang package

PKG_OPTIONS.llvm= -* llvm-target-x86 llvm-target-aarch64 llvm-target-arm llvm-target-webassembly
>Fix:
This is just a workaround to bypass the PLIST checking

delete exactly the one line

${PLIST.RISCV}lib/clang/19/include/riscv_vector.h

in the PLIST file of the package lang/clang and invoke

bmake install

again.

>Audit-Trail:
From: Thomas Klausner <wiz@gatalith.at>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/59604: platform-header file does not exist while installing
 lang/clang if the riscv target is disabled in lang/llvm
Date: Wed, 20 Aug 2025 15:53:30 +0200

 This problem is fixed in HEAD:

 /usr/pkgsrc/lang/llvm> grep lib/clang/19/include/riscv_vector.h PLIST
 /usr/pkgsrc/lang/llvm>

  Thomas

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.