Open paulocoutinhox opened 4 years ago
This may happen if your Xcode.app has a different name. I have two Xcode versions installed and renamed the app with the version number; e.g.. Xcode10-2.app. Everything else on my Mac works fine with this, but this formula failed. I changed the name back to normal, and this error went away. Instead, I now have the other error ppl are getting:
Last 15 lines from /Users/nap/Library/Logs/Homebrew/valgrind-mojave/02.make:
Undefined symbols for architecture x86_64:
"_mach_msg_destroy", referenced from:
__kernelrpc_mach_vm_allocate in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-mach_vmUser.o)
__kernelrpc_mach_vm_deallocate in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-mach_vmUser.o)
__kernelrpc_mach_vm_protect in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-mach_vmUser.o)
_mach_vm_inherit in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-mach_vmUser.o)
__kernelrpc_mach_vm_read in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-mach_vmUser.o)
_mach_vm_read_list in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-mach_vmUser.o)
_mach_vm_write in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-mach_vmUser.o)
...
ld: symbol(s) not found for architecture x86_64
make[3]: *** [memcheck-amd64-darwin] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Have a look at my answer, which consolidates advice I found on a number of websites.
brew install valgrind-mojave ==> Installing valgrind-mojave from o4dev/valgrind-mojave ==> Downloading https://github.com/o4dev/Valgrind-Mojave/releases/download/3.14/valgrind-mojave-3.14-unoffical.tar.bz2 ==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/172366051/f7166780-385f-11e9-9a1a-32ba52fc0db8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2 ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/valgrind-mojave/3.14 --enable-only64bit ==> make Last 15 lines from /Users/paulo/Library/Logs/Homebrew/valgrind-mojave/02.make: clang -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../include -I../VEX/pub -I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1 -DVGPV_amd64_darwin_vanilla=1 -Ipriv -arch x86_64 -O2 -finline-functions -g -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 -Wbad-function-cast -fstrict-aliasing -MT priv/libvexmultiarch_amd64_darwin_a-multiarch_main_main.o -MD -MP -MF priv/.deps/libvexmultiarch_amd64_darwin_a-multiarch_main_main.Tpo -c -o priv/libvexmultiarch_amd64_darwin_a-multiarch_main_main.o
test -f 'priv/multiarch_main_main.c' || echo './'
priv/multiarch_main_main.c mv -f priv/.deps/libvexmultiarch_amd64_darwin_a-multiarch_main_main.Tpo priv/.deps/libvexmultiarch_amd64_darwin_a-multiarch_main_main.Po rm -f libvexmultiarch-amd64-darwin.a /usr/bin/ar cru libvexmultiarch-amd64-darwin.a priv/libvexmultiarch_amd64_darwin_a-multiarch_main_main.o ranlib libvexmultiarch-amd64-darwin.a mv -f priv/.deps/libvex_amd64_darwin_a-host_mips_defs.Tpo priv/.deps/libvex_amd64_darwin_a-host_mips_defs.Po mv -f priv/.deps/libvex_amd64_darwin_a-host_mips_isel.Tpo priv/.deps/libvex_amd64_darwin_a-host_mips_isel.Po mv -f priv/.deps/libvex_amd64_darwin_a-host_s390_defs.Tpo priv/.deps/libvex_amd64_darwin_a-host_s390_defs.Po rm -f libvex-amd64-darwin.a /usr/bin/ar cru libvex-amd64-darwin.a priv/libvex_amd64_darwin_a-main_globals.o priv/libvex_amd64_darwin_a-main_main.o priv/libvex_amd64_darwin_a-main_util.o priv/libvex_amd64_darwin_a-ir_defs.o priv/libvex_amd64_darwin_a-ir_inject.o priv/libvex_amd64_darwin_a-ir_match.o priv/libvex_amd64_darwin_a-ir_opt.o priv/libvex_amd64_darwin_a-guest_generic_bb_to_IR.o priv/libvex_amd64_darwin_a-guest_generic_x87.o priv/libvex_amd64_darwin_a-guest_x86_helpers.o priv/libvex_amd64_darwin_a-guest_x86_toIR.o priv/libvex_amd64_darwin_a-guest_amd64_helpers.o priv/libvex_amd64_darwin_a-guest_amd64_toIR.o priv/libvex_amd64_darwin_a-guest_ppc_helpers.o priv/libvex_amd64_darwin_a-guest_ppc_toIR.o priv/libvex_amd64_darwin_a-guest_arm_helpers.o priv/libvex_amd64_darwin_a-guest_arm_toIR.o priv/libvex_amd64_darwin_a-guest_arm64_helpers.o priv/libvex_amd64_darwin_a-guest_arm64_toIR.o priv/libvex_amd64_darwin_a-guest_s390_helpers.o priv/libvex_amd64_darwin_a-guest_s390_toIR.o priv/libvex_amd64_darwin_a-guest_mips_helpers.o priv/libvex_amd64_darwin_a-guest_mips_toIR.o priv/libvex_amd64_darwin_a-host_generic_regs.o priv/libvex_amd64_darwin_a-host_generic_simd64.o priv/libvex_amd64_darwin_a-host_generic_simd128.o priv/libvex_amd64_darwin_a-host_generic_simd256.o priv/libvex_amd64_darwin_a-host_generic_maddf.o priv/libvex_amd64_darwin_a-host_generic_reg_alloc2.o priv/libvex_amd64_darwin_a-host_generic_reg_alloc3.o priv/libvex_amd64_darwin_a-host_x86_defs.o priv/libvex_amd64_darwin_a-host_x86_isel.o priv/libvex_amd64_darwin_a-host_amd64_defs.o priv/libvex_amd64_darwin_a-host_amd64_isel.o priv/libvex_amd64_darwin_a-host_ppc_defs.o priv/libvex_amd64_darwin_a-host_ppc_isel.o priv/libvex_amd64_darwin_a-host_arm_defs.o priv/libvex_amd64_darwin_a-host_arm_isel.o priv/libvex_amd64_darwin_a-host_arm64_defs.o priv/libvex_amd64_darwin_a-host_arm64_isel.o priv/libvex_amd64_darwin_a-host_s390_defs.o priv/libvex_amd64_darwin_a-host_s390_isel.o priv/libvex_amd64_darwin_a-s390_disasm.o priv/libvex_amd64_darwin_a-host_mips_defs.o priv/libvex_amd64_darwin_a-host_mips_isel.o ranlib libvex-amd64-darwin.a Making all in coregrind make[2]: No rule to make target/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/mach/mach_vm.defs', needed by
m_mach/mach_vmUser.c'. Stop. make[1]: [all-recursive] Error 1 make: *** [all] Error 2If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/o4dev/homebrew-valgrind-mojave/issues