HI there,
I have just installed version 15.4, set two environmental variables in my .cshrc file (I am using tcsh) with:
free PGI compiler
setenv LD_LIBRARY_PATH “/Applications/Free_PGI.app/Contents/Resources/pgi/osx86-64/15.4/lib”
set path = (/Applications/Free_PGI.app/Contents/Resources/pgi/osx86-64/15.4/bin $path)
and the Hello code works. However, when I starting compiling my “proper” fortran code (which is compiled without problems with a number of compilers including Absoft installed on my Mac) , then there are two problems:
- during the -c stage, each file gives out a strange message (which is just a warning I think), for instance:
pgfortran -c -g get_forces.f
pgfortran-Warning-Malformed $expr(), nonnumeric value >
pgfortran-Warning-Malformed $expr(), nonnumeric value >=
pgfortran-Warning-Malformed $expr(), nonnumeric value >=
pgfortran-Warning-Malformed $expr(), nonnumeric value >
pgfortran-Warning-Malformed $expr(), nonnumeric value >
- most importantly, the linker (ld) gives a strange warning and an error as it requires gcc library for some reason:
pgfortran -g -o tetr tetrag1.o applica.o lattice.o point_gr.o coulomb.o add_rem.o wyckoff_int.o mol_vibr.o eig_vibr.o input_tetr.o move_atoms.o get_best_ai.o change.o change_tools.o make_fcm.o tools.o tools_strings.o cluster.o permut.o orbita.o do_vibr.o do_cond.o do_irrep.o ttag.o solve_vibr.o devices.o crystal_vibr.o hat.o lattice_space.o build_spacegroup.o bsse.o move_tip.o rotations.o
pgfortran-Warning-Malformed $expr(), nonnumeric value >
pgfortran-Warning-Malformed $expr(), nonnumeric value >=
pgfortran-Warning-Malformed $expr(), nonnumeric value >=
pgfortran-Warning-Malformed $expr(), nonnumeric value >
pgfortran-Warning-Malformed $expr(), nonnumeric value >
ld: warning: unknown option to -macosx_version_min, not 10.x
ld: library not found for -lgcc
make: *** [APPLIC] Error 2
Going into
/Applications/Free_PGI.app/Contents/Resources/pgi/osx86-64/15.4/lib
no such library.
Anybody knows what went wrong? I am using Maverick 10.9.5, Xcode: 3.2.6 (1761).
Thanks for your help
Lev