Make valgrind in 64nit Linux (Intel Xeon)

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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值