Peter O'Gorman wrote:
[]
For anyone attempting this, I'd suggest looking at:
http://darwinsource.opendarwin.org/tarballs/other/gcc_os-1819.tar.gz
I have managed to build this using darwinbuild (on ppc, Build8G1165). It
needed just the addition of f77 to build-gcc.sh which could probably be
done by commandline options, plus one little patch. The resulting binary
is universal:
# file ./usr/bin/g77-3.3
./usr/bin/g77-3.3: Mach-O universal binary with 2 architectures
./usr/bin/g77-3.3 (for architecture ppc): Mach-O executable ppc
./usr/bin/g77-3.3 (for architecture i386): Mach-O executable i386
Unfortunately it also has the known bugs of g77-3.3(*), and I am not
sure anyone really wants to go through all that old crap again.
Also I don't know, of course, whether you can build it on i386.
Darwinbuild, at least, seems not to work there.
So I would agree with Jeff that gfortran is the future and we should at
least give it a try and switch the Fink packages to gfortran.
(*) Here is the bug that cost us a lot of time when it came up first (2
years ago or so, was fixed in g77-3.4.x):
# cat simple.f
program simple
print *, "Hello World"
end
# ./usr/bin/g77-3.3 -v simple.f
Driving: ./usr/bin/g77-3.3 -v simple.f -lfrtbegin -lg2c
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1819)
/usr/libexec/gcc/darwin/ppc/3.3/f771 simple.f -fPIC -quiet -dumpbase
simple.f -auxbase simple -version -o /var/tmp//ccSW1HwD.s
GNU F77 version 3.3 20030304 (Apple Computer, Inc. build 1819) (ppc-darwin)
compiled by GNU C version 3.3 20030304 (Apple Computer, Inc.
build 1819).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=131072
/usr/libexec/gcc/darwin/ppc/as -arch ppc -o /var/tmp//ccfhTlEm.o
/var/tmp//ccSW1HwD.s
/var/tmp//ccSW1HwD.s:53:section difference relocatable subtraction
expression, "LC3" minus "L00000000001$pb" using a symbol at the end of
section will not produce an assembly time constant
/var/tmp//ccSW1HwD.s:53:use a symbol with a constant value created with
an assignment instead of the expression, L_const_sym = LC3 - L00000000001$pb
/var/tmp//ccSW1HwD.s:52:section difference relocatable subtraction
expression, "LC3" minus "L00000000001$pb" using a symbol at the end of
section will not produce an assembly time constant
/var/tmp//ccSW1HwD.s:52:use a symbol with a constant value created with
an assignment instead of the expression, L_const_sym = LC3 - L00000000001$pb
--
Martin
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel