https://bugs.kde.org/show_bug.cgi?id=363242
Mark H <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Mark H <[email protected]> --- I encounter the same error building valgrind-3.12.0.RC2, although in my case I have a newer GCC (GCC 6.2.0 from MacPorts). That is what Valgrind's configure decided to use, since it was before the XCode version in PATH. ... gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1 -DVGPV_amd64_darwin_vanilla=1 -I../coregrind -DVG_LIBDIR="\"/Users/markh/sw/valgrind-install/lib/valgrind"\" -DVG_PLATFORM="\"amd64-darwin\"" -arch x86_64 -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 -Wmissing-parameter-type -Wold-style-declaration -fno-stack-protector -fno-strict-aliasing -fno-builtin -mmacosx-version-min=10.6 -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:708:1: error: unknown type name '__private_extern__' __private_extern__ UWord ^~~~~~~~~~~~~~~~~~ m_syscall.c:709:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'do_syscall_unix_WRK' do_syscall_unix_WRK ( UWord a1, UWord a2, UWord a3, /* rdi, rsi, rdx */ ^~~~~~~~~~~~~~~~~~~ m_syscall.c:732:1: error: unknown type name '__private_extern__' __private_extern__ UWord ^~~~~~~~~~~~~~~~~~ m_syscall.c:733:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'do_syscall_mach_WRK' do_syscall_mach_WRK ( UWord a1, UWord a2, UWord a3, /* rdi, rsi, rdx */ ^~~~~~~~~~~~~~~~~~~ m_syscall.c: In function 'vgPlain_do_syscall': m_syscall.c:1017:16: warning: implicit declaration of function 'do_syscall_unix_WRK' [-Wimplicit-function-declaration] wLO = do_syscall_unix_WRK(a1,a2,a3,a4,a5,a6,a7,a8, ^~~~~~~~~~~~~~~~~~~ m_syscall.c:1022:16: warning: implicit declaration of function 'do_syscall_mach_WRK' [-Wimplicit-function-declaration] wLO = do_syscall_mach_WRK(a1,a2,a3,a4,a5,a6,a7,a8, ^~~~~~~~~~~~~~~~~~~ make[3]: *** [libcoregrind_amd64_darwin_a-m_syscall.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 valgrind-3.12.0.RC2$ valgrind-3.12.0.RC2$ which gcc /opt/local/bin/gcc valgrind-3.12.0.RC2$ gcc --version gcc (MacPorts gcc6 6.2.0_1) 6.2.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. valgrind-3.12.0.RC2$ If I explicitly configure with `CC=/usr/bin/gcc ./configure` to use the older GCC version from XCode then it builds successfully. -- You are receiving this mail because: You are watching all bug changes.
