I’m having this message when trying to compile mpich-1.2.7p1 on my AMD 64 bit computer (Linux Ubuntu) with the PGI Fortran Compiler v. 6.2.3
/opt/pgi/linux86-64/6.2/lib/libpgc.a(trace_lin.o): In function findrout': trace_lin.c:(.text+0x10): undefined reference to __pgi_trace’
trace_lin.c:(.text+0x18): undefined reference to `__pgi_tracee’
This is a compatability issue PGI’s new trace back feature where binaries needed to be linked with a PGI driver. In your case, “mpicc” is using gcc. The work around is to add “$PGI/linux86-64/6.2-3/lib/pgi.ld” to the link line where $PGI is the path to your PGI install directory.
Note that this issue has been resolved as of the 6.2-4 compilers.
I have installed pgi7.1 in my PC, and the path is ‘/usr/local/pgi’. Then I edited the
.bath_profile file like this :
‘if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
PATH=/usr/local/pgi/linux86/7.1/bin:$PATH
export PATH
MANPATH=$MANPATH:/usr/local/pgi/linux86/7.1/man
export MANPATH
LM_LICENSE_FILE=/usr/local/pgi/license.dat
export LM_LICENSE_FILE
export PGI=/usr/local/pgi
unset USERNAME’
When I run ‘pgf90 -V’ , the PC give the information:
‘pgf90 7.1-5 32-bit target on x86 Linux -tp p7
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2007, STMicroelectronics, Inc. All Rights Reserved.’
I considered that I have successfully install it. But when I run the
‘make -f Makefile-lxif install’, there are two errs like this:
‘/usr/bin/ld: cannot find -lcfitsio make: *** [fitme] Error 2’.
I don’t know how to solve it. Could someone help me?