From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 132D23858408; Tue, 2 Jan 2024 15:21:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 132D23858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704208870; bh=jVtkHx++/u4WYL4vtZnu6FexVOwavyHbGQlak6h7Uek=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u7jlB2JnBlC0N1oFcBp5lFK/2Bduj+m4xfJliKYNA18G87FmSa90OhOmEFw+VH1Ce C4bt15VBVmB1gVKHy6VYFQbfuVEbFYZZvSGIR1ncN1GRsua82ZudFzE5nJ+KJ4enKC PumvzPBweUnyphFe8OYcJFJenIzgwmK1nFeNf1hI= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/113192] [11/12/13/14 Regression] ERROR: couldn't execute "../../../gcc/libgomp/testsuite/flock": no such file or directory Date: Tue, 02 Jan 2024 15:21:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc blocked version Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113192 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[14 Regression] ERROR: |[11/12/13/14 Regression] |couldn't execute |ERROR: couldn't execute |"../../../gcc/libgomp/tests |"../../../gcc/libgomp/tests |uite/flock": no such file |uite/flock": no such file |or directory |or directory Blocks| |66005 Version|14.0 |11.0 --- Comment #1 from Thomas Schwinge --- (In reply to John David Anglin from comment #0) > HP-UX doesn't have flock but it does have perl. configure tries to create > a fallback but a relative path to libgomp/testsuite/flock is generated. > It is wrong when the testsuite is run. >=20 > AC_MSG_NOTICE([checking for flock implementation]) > AC_CHECK_PROGS(FLOCK, flock) > # Fallback if 'perl' is available. > if test -z "$FLOCK"; then > AC_CHECK_PROG(FLOCK, perl, $srcdir/testsuite/flock) > fi Aha, sorry. Does it work if you changes: -AC_CHECK_PROG(FLOCK, perl, $srcdir/testsuite/flock) +AC_CHECK_PROG(FLOCK, perl, $ac_abs_srcdir/testsuite/flock) ..., so that this: > configure: checking for flock implementation > checking for flock... no > checking for perl... ../../../gcc/libgomp/testsuite/flock ... turns into an absolute path, to resolve: > Running /home/dave/gnu/gcc/gcc/libgomp/testsuite/libgomp.c/c.exp ... > ERROR: tcl error sourcing > /home/dave/gnu/gcc/gcc/libgomp/testsuite/libgomp.c/c.exp. > ERROR: tcl error code NONE > ERROR: couldn't execute "../../../gcc/libgomp/testsuite/flock": no such f= ile > or directory ... this. If that works, and you submit a patch, please in the commit log cite this commit: > This problem was introduced by the following commit: >=20 > commit 04abe1944d30eb18a2060cfcd9695d085f7b4752 > Author: Thomas Schwinge > Date: Mon May 15 20:00:07 2023 +0200 >=20 > Support parallel testing in libgomp: fallback Perl 'flock' [PR66005] ..., and also specify 'PR testsuite/66005' in the commit log. If that suggestion doesn't easily resolve this issue, then I'll be able to = look into it next week. > It appears this problem can be worked around by exporting FLOCK. But only if that specifies an absolute path (or a "suitable" relative one),= I suppose? I've also set this "11/12/13 Regression", as these branches use the exact s= ame code. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66005 [Bug 66005] libgomp make check time is excessive=