Using FSF versions of gcc, SVN valgrind fails to build on MacOS X due to use of __private_extern__ which is not defined by the C compiler. The following files are affected: coregrind/m_syscall.c coregrind/m_syswrap/syswrap-darwin.c coregrind/vg_preloaded.c The fix simple requires adding the appropriate define to the above files: #define __private_extern__ extern Reproducible: Always Steps to Reproduce: 1. export CC=gcc-4.7 2. export CXX=gcc-4.7 3. ./configure 4. make Actual Results: gcc-4.7 -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1 -DVGPV_amd64_darwin_vanilla=1 -I../coregrind -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -DVG_PLATFORM="\"amd64-darwin\"" -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -mmacosx-version-min=10.5 -fno-stack-protector -Wno-long-long -Wwrite-strings -fno-stack-protector -MT libcoregrind_amd64_darwin_a-m_syscall.o -MD -MP -MF .deps/libcoregrind_amd64_darwin_a-m_syscall.Tpo -c -o libcoregrind_amd64_darwin_a-m_syscall.o `test -f 'm_syscall.c' || echo './'`m_syscall.c m_syscall.c:536:1: error: unknown type name '__private_extern__' m_syscall.c:537:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'do_syscall_unix_WRK' m_syscall.c:560:1: error: unknown type name '__private_extern__' m_syscall.c:561:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'do_syscall_mach_WRK'
Whoops. Step 2 should read: export CXX=g++4.7.
Yeah, but then doesn't that break compilation with the XCode-supplied compilers?
This is too old to fix now.