From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by sourceware.org (Postfix) with ESMTPS id 12D1B3864837 for ; Mon, 3 Jun 2024 13:38:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12D1B3864837 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 12D1B3864837 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.15.18 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717421905; cv=none; b=lXpBP6Zi/ZA3bT4l07T0AWWZWsjnOWmsVgjPVzo1xYa+ozeizYGW0019zj6D5czESSPuI5dZQa/xxdkyZu0FxSydOaDr2YCgwTTgG5TLGUviJ5uf+sr6PCf/4V4suKCOHOK1RbElWXOLEPEm0Pz0qOHYa6fJl+RuE5ZojTFGEJk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717421905; c=relaxed/simple; bh=r2u9+rUAmj7FjeGJHsXKn2/oHrCKiyr/+qz6nB9mWNY=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=O2q7Y3ArjEpdbenlJiPem2GxzRENTtV611+Ya3ev5YG1s307Bf2K+5WIbQgYL06bd38CQ0BQXIzK4YazxVBwty4FKcVv4GohTFPmTjMNZ57OCWN/eoZjBs8szq2YTpXqeeKVYzep8+G8dxSZu1V9NuFi9NEe11o0qfOHEkB6Dms= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1717421901; x=1718026701; i=vehre@gmx.de; bh=wpehWqVY2IJCO+FFFup6n4jrt2u+N7Y6RHFUt5IhDms=; h=X-UI-Sender-Class:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=pfmV8po9Wkx2c/2oHhJZfyj+oF/gahMraLneGrvMuY1SyS2zmsTA1Uy/GjXyJqDJ I9a/y7WlrQbhmRwaK339cCNjEJLmG5vLkzYvi8g9gC6XqBrLiAFQq22HsDJ103AtU q+s7s9AT40IwjLPIdHOoIbdJ4puR6+RxFHmYdkGn3zYGxJ26ofCwOq9Af7MDifgSj xT9ixXPu0fZXXQ8OG/ksIe61DWcuCEYmOJz3rA7UC2SKb7CfHlqpqtSfE4GCQoci3 N5CUlS8Wlu3iZge+gsMuYfWDSTsmxg00Kl/CCGFsBLeh2fV2V3vGly/05ghteGj3Y ek4ZZlGOALsr2Vybww== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from vepi2 ([79.194.171.229]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MysRk-1sRgVD1sKg-00zCAz for ; Mon, 03 Jun 2024 15:38:21 +0200 Date: Mon, 3 Jun 2024 15:38:20 +0200 From: Andre Vehreschild To: GCC-Fortran-ML Subject: [GOMP, Fortran] RFC: Issues with gomp-fortran tests Message-ID: <20240603153820.08dda311@vepi2> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:KyOABU3/1SFUQBcHecarBphJ13ysmH5okSfLZQ8FpXvt76hneGp ehMPPO4qGqRlRcEPAk+wyDwKAxrNILPFbhYGAXdxa/JfOuROsL4DJQAjbirhJ0q9ILxuz+B 0kX53nahPzuVsQ7DebSShZMxb4RKBqouioCwlJH/xaikfl/jUlsdrTyrlYGM1+GjV5gEICm gB7EiBlsfekGQ1YjBfV/Q== UI-OutboundReport: notjunk:1;M01:P0:7VBIVdb439w=;KO97O6zADEwpqG12nFg2UqT2mVE iVJ+6AYnTW3jLafS7wsRWgfwp2SRPpkrLnkw1SteZVNjijzRUokllOTS/iWIAxeQ/HiTvz/Ju CN6gfOFHdDto/2RS5e9y+5iHTsv1Tq7vba3R33zTv5QXQMLCtwadMCpWuQPrqKA9W2NumVTnd ZxTXuPN69FG/dYrN4J00taFhfR8BQs+Gd3q8HDtXe/8HJ9OWVr/Spn94jdPEDcLMvsghpMp/J C2CgY+r4Yqj3DTsC7iFsETajpSyzxK4BwmEyVM0W+0Poi4lSmglBxkvKx8kqYgieQ3g+YXIA6 an4sQr0h+VLE1oGO40kFHjbD/bT4jgRwAZ8P5NS32ng2QoJOSsMIue/zJFYuYAaFHGD09vCzP IUhmiqqYe7IuNKOhJ9vVH/gruKMuHRBP3fOcKRO+qZF2yPQu0Aukh2et8mZxpgrTgw4Kg0BSQ aqnD7ymJmfR1T5L3U2KAiiHWi5LIB7ahkIKW1L6OOtZUi2sPJtUHtLiDnCu2XrTqTBkiJrZAy YVhjfelv0pPIOEmZOISloN7HLZxRpDuEuXA4ZjovYZWDbTzn8sIcn/GV3tLh6DDXeaeMqLPi1 sszO47KaLn75PTsLL+7bl43ygwRfJOJcx51X2hhHNy+fYn00XzYul1td4oSqkzm4AUO4SrEiQ JRzfyYxETe6BDiUIAyClFOEkYvIYSHKHrm4ZHmLOPMhuf7rUFgGeOgSH7nZI71srllUnQWvsj 2qcMUAlAMS97xFpQcMRK8Z5QQKsECcj1AZpdbMwEIRu4R8qZZiIeEFCD5ABNquwxRlOYPTEZm pWa62hcIFm0d45qaQSoyrZ6RDu1TmZ1oeedZ0j+6qoniA= X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi gfortraneers and gomp-specialists, during regression testing I lately experience all OpenMP fortran tests to = be failing. I do: make check-fortran My configure is: ../gcc/configure --disable-multilib --enable-stage1-languages=3Dc,fortran,= c++ =2D-enable-checking=3Dyes --enable-offload-defaulted --prefix=3D`realpath = ../gfortran` It does not matter, if I just do a stage1 build or a full bootstrap, fortran-gomp tests always fail. I haven't tried running the full testsuite= , because that takes a loooong time. Trying to run only the target make check-target-libgomp-fortran (which is included in check-fortran), also results in the fortran-gomp tes= ts not being run, or more specifically not being able to be compiled. In fact the gfortran compiler is not found. The expect scripts resolve the gfortran compiler for fortran-gomp-testing to be three levels up the directory tree= , where a "gfortran" filesystem node is present, but is a directory. I.e. te= sting if something called gfortran is present there, will pass. Later on the tes= ts then complain about "gfortran: Permission denied", because a directory - o= f course - can not be executed. I have spent two days now to figure how to r= esolve this, but all I came up with is this patch: diff --git a/libgomp/testsuite/libgomp.fortran/fortran.exp b/libgomp/testsuite/libgomp.fortran/fortran.exp index 32e4bb2af4e..dd18aa9= 8a91 100644 --- a/libgomp/testsuite/libgomp.fortran/fortran.exp +++ b/libgomp/testsuite/libgomp.fortran/fortran.exp @@ -20,9 +20,14 @@ if { $blddir !=3D "" } { } else { set libquadmath_library_path "" } -} elseif { ![info exists GFORTRAN_UNDER_TEST] } { +} +if { ![info exists GFORTRAN_UNDER_TEST] + || ![file exists "$GFORTRAN_UNDER_TEST"] } { verbose -log "GFORTRAN_UNDER_TEST not defined, will not execute fortr= an tests" - return + set GFORTRAN_UNDER_TEST "${blddir}/../../gcc/gfortran -B$blddir/../..= /gcc" + if { ![file exists "$GFORTRAN_UNDER_TEST"] } { + return + } } if { $blddir !=3D "" } { set lang_source_re {^.*\.[fF](|90|95|03|08)$} This is just a first shot. With the patch the test compile and run ok. But= now my question: What am I doing wrong? I am working on gcc-master with only a= few commits behind. Is testing libgomp-fortran fine for everyone else? Regards, Andre =2D- Andre Vehreschild * Email: vehre ad gmx dot de