Opened 14 years ago

Closed 13 years ago

#24580 closed defect (fixed)

sparc-rtems-binutils fails building on snowleopard

Reported by: mattias.holm@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: snowleopard Cc:
Port: sparc-rtems-binutils

Description (last modified by jmroot (Joshua Root))

Sparc rtems binutils fails building on snow leopard, it seems that this is a simple issue of a newer gcc being more pedantic about errors, in this case relating to the string translation _("Foo"), which prevents gcc from analysing the formatting in functions this is passed to.

The easy fix would be to disable the specific warning, or the -Werror flag.

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-binutils/work/binutils-2.18/bfd/elf.c: In function '_bfd_elf_print_private_bfd_data':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-binutils/work/binutils-2.18/bfd/elf.c:1108: warning: format not a string literal and no format arguments
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-binutils/work/binutils-2.18/bfd/elf.c:1150: warning: format not a string literal and no format arguments
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-binutils/work/binutils-2.18/bfd/elf.c:1276: warning: format not a string literal and no format arguments
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_sparc-rtems-binutils/work/binutils-2.18/bfd/elf.c:1301: warning: format not a string literal and no format arguments

Change History (3)

comment:1 Changed 14 years ago by mattias.holm@…

Cc: mattias.holm@… added

Cc Me!

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Cc: mattias.holm@… removed
Description: modified (diff)

Note you do not need to be in cc when you are the reporter.

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Keywords: snowleopard added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.