NetBSD Problem Report #57097
From www@netbsd.org Sun Dec 4 14:53:19 2022
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))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4003F1A921F
for <gnats-bugs@gnats.NetBSD.org>; Sun, 4 Dec 2022 14:53:19 +0000 (UTC)
Message-Id: <20221204145247.E5A311A923A@mollari.NetBSD.org>
Date: Sun, 4 Dec 2022 14:52:47 +0000 (UTC)
From: ci4ic4@gmail.com
Reply-To: ci4ic4@gmail.com
To: gnats-bugs@NetBSD.org
Subject: lang/zig build failure
X-Send-Pr-Version: www-1.0
>Number: 57097
>Category: pkg
>Synopsis: lang/zig build failure
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 04 14:55:00 +0000 2022
>Originator: Chavdar Ivanov
>Release: pkgsrc -current as of 04/11/2022
>Organization:
CI4 Consulting Ltd
>Environment:
NetBSD ymir.lorien.lan 9.99.108 NetBSD 9.99.108 (GENERIC) #8: Sat Dec 3 12:17:06 GMT 2022 sysbuild@ymir.lorien.lan:/home/sysbuild/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
lang/zig build fails close the the end with:
.....
[ 97%] Built target zigstage1
[ 98%] Building CXX object CMakeFiles/zig1.dir/src/stage1/zig0.cpp.o
[ 98%] Linking CXX executable zig1
[ 98%] Built target zig1
[ 99%] Building stage2 object /usr/pkgsrc/lang/zig/work/zig-0.10.0/zig2.o
./lib/std/Thread/Futex.zig:724:33: error: expected integer type, found 'comptime_int'
return addr >> @ctz(alignment);
^
./lib/std/os.zig:5300:17: error: querying for canonical path of a handle is unsupported on this host
else => @compileError("querying for canonical path of a handle is unsupported on this host"),
^
./lib/std/fs.zig:60:38: error: container 'std.os' has no member called 'MAXNAMLEN'
.netbsd, .openbsd, .solaris => os.MAXNAMLEN,
^
*** Error code 1
...
>How-To-Repeat:
Repeat the conditions above.
>Fix:
n/a
(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-2022
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.