Micheal LeVine wrote:
> Glad to oblige -- hope this is what you need
>
> Micheal
>
>
> gcc -c   -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DIN_GCC
>   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -pedantic -Wno-long-long    -DHAVE_CONFIG_H -I/sw/include   -I. -I.
> -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/.
> -I../../gcc-3.4.3/gcc/../include  ../../gcc-3.4.3/gcc/config/darwin.c
> gcc -c   -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DIN_GCC
>   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -pedantic -Wno-long-long    -DHAVE_CONFIG_H -I/sw/include   -I. -I.
> -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/.
> -I../../gcc-3.4.3/gcc/../include  \
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c:38: warning: 'struct
> sigaltstack' declared inside parameter list
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c:38: warning: its scope
> is only this definition or declaration, which is probably not what you
> want
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c:38: error: conflicting
> types for 'sigaltstack'
> /usr/include/signal.h:89: error: previous declaration of 'sigaltstack'
> was here
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c: In function
> 'segv_handler':
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c:67: error: 'struct
> __darwin_mcontext' has no member named 'ss'
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c:116: error: 'struct
> __darwin_mcontext' has no member named 'es'
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c:116: error: 'struct
> __darwin_mcontext' has no member named 'ss'
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c: In function
> 'darwin_rs6000_extra_signals':
> ../../gcc-3.4.3/gcc/config/rs6000/host-darwin.c:130: warning: passing
> argument 1 of 'sigaltstack' from incompatible pointer type
> make[2]: *** [host-darwin.o] Error 1
> make[1]: *** [stage1_build] Error 2
> make: *** [profiledbootstrap] Error 2
> ### execution of /var/tmp/tmp.2.5iZWKi failed, exit code 2
>
>
>
>
I tried this on my own powerPC (a G4 with Xcode 3.1.2) and got a totally
different error:

..
echo timestamp > s-emit
stage1/xgcc -Bstage1/ -B/sw/powerpc-apple-darwin9.7.0/bin/   -g -O2
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition    
-DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/.
-I../../gcc-3.4.3/gcc/../include  -I/sw/include   -c insn-emit.c \
      -o insn-emit.o
[address=7fffdeb1 pc=0003bafc]
insn-emit.c: In function `gen_absv8hi2':
insn-emit.c:4499: internal compiler error: Segmentation Fault
...

Which _could_ mean that I've gotten something from an unofficial binary
distribution that was built on a G5 that this doesn't like.  Though I
was able to built it at one point on that system, so it might be an
Xcode issue.  I can't really test this because I'm 6 timezones away from
that box right now.

You might see if  updating (or perhaps downgrading) Xcode helps with
this--although the package doesn't appear to be available from the two
unofficial binary distributions I use, which suggests that it may not
get along with G5s.

I believe that G4->G5 may be OK, so I've put a .deb file at

    http://akhmac.blogdns.net/~hansen/finkdebs/

Download that somewhere and then use

    sudo dpkg -i path/to/g77_3.4.3-104_darwin-powerpc.deb

You'll want to 'cd' to the directory you've downloaded the file to, or
put in the path appropriately.


(the more modern cernlib-gfortran won't do what you need?)

-- 
Alexander Hansen
Fink User Liaison


------------------------------------------------------------------------------
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to