valgrind-macos icon indicating copy to clipboard operation
valgrind-macos copied to clipboard

10.14.6 compile failure

Open pmiloslavsky opened this issue 4 years ago • 2 comments

DaveiMac:mgr davev$ xcode-select --version xcode-select version 2354.

DaveiMac:mgr davev$ clang --version

Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

DaveiMac:mgr davev$ brew tap LouisBrunner/valgrind Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/cask). ==> Updated Casks Updated 1 cask.

DaveiMac:mgr davev$ brew install --HEAD LouisBrunner/valgrind/valgrind ==> Installing valgrind from louisbrunner/valgrind ==> Cloning https://github.com/LouisBrunner/valgrind-macos.git Updating /Users/davev/Library/Caches/Homebrew/valgrind--git ==> Checking out branch master Already on 'master' Your branch is up to date with 'origin/master'. HEAD is now at adaae87 Merge branch 'development' Warning: A newer Command Line Tools release is available. Update them from Software Update in System Preferences or run: softwareupdate --all --install --force

If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install

Alternatively, manually download them from: https://developer.apple.com/download/more/.

==> ./autogen.sh ==> ./configure --prefix=/usr/local/Cellar/valgrind/HEAD-adaae87 --enable-only64bit --build=amd64-darwin ==> make Last 15 lines from /Users/davev/Library/Logs/Homebrew/valgrind/03.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 -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -mmacosx-version-min=10.6 -O2 -c -o memcheck_amd64_darwin-mc_machine.o test -f 'mc_machine.c' || echo './'mc_machine.c 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 -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -mmacosx-version-min=10.6 -O2 -c -o memcheck_amd64_darwin-mc_errors.o test -f 'mc_errors.c' || echo './'mc_errors.c 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 -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -mmacosx-version-min=10.6 -dynamic -O -g -fno-omit-frame-pointer -fno-strict-aliasing -fpic -fPIC -fno-builtin -O2 -c -o vgpreload_memcheck_amd64_darwin_so-mc_replace_strmem.o test -f 'mc_replace_strmem.c' || echo './'mc_replace_strmem.c clang -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -mmacosx-version-min=10.6 -dynamic -O -g -fno-omit-frame-pointer -fno-strict-aliasing -fpic -fPIC -fno-builtin -O2 -dynamic -dynamiclib -all_load -arch x86_64 ../coregrind/libreplacemalloc_toolpreload-amd64-darwin.a -o vgpreload_memcheck-amd64-darwin.so vgpreload_memcheck_amd64_darwin_so-mc_replace_strmem.o ../coregrind/link_tool_exe_darwin 0x158000000 clang -o memcheck-amd64-darwin -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -mmacosx-version-min=10.6 -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_main_asm.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 ../coregrind/libgcc-sup-amd64-darwin.a link_tool_exe_darwin: /usr/bin/ld -static -new_linker -arch x86_64 -macosx_version_min 10.6 -o memcheck-amd64-darwin -u __start -e __start -image_base 0x158000000 -stack_addr 0x154000000 -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_main_asm.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 ../coregrind/libgcc-sup-amd64-darwin.a link_tool_exe_darwin: ../coregrind/fixup_macho_loadcmds 0x154000000 0x800000 memcheck-amd64-darwin fixup_macho_loadcmds: requested stack_addr (top) 0x154000000, stack_size 0x800000 fixup_macho_loadcmds: examining tool exe: memcheck-amd64-darwin fixup_macho_loadcmds: initial RSP is as expected (0x154000000) fixup_macho_loadcmds: fail: has __UNIXSTACK, but wrong ::maxprot (should be 3) make[3]: *** [memcheck-amd64-darwin] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/louisbrunner/homebrew-valgrind/issues

Error: A newer Command Line Tools release is available. Update them from Software Update in System Preferences or run: softwareupdate --all --install --force

If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install

Alternatively, manually download them from: https://developer.apple.com/download/more/.

Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels.

pmiloslavsky avatar Feb 19 '21 19:02 pmiloslavsky

I am having the same problem, ran the software update command and still doesn't work. Running valgrind on console shows that valgrind command is not found. Any solutions? I'm in Mojave 10.14.6

FdoTorres1 avatar Apr 06 '21 01:04 FdoTorres1

Hi @pmiloslavsky,

Thank you for your report. I am currently focusing on Big Sur support when it's finished, I will test the latest master on my old 10.14 to sort that out.

LouisBrunner avatar Apr 18 '21 15:04 LouisBrunner

Closing this due to inactivity. Please reopen with more details and/or a reproducible example if the issue persists.

To be able to help, I would also need your Xcode version (xcrun --sdk macosx --show-sdk-version) and more details about how memcheck got compiled, if you check out the project directly and build it manually, you can run otool -l ./memcheck/memcheck-amd64-darwin and paste the details here.

LouisBrunner avatar Jan 02 '23 22:01 LouisBrunner