[petsc-dev] OSX and valgrind

Dave May dave.mayhem23 at gmail.com
Wed Sep 23 14:51:18 CDT 2015


Hey guys,

Yesterday valgrind rolled out a new release which _actually_ works on OSX.
  http://valgrind.org/downloads/current.html

I tried it on my 10.9 system using this configure line
  ./configure --prefix=/Users/dmay/software CC=/opt/local/bin/gcc-mp-4.8
--enable-only64bit --build=amd64-darwin

I did encounter this error during make

m_syscall.c:708:1: error: unknown type name '__private_extern__'
 __private_extern__ UWord
 ^
m_syscall.c:709:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'do_syscall_unix_WRK'
 do_syscall_unix_WRK ( UWord a1, UWord a2, UWord a3, /* rdi, rsi, rdx */
 ^
m_syscall.c:732:1: error: unknown type name '__private_extern__'
 __private_extern__ UWord
 ^
m_syscall.c:733:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'do_syscall_mach_WRK'
 do_syscall_mach_WRK ( UWord a1, UWord a2, UWord a3, /* rdi, rsi, rdx */
 ^
m_syscall.c: In function 'vgPlain_do_syscall':
m_syscall.c:1017:10: warning: implicit declaration of function
'do_syscall_unix_WRK' [-Wimplicit-function-declaration]
          wLO = do_syscall_unix_WRK(a1,a2,a3,a4,a5,a6,a7,a8,
          ^
m_syscall.c:1022:10: warning: implicit declaration of function
'do_syscall_mach_WRK' [-Wimplicit-function-declaration]
          wLO = do_syscall_mach_WRK(a1,a2,a3,a4,a5,a6,a7,a8,
          ^
make[3]: *** [libcoregrind_amd64_darwin_a-m_syscall.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Following the instructions here

http://superuser.com/questions/630674/valgrind-installation-errors-on-osx-10-8
I was successful building valgrind. Tests revealed it functions correctly.

My buddy using OSX 10.10 pulled it down from HomeBrew and this worked out
of the box.


About f***ing time :)

Cheers,
  Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150923/c25b91bd/attachment.html>


More information about the petsc-dev mailing list