gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] [patch #10208] fix gcc-10 build failure (-fno-common)


From: Sergei Trofimovich
Subject: [gnugo-devel] [patch #10208] fix gcc-10 build failure (-fno-common)
Date: Sat, 21 May 2022 05:49:18 -0400 (EDT)

URL:
  <https://savannah.gnu.org/patch/?10208>

                 Summary: fix gcc-10 build failure (-fno-common)
                 Project: GNU Go
            Submitted by: slyfox
            Submitted on: Sat 21 May 2022 09:49:16 AM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 21 May 2022 09:49:16 AM UTC By: Sergei Trofimovich <slyfox>
gcc-10 changed the default from -fcommon to fno-common:
  https://gcc.gnu.org/PR85678

As a result build fails as:

    ld: dfa.o:/build/gnugo-3.8/patterns/../engine/liberty.h:861: multiple
definition of
      `meaningless_white_moves';
mkpat.o:/build/gnugo-3.8/patterns/../engine/liberty.h:861: first defined here
    ld: dfa.o:/build/gnugo-3.8/patterns/../engine/liberty.h:860: multiple
definition of
      `meaningless_black_moves';
mkpat.o:/build/gnugo-3.8/patterns/../engine/liberty.h:860: first defined here

The change moves variable definitions into a single .c file that uses them.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10208>

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




reply via email to

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