NetBSD Problem Report #58417
From triaxx@netbsd.org Thu Jul 11 13:37:13 2024
Return-Path: <triaxx@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 594A81A9238
for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Jul 2024 13:37:13 +0000 (UTC)
Message-Id: <20240711133711.F2E191A9239@mollari.NetBSD.org>
Date: Thu, 11 Jul 2024 13:37:11 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: devel/gettext-tools: posix_spawn failure during bootstrap with -j16 on NetBSD/riscv64
X-Send-Pr-Version: 3.95
>Number: 58417
>Category: port-riscv
>Synopsis: devel/gettext-tools: posix_spawn failure during bootstrap with -j16 on NetBSD/riscv64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-riscv-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 11 13:40:02 +0000 2024
>Last-Modified: Sat Sep 14 21:55:01 +0000 2024
>Originator: Frédéric Fauberteau
>Release: NetBSD 10.99.11 (Fri Jul 5 13:02:55 UTC 2024)
>Organization:
>Environment:
System: NetBSD riscv64.triaxx.org 10.99.11 NetBSD 10.99.11 (GENERIC64) #0: Fri Jul 5 13:02:55 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/riscv/compile/GENERIC64 riscv
Architecture: riscv64
Machine: riscv
Emulator: qemu-9.0.1
>Description:
When deploying and configuring pbulk tools by:
sh /usr/pkgsrc/mk/pbulk/pbulk.sh -n -c mk.conf.frag
tweaked to pass --make-jobs 16 to the bootstrap process, the error below occurs.
This has been run twice with the same error on NetBSD/riscv64 running in QEMU with -smp 16.
===> Building for gettext-tools-0.22.5
/usr/pbulk/bin/bmake all-recursive
Making all in gettext-runtime
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-recursive
Making all in doc
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in intl
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-recursive
Making all in gnulib-lib
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-recursive
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/bin/sh ./config.status --recheck
Making all in gnulib-lib
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-recursive
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in src
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in po
Making all in man
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in m4
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in tests
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/bin/sh ./config.status --recheck
Making all in libtextstyle
/usr/pbulk/bin/bmake all-recursive
Making all in lib
/usr/pbulk/bin/bmake all-am
Making all in tests
## ---------------------------------------------------- ##
## ------------------- Gnulib tests ------------------- ##
## You can ignore compiler warnings in this directory. ##
## ---------------------------------------------------- ##
/usr/pbulk/bin/bmake all-recursive
Making all in .
Making all in adhoc-tests
Making all in doc
Making all in gettext-tools
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-recursive
Making all in gnulib-lib
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-am
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in libgrep
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-am
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in src
/usr/pbulk/bin/bmake all-am
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
Making all in libgettextpo
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/usr/pbulk/bin/bmake all-am
cd .. && /usr/pbulk/bin/bmake am--refresh
/bin/sh ./config.status --recheck
/bin/sh ../libtool --tag=CC --mode=compile cc -DIN_LIBGETTEXTPO=1 -DOMIT_SETLOCALE_LOCK=1 -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../src -I../src -I../../gettext-runtime/intl -I../../gettext-runtime/intl -I/usr/pbulk/include -I/usr/include -O2 -I/usr/pbulk/include -I/usr/include -c -o gettext-po.lo gettext-po.c
shlibtool: posix_spawn failed: No such file or directory
*** Error code 255
Stop.
bmake[5]: stopped in /tmp/obj-pbulk/devel/gettext-tools/work/gettext-0.22.5/gettext-tools/libgettextpo
*** Error code 1
Stop.
bmake[4]: stopped in /tmp/obj-pbulk/devel/gettext-tools/work/gettext-0.22.5/gettext-tools/libgettextpo
*** Error code 1
Stop.
bmake[3]: stopped in /tmp/obj-pbulk/devel/gettext-tools/work/gettext-0.22.5/gettext-tools
*** Error code 1
Stop.
bmake[2]: stopped in /tmp/obj-pbulk/devel/gettext-tools/work/gettext-0.22.5/gettext-tools
*** Error code 1
Stop.
bmake[1]: stopped in /tmp/obj-pbulk/devel/gettext-tools/work/gettext-0.22.5
*** Error code 1
Stop.
bmake: stopped in /tmp/obj-pbulk/devel/gettext-tools/work/gettext-0.22.5
*** Error code 1
Stop.
bmake[5]: stopped in /usr/pkgsrc/devel/gettext-tools
*** Error code 1
Stop.
bmake[4]: stopped in /usr/pkgsrc/devel/gettext-tools
*** Error code 1
Stop.
bmake[3]: stopped in /usr/pkgsrc/devel/bison
*** Error code 1
Stop.
bmake[2]: stopped in /usr/pkgsrc/shells/bash
*** Error code 1
Stop.
bmake[1]: stopped in /usr/pkgsrc/net/rsync
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pbulk
#
>How-To-Repeat:
Run:
sh /usr/pkgsrc/mk/pbulk/pbulk.sh -n -c mk.conf.frag -j 16
where pbulk.sh has been patched to accept a -j option and to pass it as --make-jobs argument to bootstrap.
>Fix:
>Release-Note:
>Audit-Trail:
From: triaxx@NetBSD.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58417: devel/gettext-tools: posix_spawn failure during
bootstrap with -j16 on NetBSD/riscv64
Date: Thu, 11 Jul 2024 17:35:06 +0200
Same issue with --make-jobs 8
Responsible-Changed-From-To: pkg-manager->port-riscv-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 11 Jul 2024 17:40:10 +0000
Responsible-Changed-Why:
Works fine on amd64, perhaps a riscv problem.
From: triaxx@NetBSD.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58417: devel/gettext-tools: posix_spawn failure during
bootstrap with -j16 on NetBSD/riscv64
Date: Thu, 11 Jul 2024 19:43:12 +0200
Same issue with --make-jobs 1...
But I have MAKE_JOBS=16 in mk.conf.frag. I don't know if it has any
impact...
Responsible-Changed-From-To: port-riscv-manager->port-riscv-maintainer
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 11 Jul 2024 18:09:44 +0000
Responsible-Changed-Why:
fix typo
From: triaxx@NetBSD.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58417: devel/gettext-tools: posix_spawn failure during
bootstrap with -j16 on NetBSD/riscv64
Date: Thu, 11 Jul 2024 22:01:42 +0200
The error occurs because mk.conf.frag contains MAKE_JOBS=16.
From: triaxx@NetBSD.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58417: devel/gettext-tools: posix_spawn failure during
bootstrap with -j16 on NetBSD/riscv64
Date: Fri, 12 Jul 2024 08:12:09 +0200
Now, the error still occurs even if I remove both --make-jobs option of
bootstrap or MAKE_JOBS in mk.conf.frag. However, I have successfully
built a bootstrap kit for pbulk before.
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58417: devel/gettext-tools: posix_spawn failure during
bootstrap with -j16 on NetBSD/riscv64
Date: Thu, 18 Jul 2024 20:28:48 -0400
Have you tried reproducing without passing "-smp 16" to qemu?
Have you tried running the posix_spawn portion of the test suite?
(Found in src/tests/lib/libc/gen/posix_spawn.) I doubt that would fail,
who knows. I can see all those tests do pass in the NetBSD qemu riscv
test environment.
Regards,
Dave
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/58417: devel/gettext-tools: posix_spawn failure during
bootstrap with -j16 on NetBSD/riscv64
Date: Sat, 14 Sep 2024 17:53:17 -0400
On 2024-07-18 20:28, David H. Gutteridge wrote:
> Have you tried reproducing without passing "-smp 16" to qemu?
FWIW, I couldn't reproduce this in a QEMU single processor environment.
I was able to bootstrap pbulk and then build various packages (very
slowly). (Unrelated, the OS did crash and restart randomly.) So it
seems this is quite likely something related to riscv MP. (I don't have
any setup at present that could emulate 16 cores.)
Dave
>Unformatted:
(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-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.