GNU Go - Patches: patch #10208, fix gcc-10 build failure...
You are not allowed to post comments on this tracker with your current authentication level.
patch #10208: fix gcc-10 build failure (-fno-common)
Submitter: | Sergei Trofimovich <slyfox> | ||
Submitted: | Sat 21 May 2022 09:49:16 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Attached Files
file #53240: 0001-gnugo-fix-gcc-10-build-failure-fno-common.patch added by slyfox (2KiB - text/x-patch)
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-05-21 | slyfox | Attached File | - | ![]() |
Added 0001-gnugo-fix-gcc-10-build-failure-fno-common.patch, #53240 |
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.