https://bugs.kde.org/show_bug.cgi?id=396475

            Bug ID: 396475
           Summary: valgrind OS-X build: config.h not found
           Product: valgrind
           Version: 3.14 SVN
          Platform: Compiled Sources
                OS: OS X
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: rboe...@gmail.com
  Target Milestone: ---

Created attachment 113917
  --> https://bugs.kde.org/attachment.cgi?id=113917&action=edit
Add -I$(top_builddir) to the special rule for fixup_macho_loadcmds.c

Under OS X, the git sources as of July 13, 2018 can't be build outside the
source directory.  This is because and include path to the "build" directory
isn't specified in the special rule for one file.


Making all in coregrind
(cd m_mach && mig /usr/include/mach/mach_vm.defs /usr/include/mach/task.defs
/usr/include/mach/thread_act.defs /usr/include/mach/vm_map.defs)
gcc -I../../../../valgrind -I../../../../valgrind
-I../../../../valgrind/include -I../include -I../../../../valgrind/VEX/pub
-I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1
-DVGPV_amd64_darwin_vanilla=1  -I../../../../valgrind/coregrind
-DVG_LIBDIR="\"/opt/valgrind-3.14.GIT/lib/valgrind"\"
-DVG_PLATFORM="\"amd64-darwin\"" -g -Wall -o fixup_macho_loadcmds
../../../../valgrind/coregrind/fixup_macho_loadcmds.c
../../../../valgrind/coregrind/fixup_macho_loadcmds.c:121:10: fatal error:
'config.h' file not found
#include "config.h"
         ^
1 error generated.
gnumake[2]: *** [fixup_macho_loadcmds] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

Patch attached.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to