New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13191 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

BUG: avr-gcc-4.0.2 build failure on Leopard PPC

Reported by: gauchi@… Owned by: pguyot@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Cc: pguyot@…
Port:

Description

cc -no-cpp-precomp -c   -O2  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/../include -I./../intl -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/../libcpp/include  -I/opt/local/include   -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/../include -I./../intl -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/../libcpp/include  \
		/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c:38: warning: 'struct sigaltstack' declared inside parameter list
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c:38: warning: its scope is only this definition or declaration, which is probably not what you want
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c:38: error: conflicting types for 'sigaltstack'
/usr/include/signal.h:89: error: previous declaration of 'sigaltstack' was here
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c: In function 'segv_handler':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c:67: error: 'struct __darwin_mcontext' has no member named 'ss'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c:116: error: 'struct __darwin_mcontext' has no member named 'es'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c:116: error: 'struct __darwin_mcontext' has no member named 'ss'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c: In function 'darwin_rs6000_extra_signals':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-gcc/work/gcc-4.0.2/gcc/config/rs6000/host-darwin.c:130: warning: passing argument 1 of 'sigaltstack' from incompatible pointer type

It seems that this is related to Apple having changed the definition of the thread state structure to become more UNIX conformant (the change is within #if DARWIN_UNIX03)

Attachments

gcc_patch Download (1.2 KB) - added by gauchi@… 4 years ago.
This patch fixes the compilation for me, but it is probably not the right way to do this it should probably be conditional, so it does also work on darwin<9

Change History

Changed 4 years ago by gauchi@…

This patch fixes the compilation for me, but it is probably not the right way to do this it should probably be conditional, so it does also work on darwin<9

Changed 4 years ago by pguyot@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r33409.

Changed 4 years ago by jmpp@…

  • milestone set to Port Bugs

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.