bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #65537] Werrors from intprops-internal.h with gcc 8.3.0


From: Martin Dorey
Subject: [bug #65537] Werrors from intprops-internal.h with gcc 8.3.0
Date: Fri, 29 Mar 2024 15:05:51 -0400 (EDT)

Follow-up Comment #4, bug #65537 (group make):

I made that change, then, not knowing how to activate it, just tried running
bootstrap again.  That failed the same way I saw, but didn't report, earlier
today, somehow clobbering the gnulib that had been cloned before, causing a
second run of bootstrap to clone the desired version:

martind@stormy:~/download/make-2024-03-29$ ./bootstrap 
./bootstrap: Bootstrapping from checked-out make sources...
error: pathspec 'stable-202401' did not match any file(s) known to git
martind@stormy:~/download/make-2024-03-29$ ./bootstrap 
./bootstrap: Bootstrapping from checked-out make sources...
./bootstrap: getting gnulib files...
Initialized empty Git repository in
/home/martind/download/make-2024-03-29/gnulib/.git/
remote: Counting objects: 11218, done.
remote: Compressing objects: 100% (10014/10014), done.
remote: Total 11218 (delta 5569), reused 2561 (delta 1185)
Receiving objects: 100% (11218/11218), 10.25 MiB | 5.92 MiB/s, done.
Resolving deltas: 100% (5569/5569), done.
>From https://git.savannah.gnu.org/git/gnulib
 * branch            stable-202401 -> FETCH_HEAD
 * [new branch]      stable-202401 -> origin/stable-202401
HEAD is now at 2fccdc0 gettime-res: Fix test failure on Solaris 11.4/SPARC.
Branch 'stable-202401' set up to track remote branch 'stable-202401' from
'origin'.
Switched to a new branch 'stable-202401'
...

As might be expected from the previously queried change for disabling the
type-limits warning for gcc >= 5, a threshold that seems somewhat unlikely to
have been deliberate, I'm left with just the sign-compare one:

mv -f $depbase.Tpo $depbase.Po
In file included from lib/intprops.h:21,
                 from src/arscan.c:379:
src/arscan.c: In function ‘parse_int’:
lib/intprops-internal.h:387:35: error: comparison of integer expressions of
different signedness: ‘int’ and ‘uintmax_t’ {aka ‘long unsigned
int’} [-Werror=sign-compare]
          : 0 < (a) && -1 - (tmin) < (a) - 1) \
                                   ^
lib/intprops-internal.h:172:10: note: in expansion of macro
‘_GL_INT_MULTIPLY_RANGE_OVERFLOW’
       && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, 0, (__typeof__ (*(r))) -1))
\
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/intprops.h:302:37: note: in expansion of macro
‘_GL_INT_MULTIPLY_WRAPV’
 #define INT_MULTIPLY_WRAPV(a, b, r) _GL_INT_MULTIPLY_WRAPV (a, b, r)
                                     ^~~~~~~~~~~~~~~~~~~~~~
src/arscan.c:399:14: note: in expansion of macro ‘INT_MULTIPLY_WRAPV’
           || INT_MULTIPLY_WRAPV (val, base, &val)
              ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:897: src/arscan.o] Error 1




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65537>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]