From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 993E33858D39; Tue, 14 Mar 2023 22:23:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 993E33858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678832607; bh=8I/QBy3tfWjpDD7h2vVBbRCkpLkMh9n7I/OJGePKe+Q=; h=From:To:Subject:Date:From; b=J/bfg4zn21zkU/lIypiA96nnnOtakcuyTKS+ToFH9XJN4P5Nswa171fB+2UnSrvsl JRMbVQkjzyKipe9Hawr2fLIS+46zMTDlcYKT0KrPWO0Q5YN7hRpME1Gq2r37uLPJmr 4RNfZgJ3h0PLymPvXyvEBhoSa/E5EMmpRCbmwOL0= From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/109135] New: Wrong make utility called with LTO testsuite Date: Tue, 14 Mar 2023 22:23:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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 target_milestone 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=3D109135 Bug ID: 109135 Summary: Wrong make utility called with LTO testsuite Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: kargl at gcc dot gnu.org Target Milestone: --- It seems the wrong make utility is being invoked when the testsuite tries to run tests for LTO. On FreeBSD, make is BSD make. GNU make is installed as gmake. After bootstrapping gcc with gfortran support, I move into the obj/= gcc directory an execute=20 % gmake -j6 check-fortran There a number of failures reported. In fact, with 'gmake -j6 check' is a massive number of failures. Looking into testsuite/gfortran/gfortran.log, I see for example, Executing on host: /usr/home/sgk/gcc/objx/gcc/testsuite/gfortran/../../gfor= tran -B/usr/home/sgk/gcc/objx/gcc/testsuite/gfortran/../../ -B/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/ /usr/home/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/pr71526.f90=20 -fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2 -flto=20= =20 -B/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libatomic/.libs -B/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libquadmath/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libquadmath/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libquadmath/.libs -lm -o pr71526.exe (timeout =3D 300) spawn -ignore SIGHUP /usr/home/sgk/gcc/objx/gcc/testsuite/gfortran/../../\ gfortran -B/usr/home/sgk/gcc/objx/gcc/testsuite/gfortran/../../ -B/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/ /usr/home/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/pr71526.f90 -fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2 -flto -B/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libgfortran/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libatomic/.libs -B/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libquadmath/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libquadmath/.libs -L/usr/home/sgk/gcc/objx/x86_64-unknown-freebsd14.0/./libquadmath/.libs -lm -o pr71526.exe make[2]: illegal argument to -j -- must be positive integer! FAIL: gfortran.dg/pr71526.f90 -O (test for excess errors) Excess errors: make[2]: illegal argument to -j -- must be positive integer! With BSD make and if one my projects, I see % make -j Makefile make: illegal argument to -j -- must be positive integer! % make -j 0 Makefile make: illegal argument to -j -- must be positive integer! % make -j -6 Makefile make: illegal argument to -j -- must be positive integer! If run gmake with a Makefile suitable for gmake, I see % gmake -j -6 -f Makefile.gnu % gmake -j 0 -f Makefile.gnu % gmake -j -f Makefile.gnu I suspect the something in the testsuite is spawning a submake where the la= st 'gmake -j' example above is being spawned as the first 'make -j' example ab= ove.=