Problem:
--snip--
mpicc -g -O -fno-omit-frame-pointer -Wall -fpic -shared -m64 /
-I../include /
-o libmpiwrap-AMD64_LINUX.so libmpiwrap.c
/usr/bin/ld: /usr/lib64/libmpi.a(laminit.o): relocation R_X86_64_32S against
`lam_mpi_comm_world' can not be used when making a shared object; recompile
with -fPIC
/usr/lib64/libmpi.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
mpicc: No such file or directory
make[2]: *** [libmpiwrap-AMD64_LINUX.so] Error 1
make[2]: Leaving directory `/root/vrigo/valgrind/valgrind-3.3.1/auxprogs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/vrigo/valgrind/valgrind-3.3.1'
make: *** [all] Error 2
--snip--
I have downloaded the valgrind-3-3-1.tar.bz2
from //www.valgrind.org/downloads/valgrind-3.3.1.tar.bz2, run configure
without any options and did a make (also without any options)?
Can someone please help?
My system is a RHEL4 on Intel Xeon.
--snip--
[root@thorpc251 valgrind-3.3.1]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 3)
[root@thorpc251 valgrind-3.3.1]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Xeon(TM) CPU 2.80GHz
stepping : 4
cpu MHz : 2793.085
cache size : 1024 KB
physical id : 0
siblings : 2
--snip—
===================================================
Solution:
./configure --prefix=/home/nochen/local --with-mpicc=any_bogus_name_will_do --enable-only64bit