word5.1addict2020, May 19 - 5:54pm
After installing one is supposed to run
$ /opt/ibmcmp/xlf/8.1/bin/new_install
, but this failed 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