[MacPorts] #37786: Avarice @2.13 r1 Build failure - config.h not included correctly
#37786: Avarice @2.13 r1 Build failure - config.h not included correctly -------------------------+-------------------------------- Reporter: christian@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: avarice -------------------------+-------------------------------- Changeset [101695] (enabling the deprecated target programming feature with the --enable-target-programming configure option) seems to have broken the avarice build process again (see #37603). --enable-target- programming turns on a dependency on libbfd. That dependency looks like it is causing the issue. From the main.log: {{{ :info:build In file included from jtag2prog.cc:41: :info:build /opt/local/avr/host/include/bfd.h:37:2: error: config.h must be included before this header :info:build #error config.h must be included before this header :info:build ^ :info:build 1 error generated. }}} Note that the error occurs when including bfd.h, which would not be included absent the --enable-target-programming switch. The 2.13 release notes for avarice state that the target programming feature is deprecated, and the user is expected to use avrdude to program the device. -- Ticket URL: <https://trac.macports.org/ticket/37786> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37786: Avarice @2.13 r1 Build failure - config.h not included correctly --------------------------+-------------------------------- Reporter: christian@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: avarice | --------------------------+-------------------------------- Changes (by ryandesign@…): * cc: raimue@… (added) -- Ticket URL: <https://trac.macports.org/ticket/37786#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37786: Avarice @2.13 r1 Build failure - config.h not included correctly --------------------------+---------------------- Reporter: christian@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: avarice | --------------------------+---------------------- Changes (by raimue@…): * status: new => assigned * owner: macports-tickets@… => raimue@… Comment: Thank you for the report. I did not notice this as I also have the binutils port installed. Due to the order of the include paths, `-I/opt/local/include -I/opt/local/avr/host/include` the build system actually picked the wrong `bfd.h` on my system. Thus, I did not notice the problem. I am aware that target programming is deprecated, but some older scripts in use at my department still require the target programming of avarice. I don't think enabling this feature will do any harm (once the build problems are resolved). -- Ticket URL: <https://trac.macports.org/ticket/37786#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37786: Avarice @2.13 r1 Build failure - config.h not included correctly --------------------------+---------------------- Reporter: christian@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: avarice | --------------------------+---------------------- Comment (by christian@…): Changeset [102063] fixes the build issues for systems that don't have binutils installed. This ticket may be closed. -- Ticket URL: <https://trac.macports.org/ticket/37786#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37786: Avarice @2.13 r1 Build failure - config.h not included correctly --------------------------+---------------------- Reporter: christian@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: avarice | --------------------------+---------------------- Changes (by raimue@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/37786#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37786: Avarice @2.13 r1 Build failure - config.h not included correctly --------------------------+---------------------- Reporter: christian@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: avarice | --------------------------+---------------------- Comment (by dwb@…): I'm still seeing this problem after a port selfupdate. -- Ticket URL: <https://trac.macports.org/ticket/37786#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37786: Avarice @2.13 r1 Build failure - config.h not included correctly --------------------------+---------------------- Reporter: christian@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: avarice | --------------------------+---------------------- Comment (by dwb@…): port uninstall avarice (and ave-gdb) followed by port clean avarice and now I can successfully build. -- Ticket URL: <https://trac.macports.org/ticket/37786#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts