bug-make
[Top][All Lists]
Advanced

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

[bug #60798] Make does not compile with GCC 11.1.0


From: anonyme
Subject: [bug #60798] Make does not compile with GCC 11.1.0
Date: Fri, 18 Jun 2021 12:36:53 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

URL:
  <https://savannah.gnu.org/bugs/?60798>

                 Summary: Make does not compile with GCC 11.1.0
                 Project: make
            Submitted by: None
            Submitted on: ven. 18 juin 2021 16:36:51 UTC
                Severity: 3 - Normal
              Item Group: Build/Install
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

I cloned the current make git repository:
https://git.savannah.gnu.org/git/emacs.git

Then I compiled it with GCC 11.1.0. It triggers the following error:
src/main.c:1954:13: error: writes 1 byte in a region of size 0
[-Werror=stringop-overflow=]
2006 |       p[-1] = '\0';
|       ~~~~~~^~~~~~

It compiles with GCC 8.3.0 though.

This error was introduced in GCC 10
https://gcc.gnu.org/gcc-10/changes.html#c-family as "Enhancements
to existing warnings".
To build it with GCC 11.1.0, one must add the flag: -Wno-stringop-overflow
when doing ./configure.





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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