[MacPorts] #60807: avarice @2.13_1: error: You need to install libbfd.a from binutils, or configure with --disable-target-programming (was: avarice new install version 2.13_1 fails to configure on Catalina)

MacPorts noreply at macports.org
Thu Jul 9 21:33:01 UTC 2020


#60807: avarice @2.13_1: error: You need to install libbfd.a from binutils, or
configure with --disable-target-programming
----------------------+------------------------
  Reporter:  neilt    |      Owner:  ryandesign
      Type:  defect   |     Status:  accepted
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.2
Resolution:           |   Keywords:
      Port:  avarice  |
----------------------+------------------------
Changes (by ryandesign):

 * status:  new => accepted
 * owner:  (none) => ryandesign


Comment:

 On High Sierra I see the same:

 {{{
 error: You need to install libbfd.a from binutils, or configure with
 --disable-target-programming
 }}}

 However we were able to build this version of avarice successfully on
 Catalina in December 2019, on Mojave in October 2018 and on other macOS
 versions back in 2017. So something must have changed in avarice's
 dependencies.

 It looks like this was a
 [changeset:63dd96677ccdecfb7c2b34dd223cfa4f9f5c1390/macports-ports
 deliberate change] in avr-binutils and all the other cross binutils ports.
 The cross ports no longer have libbdf or its headers; the main binutils
 port now does. So installing the binutils port appears to have been the
 right thing to do to try to solve the problem. As for the next error:

 {{{
 error: use of undeclared identifier 'bfd_get_section_name'; did you mean
 'bfd_get_section_by_name'?
 }}}

 It looks like the binutils developers [https://github.com/bminor/binutils-
 gdb/commit/fd3619828e94a24a92cddec42cbc0ab33352eeb4 removed
 bfd_get_section_name] and a lot of other marcros last year. Its
 replacement is bfd_section_name but it accepts different parameters. The
 developers of avarice would need to update their software to be compatible
 with this new binutils, but it doesn't appear that any development of
 avarice is happening anymore, so I'll work on fixing it.

-- 
Ticket URL: <https://trac.macports.org/ticket/60807#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list