LouisBrunner / valgrind-macos

A valgrind mirror with latest macOS support
GNU General Public License v2.0
1.14k stars 58 forks source link

Building error on 13.6.4 #107

Closed artem-s-shevchenko closed 8 months ago

artem-s-shevchenko commented 8 months ago

Context

I was trying to build the valgrind, but the make step fails. In case of installing from brew, the error is the same.

What went wrong?

make step in the process fails with the error.

Making all in coregrind /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -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="\"/usr/local/libexec/valgrind"\" -DVG_PLATFORM="\"amd64-darwin\"" -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers -Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing -fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include -mmacosx-version-min=10.8 -MT m_debuginfo/libcoregrind_amd64_darwin_a-debuginfo.o -MD -MP -MF m_debuginfo/.deps/libcoregrind_amd64_darwin_a-debuginfo.Tpo -c -o m_debuginfo/libcoregrind_amd64_darwin_a-debuginfo.o test -f 'm_debuginfo/debuginfo.c' || echo './'m_debuginfo/debuginfo.c m_debuginfo/debuginfo.c:1945:9: error: call to undeclared function 'vgModuleLocal_is_macho_objectfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!ML(is_macho_object_file)( (const void*) header, len )) ^ ../include/pub_toolbasics.h:69:21: note: expanded from macro 'ML'

define ML(str) VGAPPEND(vgModuleLocal, str)

^ ../include/pub_tool_basics.h:66:29: note: expanded from macro 'VGAPPEND'

define VGAPPEND(str1,str2) str1##str2

^

:58:1: note: expanded from here vgModuleLocal_is_macho_object_file ^ 1 error generated. make[3]: *** [m_debuginfo/libcoregrind_amd64_darwin_a-debuginfo.o] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

What did you expect to happen?

To build successfully.

Information

LouisBrunner commented 8 months ago

Hey @artem-s-shevchenko,

I recently updated the main branch to have the latest commits from the upstream Valgrind. The CI looked good so I merged everything.

However, they were some conflicts between changes upstream and in this repo. These are now resolved and main should be usable again.

Sorry about that!