public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/109135] New: Wrong make utility called with LTO testsuite
@ 2023-03-14 22:23 kargl at gcc dot gnu.org
  2023-03-14 22:25 ` [Bug driver/109135] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kargl at gcc dot gnu.org @ 2023-03-14 22:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109135

            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 

% 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/../../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    (timeout = 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
<GNU make usage message>
% gmake -j 0 -f Makefile.gnu
<GNU make usage message>
% gmake -j  -f Makefile.gnu
<GNU make builds my project>

I suspect the something in the testsuite is spawning a submake where the last
'gmake -j' example above is being spawned as the first 'make -j' example above.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-15 14:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 22:23 [Bug testsuite/109135] New: Wrong make utility called with LTO testsuite kargl at gcc dot gnu.org
2023-03-14 22:25 ` [Bug driver/109135] " pinskia at gcc dot gnu.org
2023-03-14 22:30 ` pinskia at gcc dot gnu.org
2023-03-14 22:36 ` sgk at troutmask dot apl.washington.edu
2023-03-14 23:06 ` sgk at troutmask dot apl.washington.edu
2023-03-14 23:14 ` sgk at troutmask dot apl.washington.edu
2023-03-15  8:35 ` rguenth at gcc dot gnu.org
2023-03-15 14:33 ` sgk at troutmask dot apl.washington.edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).