[Bug 247480] devel/binutils can't be built with lang/gcc?

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 22 Jan 2022 00:19:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247480

Gerald Pfeifer <gerald@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bapt@FreeBSD.org            |ports-bugs@FreeBSD.org
         Resolution|---                         |Overcome By Events
             Status|New                         |Closed
                 CC|                            |gerald@FreeBSD.org,
                   |                            |jflopezfernandez@gmail.com
              Flags|maintainer-feedback?(bapt@F |
                   |reeBSD.org)                 |

--- Comment #1 from Gerald Pfeifer <gerald@FreeBSD.org> ---
I believe this should have been addressed by

  commit a0e752df801309c38f6ccd64a25ae064db870ed9
  Author: Yasuhiro Kimura <yasu@utahime.org>
  Date:   Thu Aug 5 09:14:21 2021 +0200

    devel/binutils: Update to 2.37

at the latest. 

The behavior you have seen probably is GCC 10 becoming stricter wrt.
variable definitions, cf.

  "GCC now defaults to -fno-common. As a result, global variable
  accesses are more efficient on various targets. In C, global
  variables with multiple tentative definitions now result in 
  linker errors. With -fcommon such definitions are silently 
  merged during linking."

from http://gcc.gnu.org/gcc-10/changes.html and the details in
https://gcc.gnu.org/gcc-10/porting_to.html .

(That does not explain why you also saw this apparently using older
versions.)


Thank you for the report, and sorry you did not get an earlier answer
from the project.

I'm resetting the assignee of this PR and copying the new maintainer
of the port.

-- 
You are receiving this mail because:
You are the assignee for the bug.