in Education by
I tried to install Valgrind with brew install Valgrind and got : valgrind: This formula either does not compile or function as expected on macOS versions newer than Sierra due to an upstream incompatibility. Error: An unsatisfied requirement failed this build. I tried brew install --HEAD Valgrind. Instead, after successfully installing the dependencies autoconf, automake and libtool, when it tries to install valgrind, I get a configure error: Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x and 17.x (Mac OS X 10.6/7/8/9/10/11 and macOS 10.12/13) My OS is macOS Mojave(10.14), so does it mean that I can't install a functioning Valgrind with Homebrew presently? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
A (rather painful) install from source workaround based on this patch, this post and this answer. $ git clone https://github.com/Echelon9/valgrind.git $ cd valgrind $ git checkout feature/v3.14/macos-mojave-support-v2 $ ./autogen.sh $ ./configure --prefix=/where/you/want/it/installed --enable-only64bit $ make If you get the following error: No rule to make target '/usr/include/mach/mach_vm.defs’, you will need to run xcode-select --install. You might need to install Xcode from the app store if you don't already have it. Once that's done, you will need to edit the coregrind/Makefile: Search for: am__append_19 = \ /usr/include/mach/mach_vm.defs \ /usr/include/mach/task.defs \ /usr/include/mach/thread_act.defs \ /usr/include/mach/vm_map.defs After double checking the below folder exists, prefix every line with: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk End result should be: am__append_19 = \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/mach/mach_vm.defs \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/mach/task.defs \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/mach/thread_act.defs \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/mach/vm_map.defs Now run make again and the includes should be found. But that doesn't necessarily mean it will compile. I got the following error: vg_preloaded.c:136:19: error: expected ';' before 'const' __private_extern__ const char *__crashreporter_info__ = "Instrumented by Valgrind " VERSION; A fix for this is to add the following line: #define __private_extern__ extern to the following files: coregrind/m_syscall.c coregrind/m_syswrap/syswrap-darwin.c coregrind/vg_preloaded.c Finally, you need to cross your fingers hoping no other errors show up: $ make $ make install

Related questions

0 votes
    The rate constant for the first order decompoistion of a certain reaction is described by the equation logk(s-1)= ... periof be 256min? Select the correct answer from above options...
asked Jan 4, 2022 in Education by JackTerrance
0 votes
    2 6 10 14 18 22 26 30 34 42 46 50 54 58 या च्या तुन तीन संख्या घेऊन उत्तर 60 आले पाहिजेत Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    A particular electric current is made up of two component: a 10 A and a sine wave of peak value 14.14 A. ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
    A particular electric current is made up of two components a 10 A, a sine wave of peak value 14.14 A. The ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 12, 2021 in Education by JackTerrance
0 votes
    Ok, this is weird. My terminal (iterm2 with zsh) exits a command with control + m or control + ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    When I run telnet command in Docker it does not run. Could you please tell me how to install ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 16, 2022 in Education by JackTerrance
0 votes
    Calculate the binding energy per nucleon for C 12 , N 14 , O 16 C , and comment on their relative magnitudes. Masses ... 931 M e V ) ( Select the correct answer from above options...
asked Jan 2, 2022 in Education by JackTerrance
0 votes
    Three six-faced dice are thrown together. The probability that the sum of the numbers appearing on the dice is k( ... D. none of these Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
0 votes
    As it currently stands, this question is not a good fit for our Q&A format. We expect answers to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 26, 2022 in Education by JackTerrance
0 votes
    Write a program to find the perimeter of a triangle with sides measuring 10cm, 14 cm and 15 cm. Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    14. The hardware devices are controlled with the help of the software called ________ . a Device Drivers b. ... c. Application Software Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Calculate the wavelength of the wave with phase constant of 3.14 units. (a) 1 (b) 2 ... theory proposed by,electromagnetic theory engineering physics,electromagnetic theory nptel...
asked Nov 6, 2021 in Education by JackTerrance
0 votes
    I tried to follow this tutorial. This is what I did in the console: pip3 install --user --upgrade awscli after ... 's the problem here? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
...