I'm trying to compile valgrind SVN version 15929 using clang 3.8.1 on
target x86_64-apple-darwin15.6.0. I'm running on OSX 15.6 (El Capitan).
When tries to link vgpreload_core-x86-darwin.so, it fails with an error
regarding duplicate ___eprintf symbols.

Anyone see this before? I'm trying to figure out if this is an issue with
my system, or with the valgrind source. Note that I also tried compiling
the valgrind-3.11 stable release, but hit the same issue.

Error:

/Users/j/toolchains/llvm-3.8.1/bin/clang  -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.5
-fno-stack-protector -fno-pic -fno-PIC -dynamic -O -g
-fno-omit-frame-pointer -fno-strict-aliasing -fpic -fPIC -fno-builtin
-dynamic -dynamiclib -all_load -arch i386   -o vgpreload_core-x86-darwin.so
vgpreload_core_x86_darwin_so-vg_preloaded.o

duplicate symbol ___eprintf in:

    /Users/j/toolchains/llvm-3.8.1/bin/../lib/clang/3.8.1/lib/
darwin/libclang_rt.eprintf.a(eprintf.c.o)

    /Users/j/toolchains/llvm-3.8.1/bin/../lib/clang/3.8.1/lib/
darwin/libclang_rt.osx.a(eprintf.c.o)

ld: 1 duplicate symbol for architecture i386

clang-3.8: error: linker command failed with exit code 1 (use -v to see
invocation)

Makefile:2749: recipe for target 'vgpreload_core-x86-darwin.so' failed
------------------------------------------------------------------------------
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to