Troubleshooting
Problem
Why do my PGF90 and PGF95 compilers don't work?
Resolving The Problem
Why don't my PGF90 and PGF95 compilers work?
The GCC directory the PGI compilers use is defined in a configuration file called "localrc" found in your PGI "bin" directory. Since this is a minor upgrade, the simplest solution is to edit "localrc" and change the paths of the "GCCDIR", "GCCINC", and "G77DIR" variables.
For major upgrades of GCC, you may need to instead rerun "makelocalrc" and/or re-install the PGI compilers.
Here's an example:
% cat /usr/pgi/linux86-64/6.2-3/bin/localrc
set LFC=-lgfortran;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.0/;
set GCCINC=/usr/lib64/gcc/x86_64-suse-linux/4.1.0/include;
set G77DIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.0/;
set NUMALIBS=-lnuma ;
set LOCALRC=YES;
set THROW=__THROW=;
set EXTENSION=__extension__=;
set LC=$if(-Bstatic,-lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc, -lgcc -lc -lgcc);
Change to:
set LFC=-lgfortran;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.1/;
set GCCINC=/usr/lib64/gcc/x86_64-suse-linux/4.1.1/include;
set G77DIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.1/;
set NUMALIBS=-lnuma ;
set LOCALRC=YES;
set THROW=__THROW=;
set EXTENSION=__extension__=;
set LC=$if(-Bstatic,-lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc, -lgcc -lc -lgcc);
[{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.1.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSZUCA","label":"IBM Spectrum Cluster Foundation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":null,"Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
Modified date:
09 September 2018
UID
isg3T1014183