Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#13191 closed defect (fixed)

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

Reported by: gauchi@… Owned by: pguyot (Paul Guyot)
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Cc: pguyot (Paul Guyot)
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 (1)

gcc_patch (1.2 KB) - added by gauchi@… 12 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

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by gauchi@…

Attachment: gcc_patch added

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

comment:1 Changed 12 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Fixed in r33409.

comment:2 Changed 12 years ago by jmpp@…

Milestone: Port Bugs

comment:3 Changed 11 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.