Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#37786 closed defect (fixed)

Avarice @2.13 r1 Build failure - config.h not included correctly

Reported by: christian@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: raimue (Rainer Müller), joe@…
Port: avarice

Description

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.

Attachments (1)

main.log (6.5 KB) - added by christian@… 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by christian@…

Attachment: main.log added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue@… added

comment:2 Changed 11 years ago by joe@…

Cc: joe@… added

Cc Me!

comment:3 Changed 11 years ago by raimue (Rainer Müller)

Owner: changed from macports-tickets@… to raimue@…
Status: newassigned

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).

comment:4 Changed 11 years ago by christian@…

Changeset [102063] fixes the build issues for systems that don't have binutils installed. This ticket may be closed.

comment:5 Changed 11 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

comment:6 Changed 11 years ago by dwb@…

I'm still seeing this problem after a port selfupdate.

comment:7 Changed 11 years ago by dwb@…

port uninstall avarice (and ave-gdb) followed by port clean avarice and now I can successfully build.

Note: See TracTickets for help on using tickets.