Bug 330984

Summary: build fails on snow leopard
Product: [Developer tools] valgrind Reporter: erg
Component: memcheckAssignee: Julian Seward <jseward>
Status: RESOLVED DUPLICATE    
Severity: normal CC: rhyskidd
Priority: NOR    
Version: 3.9.0   
Target Milestone: ---   
Platform: MacPorts   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description erg 2014-02-10 15:33:18 UTC
Build fails both via macports and using the source package from the valgrind page, reporting missing symbols:


../coregrind/link_tool_exe_darwin 0x138000000 gcc  -Wno-long-long  -Wwrite-strings -fno-stack-protector   -o memcheck-amd64-darwin  -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -mmacosx-version-min=10.5 -fno-stack-protector -O2 -nodefaultlibs -nostartfiles -Wl,-u,__start -Wl,-e,__start -arch x86_64 memcheck_amd64_darwin-mc_leakcheck.o memcheck_amd64_darwin-mc_malloc_wrappers.o memcheck_amd64_darwin-mc_main.o memcheck_amd64_darwin-mc_translate.o memcheck_amd64_darwin-mc_machine.o memcheck_amd64_darwin-mc_errors.o ../coregrind/libcoregrind-amd64-darwin.a ../VEX/libvex-amd64-darwin.a -lgcc 
link_tool_exe_darwin: /usr/bin/ld -static -arch x86_64 -macosx_version_min 10.5 -o memcheck-amd64-darwin -u __start -e __start -image_base 0x138000000 -stack_addr 0x134000000 -stack_size 0x800000 memcheck_amd64_darwin-mc_leakcheck.o memcheck_amd64_darwin-mc_malloc_wrappers.o memcheck_amd64_darwin-mc_main.o memcheck_amd64_darwin-mc_translate.o memcheck_amd64_darwin-mc_machine.o memcheck_amd64_darwin-mc_errors.o ../coregrind/libcoregrind-amd64-darwin.a ../VEX/libvex-amd64-darwin.a
Undefined symbols:
  "_vgSysWrap_darwin_psynch_cvclrprepost_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_rw_unlock_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_cvclrprepost_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_rw_wrlock_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_mutexwait_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_cvwait_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_cvsignal_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_cvbroad_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_rw_wrlock_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_cvsignal_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_mutexdrop_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_mutexwait_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_rw_rdlock_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_cvbroad_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_mutexdrop_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_cvwait_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_rw_rdlock_before", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
  "_vgSysWrap_darwin_psynch_rw_unlock_after", referenced from:
      _vgModuleLocal_syscall_table in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-darwin.o)
ld: symbol(s) not found
make[3]: *** [memcheck-amd64-darwin] Error 1


Reproducible: Always

Steps to Reproduce:
1.configure --prefix=$HOME
2.make
3.



Or did I miss that snow leopard is no longer supported? Or can I just turn off amd support?
Comment 1 Rhys Kidd 2015-06-01 00:00:29 UTC

*** This bug has been marked as a duplicate of bug 327745 ***