Hi all,

Because Homebrew installation of valgrind failed on my Mac, I'm trying to
build from the svn repo by following the steps documented at
http://valgrind.org/downloads/repository.html.

While doing so, I'm running into a build issue. Could somebody let me know
whether this is a supported configuration and possible even how to fix the
problem?

Thanks a lot!


*Homebrew*:

$ brew install valgrind
valgrind: This formula either does not compile or function as expected on
macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.
$ brew install --HEAD valgrind
valgrind: This formula either does not compile or function as expected on
macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.


*My versions*:
OS X, Sierra, 10.12.3.
Xcode 8.2.1 (8C1002)

*Build error*:
./autogen.sh
./configure

         Maximum build arch: amd64
         Primary build arch: amd64
       Secondary build arch: x86
                   Build OS: darwin
       Primary build target: AMD64_DARWIN
     Secondary build target: X86_DARWIN
           Platform variant: vanilla
      Primary -DVGPV string: -DVGPV_amd64_darwin_vanilla=1
         Default supp files: exp-sgcheck.supp xfree-3.supp xfree-4.supp
darwin10-drd.supp darwin16.supp

make

../coregrind/link_tool_exe_darwin 0x38000000 gcc     -o memcheck-x86-darwin
 -arch i386 -O2 -g -std=gnu99 -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align
-Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security
-Wignored-qualifiers -fno-stack-protector -fno-strict-aliasing -fno-builtin
-Wno-cast-align -Wno-self-assign -Wno-tautological-compare
-mmacosx-version-min=10.6 -fno-stack-protector -fno-pic -fno-PIC -O2
-nodefaultlibs -nostartfiles -Wl,-u,__start -Wl,-e,__start -arch i386
memcheck_x86_darwin-mc_leakcheck.o memcheck_x86_darwin-mc_malloc_wrappers.o
memcheck_x86_darwin-mc_main.o memcheck_x86_darwin-mc_translate.o
memcheck_x86_darwin-mc_machine.o memcheck_x86_darwin-mc_errors.o
../coregrind/libcoregrind-x86-darwin.a ../VEX/libvex-x86-darwin.a -lgcc
link_tool_exe_darwin: /usr/bin/ld -static -arch i386 -macosx_version_min
10.6 -o memcheck-x86-darwin -u __start -e __start -image_base 0x38000000
-stack_addr 0x34000000 -stack_size 0x800000
memcheck_x86_darwin-mc_leakcheck.o memcheck_x86_darwin-mc_malloc_wrappers.o
memcheck_x86_darwin-mc_main.o memcheck_x86_darwin-mc_translate.o
memcheck_x86_darwin-mc_machine.o memcheck_x86_darwin-mc_errors.o
../coregrind/libcoregrind-x86-darwin.a ../VEX/libvex-x86-darwin.a
Undefined symbols for architecture i386:
  "___ctzdi2", referenced from:
      _doRegisterAllocation in
libvex-x86-darwin.a(libvex_x86_darwin_a-host_generic_reg_alloc2.o)
ld: symbol(s) not found for architecture i386
make[3]: *** [memcheck-x86-darwin] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to