|
From: Osman, A. <ahm...@me...> - 2009-11-19 22:20:56
|
Hi All, When trying to build valgrind 3.5.0 on my machine, it gives this compilation problem: make[2]: Entering directory `/usr/local/valgrind-3.5.0/mpi' if mpicc -I../include -g -O -fno-omit-frame-pointer -Wall -fpic -m64 -MT libmpiwrap_amd64_linux_so-libmpiwrap.o -MD -MP -MF ".deps/libmpiwrap_amd64_linux_so-libmpiwrap.Tpo" -c -o libmpiwrap_amd64_linux_so-libmpiwrap.o `test -f 'libmpiwrap.c' || echo './'`libmpiwrap.c; \ then mv -f ".deps/libmpiwrap_amd64_linux_so-libmpiwrap.Tpo" ".deps/libmpiwrap_amd64_linux_so-libmpiwrap.Po"; else rm -f ".deps/libmpiwrap_amd64_linux_so-libmpiwrap.Tpo"; exit 1; fi mpicc -o libmpiwrap-amd64-linux.so -fpic -shared libmpiwrap_amd64_linux_so-libmpiwrap.o /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 `/usr/local/valgrind-3.5.0/mpi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/valgrind-3.5.0' make: *** [all] Error 2 [root@postponed valgrind-3.5.0]# my machine configuration is: [root@postponed local]# cat /etc/issue Red Hat Enterprise Linux WS release 4 (Nahant Update 4) Kernel \r on an \m [root@postponed local]# uname -a Linux postponed 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux Please advice ... - Ahmed |
|
From: Dan K. <da...@ke...> - 2009-11-19 22:44:14
|
On Thu, Nov 19, 2009 at 2:19 PM, Osman, Ahmed <ahm...@me...> wrote: > When trying to build valgrind 3.5.0 on my machine, it gives this compilation > problem: > ... > /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 > [root@postponed local]# cat /etc/issue > Red Hat Enterprise Linux WS release 4 (Nahant Update 4) > [root@postponed local]# uname -a > Linux postponed 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 > x86_64 x86_64 GNU/Linux Do you need MPI support? If not, try disabling that... |
|
From: Osman, A. <ahm...@me...> - 2009-11-19 23:06:58
|
Thanks Dan. It is solved by adding --enable-only32bit to the configuration step -----Original Message----- From: dan...@gm... [mailto:dan...@gm...] On Behalf Of Dan Kegel Sent: Thursday, November 19, 2009 2:44 PM To: Osman, Ahmed Cc: val...@li... Subject: Re: [Valgrind-users] compilation problem On Thu, Nov 19, 2009 at 2:19 PM, Osman, Ahmed <ahm...@me...> wrote: > When trying to build valgrind 3.5.0 on my machine, it gives this compilation > problem: > ... > /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 > [root@postponed local]# cat /etc/issue > Red Hat Enterprise Linux WS release 4 (Nahant Update 4) > [root@postponed local]# uname -a > Linux postponed 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 > x86_64 x86_64 GNU/Linux Do you need MPI support? If not, try disabling that... |