The IBM XL Fortran Compiler for MacOS X.
CompatibilityMacOS X 10.4, 10.5. MacOS X 10.5 requires you to create a dummy crtbegin.o in /usr/lib. You can use "cat /dev/null | gcc -arch ppc -arch i386 -arch ppc64 -x c -o crtbegin.o -c -" and copy the resulting object in /usr/lib.
Comments
After installing one is supposed to run
$ sudo /opt/ibmcmp/xlf/8.1/bin/new_install
, but this failed for me on 10.4.11 and I had to tell xlf where to find gcc by hand by running
$ sudo /opt/ibmcmp/xlf/8.1/bin/xlf_configure -gcc /usr -install
.
Even with that I continually got an error message while compiling:
$ xlf hello.f -o hello
** _main === End of Compilation 1 ===
1501-510 Compilation successful for file hello.f.
/usr/bin/ld: -L: directory name missing
The fix was to edit /etc/opt/ibmcmp/xlf/8.1/xlf.cfg to remove an extraneous ",-L":
gcc_libdirs = -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1
* gcc_libdirs = -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1,-L