From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 07B3C3858C2F; Mon, 1 Jan 2024 19:30:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07B3C3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704137413; bh=Fz3j5nVQ99+6jM/dmfpFFJcSIn1Q3plM4Wu52ukycIY=; h=From:To:Subject:Date:From; b=QLnJnHGbz30QLf3Ki58dAf1b0gIKS5oO4o3Abo8jPvSM42yI5mpLDnt/XXJ4GB4WP s6MWKZxkvTftj9dXI7kXWbYiYcwci92LaZcUszat/LbAxohhOgrA/Ae2daU9sjM6PI KB8DB7DMlcK12e1uFFMUq2CQC8+vTWFr5G32Z5oU= From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/113192] New: [14 Regression] ERROR: couldn't execute "../../../gcc/libgomp/testsuite/flock": no such file or directory Date: Mon, 01 Jan 2024 19:30:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: 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 Bug ID: 113192 Summary: [14 Regression] ERROR: couldn't execute "../../../gcc/libgomp/testsuite/flock": no such file or directory Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org CC: jakub at gcc dot gnu.org, tschwinge at gcc dot gnu.org Target Milestone: --- Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 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. 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 configure: checking for flock implementation checking for flock... no checking for perl... ../../../gcc/libgomp/testsuite/flock 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 fil= e or directory while executing "exec $FLOCK $lock_kind 1 >@ $lock_fd" (procedure "saved_libgomp_load" line 10) invoked from within "saved_libgomp_load ./alloc-1.exe" ("eval" body line 1) invoked from within "eval [list saved_${tool}_load $program] $args" (procedure "libgomp_load" line 13) invoked from within "${tool}_load $output_file" (procedure "saved-dg-test" line 218) invoked from within "saved-dg-test /home/dave/gnu/gcc/gcc/libgomp/testsuite/libgomp.c/../libgomp.c-c++-common/= alloc-1.c {} -O2" ("eval" body line 1) invoked from within "eval saved-dg-test $args " (procedure "dg-test" line 1) invoked from within "dg-test $testcase $options ${default-extra-options}" (procedure "dg-runtest" line 10) invoked from within "dg-runtest $tests "" $DEFAULT_CFLAGS" (file "/home/dave/gnu/gcc/gcc/libgomp/testsuite/libgomp.c/c.exp" line 2= 7) invoked from within "source /home/dave/gnu/gcc/gcc/libgomp/testsuite/libgomp.c/c.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source /home/dave/gnu/gcc/gcc/libgomp/testsuite/libgomp.c/c.exp" invoked from within "catch "uplevel #0 source $test_file_name" msg" This problem was introduced by the following commit: commit 04abe1944d30eb18a2060cfcd9695d085f7b4752 Author: Thomas Schwinge Date: Mon May 15 20:00:07 2023 +0200 Support parallel testing in libgomp: fallback Perl 'flock' [PR66005] It appears this problem can be worked around by exporting FLOCK.=