Re: GNU Make 4.4.0.90 on Debian 11.1

2023-01-15 Thread Paul Smith
On Sun, 2023-01-15 at 09:44 -0500, Paul Smith wrote:
> We'll have to override these settings in that test.

OK I made a change that will hopefully address this.



Re: GNU Make 4.4.0.90 on Debian 11.1

2023-01-15 Thread Paul Smith
On Sun, 2023-01-15 at 09:35 -0500, Paul Smith wrote:
> On Sun, 2023-01-15 at 15:33 +0100, Bruno Haible wrote:
> > In this test you have the lines
> > 
> >   # Fallback if configure did not find AR
> >   my $ar = get_config('AR') || 'ar';
> > 
> > Why not do the same for CC?
> > 
> >   my $cc = get_config('CC') || 'cc';
> 
> Yes, that's how it's done in other tests.  I'll have to check why
> that wasn't done here.  Maybe an oversight.

The problem is that we are running a makefile in the test that compiles
some code (we have to actually compile code because ar on some systems
won't allow an empty file to be added to an archive) and that uses the
default compiler etc. settings that make was built with.

We'll have to override these settings in that test.



Re: GNU Make 4.4.0.90 on Debian 11.1

2023-01-15 Thread Paul Smith
On Sun, 2023-01-15 at 15:33 +0100, Bruno Haible wrote:
> In this test you have the lines
> 
>   # Fallback if configure did not find AR
>   my $ar = get_config('AR') || 'ar';
> 
> Why not do the same for CC?
> 
>   my $cc = get_config('CC') || 'cc';

Yes, that's how it's done in other tests.  I'll have to check why that
wasn't done here.  Maybe an oversight.



Re: GNU Make 4.4.0.90 on Debian 11.1

2023-01-15 Thread Bruno Haible
Paul Smith wrote:
> > But instead I see 4 test failures in the 'features/archives'
> > category.
> 
> These are because:
> 
>   ! /bin/sh: 1: cc: not found
> 
> Why is there no C compiler on this system?  Or is the problem that it's
> not on the PATH for some reason?

Indeed, there is no 'cc' nor 'gcc' in $PATH on this system. The reason is
that several C compilers can be chosen. I installed GCC 10, and then set the
environment variable
  CC="gcc-10"
and this is found in $PATH, as /usr/bin/gcc-10.

Per GNU standards [1], a GNU package should use $CC, not 'cc' — so that users
have the freedom to use a compiler of their choice (clang, TinyCC, whatever...).

In this test you have the lines

  # Fallback if configure did not find AR
  my $ar = get_config('AR') || 'ar';

Why not do the same for CC?

  my $cc = get_config('CC') || 'cc';

Bruno

[1] https://www.gnu.org/prep/standards/html_node/Configuration.html






Re: GNU Make 4.4.0.90 on Debian 11.1

2023-01-15 Thread Paul Smith
On Sun, 2023-01-15 at 14:36 +0100, Bruno Haible wrote:
> But instead I see 4 test failures in the 'features/archives'
> category.

These are because:

  ! /bin/sh: 1: cc: not found

Why is there no C compiler on this system?  Or is the problem that it's
not on the PATH for some reason?



Re: GNU Make 4.4.0.90 on Debian 11.1

2023-01-15 Thread Bruno Haible
On Debian 11.1 / x86_64 (a glibc 2.31 system) I don't see the
older test failures from
  https://lists.gnu.org/archive/html/bug-make/2022-10/msg00124.html
any more. But instead I see 4 test failures in the 'features/archives'
category.

Find the logs attached.




makeerror-4.4.0.90-x86_64-pc-linux-gnu-7l0o.tar.gz
Description: application/compressed-tar