Errors installing Valgrind on Mac OS X 10.11 make[3]: *** [memcheck-amd64-darwin] Error 1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Errors installing Valgrind on Mac OS X 10.11 make[3]: *** [memcheck-amd64-darwin] Error 1

Alla _
Hello!

I am trying to install Valgrind 3.12 for the whole day today (I had a 3.11 version, which worked fine, but on a previous, Mountain Lion, OS). 
I have installed: 
automake
autoconf

Then, upon downloading and unzipping the Valgrind-3.12 package,
cd this package
./autogen.sh
./configure --prefix=/usr/local
make

Final lines after make command:

Undefined symbols for architecture x86_64:

  "___bzero", referenced from:

      _hijack_thread_state in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-amd64-darwin.o)

      _RRegUniverse__init in libvex-amd64-darwin.a(libvex_amd64_darwin_a-host_generic_regs.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


I will be grateful for your help. I am working on a student's program now, and I am a newbie in programming. 

Thank you!
--
Respectfully,
Alla


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Errors installing Valgrind on Mac OS X 10.11 make[3]: *** [memcheck-amd64-darwin] Error 1

John Reiser
> Undefined symbols for architecture x86_64:
>
>   "___bzero", referenced from:
>
>       _hijack_thread_state in libcoregrind-amd64-darwin.a(libcoregrind_amd64_darwin_a-syswrap-amd64-darwin.o)
>
>       _RRegUniverse__init in libvex-amd64-darwin.a(libvex_amd64_darwin_a-host_generic_regs.o)

$ grep -r __bzero valgrind-3.12

===== coregrind/m_main.c
#if defined(VGO_darwin) && DARWIN_VERS == DARWIN_10_10

/* This might also be needed for > DARWIN_10_10, but I have no way
    to test for that.  Hence '==' rather than '>=' in the version
    test above. */
void __bzero ( void* s, UWord n );
void __bzero ( void* s, UWord n )
{
    (void) VG_(memset)( s, 0, n );
}

#endif
=====

So a timid developer chose "not functional" versus
"works, but perhaps a few microseconds slower".

Just change it to
        #if defined(VGO_darwin)
omitting the test of DARWIN_VERS.


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Loading...