valgrind compile error

16 views
Skip to first unread message

Rukhsana Ansari

unread,
May 18, 2017, 2:13:49 PM5/18/17
to pmem
Hi,

I've downloaded tag 1.2 sources and get this compilke error when I try to compile for valgrind.

DEBUG=1 EXTRA_CFLAGS=-DUSE_VALGRIND make -C src/libpmem all

cc -MD -c -o ../debug/libpmem/file.o -std=gnu99 -Wall -Werror -Wmissing-prototypes -Wpointer-arith -Wunused-macros -Wmissing-field-initializers -Wsign-conversion -Wsign-compare -Wconversion -pthread -fno-common -DSRCVERSION=\"\" -O0 -ggdb -DDEBUG  -DUSE_VALGRIND -DNO_LIBPTHREAD -I../include -I../common/ -fPIC ../../src/../src/common/file.c
cc -MD -c -o ../debug/libpmem/file_linux.o -std=gnu99 -Wall -Werror -Wmissing-prototypes -Wpointer-arith -Wunused-macros -Wmissing-field-initializers -Wsign-conversion -Wsign-compare -Wconversion -pthread -fno-common -DSRCVERSION=\"\" -O0 -ggdb -DDEBUG  -DUSE_VALGRIND -DNO_LIBPTHREAD -I../include -I../common/ -fPIC ../../src/../src/common/file_linux.c
cc -MD -c -o ../debug/libpmem/out.o -std=gnu99 -Wall -Werror -Wmissing-prototypes -Wpointer-arith -Wunused-macros -Wmissing-field-initializers -Wsign-conversion -Wsign-compare -Wconversion -pthread -fno-common -DSRCVERSION=\"\" -O0 -ggdb -DDEBUG  -DUSE_VALGRIND -DNO_LIBPTHREAD -I../include -I../common/ -fPIC ../../src/../src/common/out.c
In file included from ../../src/../src/common/out.c:49:0:
../../src/../src/common/valgrind_internal.h:119:32: fatal error: valgrind/pmemcheck.h: No such file or directory
 #include <valgrind/pmemcheck.h>
                                ^
compilation terminated.

Should the header be: valgrind/memcheck.h?

Thanks,
Rukhsana

Latham, Robert J.

unread,
May 18, 2017, 2:29:38 PM5/18/17
to ruk.a...@gmail.com, pm...@googlegroups.com
On Thu, 2017-05-18 at 11:13 -0700, Rukhsana Ansari wrote:
> Hi,
>
> I've downloaded tag 1.2 sources and get this compilke error when I
> try to compile for valgrind.

Are you using the valgrind fork?

https://github.com/pmem/valgrind

==rob

Rukhsana Ansari

unread,
May 18, 2017, 2:34:00 PM5/18/17
to pmem, ruk.a...@gmail.com

Hi,

Just read the READ.md of https://github.com/pmem/nvml/ regarding valgrind.

I'm assuming I have to uninstall valgrind and valgrind-devel rpms from centos 7.2 server to compile and install  the pmem valgrind fork?

Latham, Robert J.

unread,
May 18, 2017, 2:41:49 PM5/18/17
to ruk.a...@gmail.com, pm...@googlegroups.com
On Thu, 2017-05-18 at 11:33 -0700, Rukhsana Ansari wrote:
>
> Hi,
>
> Just read the READ.md of https://github.com/pmem/nvml/ regarding
> valgrind.
>
> I'm assuming I have to uninstall valgrind and valgrind-devel rpms
> from centos 7.2 server to compile and install  the pmem valgrind
> fork?

you could do that, but I suspect most people just install into ${HOME}
or /usr/local/whatever. Here's what I did:

../../valgrind-nvml/configure --prefix=/home/robl/work/soft/valgrind-
3.10-pmem

==rob
Reply all
Reply to author
Forward
0 new messages