Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #13215 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

avr-gdb 6.3 fails to build on Mac OS X 10.5 Leopard

Reported by: gauchi@… Owned by: mmoll@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.5.0
Keywords: Cc: mmoll@…, simon@…
Port:

Description

build fails with this error message:

gcc -c -O2     -I. -I. -I./config -DLOCALEDIR="\"/opt/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunused-label -Wunused-function  avr-tdep.c
In file included from avr-tdep.c:34:
inferior.h:243: error: syntax error before 'caddr_t'
avr-tdep.c: In function 'avr_scan_prologue':
avr-tdep.c:475: warning: pointer targets in passing argument 2 of 'read_memory' differ in signedness
avr-tdep.c: In function 'avr_frame_prev_register':
avr-tdep.c:1012: warning: pointer targets in passing argument 2 of 'read_memory' differ in signedness
avr-tdep.c: In function 'avr_push_dummy_call':
avr-tdep.c:1223: warning: pointer targets in passing argument 2 of 'write_memory' differ in signedness

this can be worked around by adding

#include <sys/types.h>

to inferior.h, but I am not sure this is the correct position, probably this should be fixed within the configure script somewhere.

Neither do I know whether this makes gdb work, but at least it builds

Attachments

Portfile.diff (1.0 KB) - added by mmoll@… 13 months ago.
update of Portfile to latest gdb version

Change History

Changed 13 months ago by nox@…

  • summary changed from BUG: avr-gdb 6.3 fails to build on Leopard PPC to avr-gdb 6.3 fails to build on Mac OS X 10.5 Leopard
  • milestone set to Port Bugs

Changed 13 months ago by mmoll@…

update of Portfile to latest gdb version

Changed 13 months ago by mmoll@…

Updating to gdb 6.7.1 seems to fix the problem. I also fixed a problem where info files were installed in ${prefix}/info instead of ${prefix}/share/info.

Changed 13 months ago by simon@…

  • cc simon@… added
  • status changed from new to closed
  • resolution set to fixed

Committed in [30906]. Thanks for your help.

Note: See TracTickets for help on using tickets.