Summary: | Build fails when srcdir != builddir | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Daniel Richard G. <skunk> |
Component: | general | Assignee: | Julian Seward <jseward> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | njn |
Priority: | NOR | ||
Version First Reported In: | 3.1.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch against valgrind-3.1.0 sources |
Description
Daniel Richard G.
2005-11-30 03:33:57 UTC
Created attachment 13680 [details]
Patch against valgrind-3.1.0 sources
Both in- and out-of-source-tree builds work for me with this patch. Feel free
to change my choice of variable names et al.; consistency wasn't foremost on my
mind :-)
Building the latest valgrind-3.2.2: ... gcc -I/home/src/valgrind/valgrind-3.2.2/coregrind -I/home/src/valgrind/valgrind-3.2.2 -I/home/src/valgrind/valgrind-3.2.2/coregrind/x86 -I/home/src/valgrind/valgrind-3.2.2/coregrind/linux -I/home/src/valgrind/valgrind-3.2.2/coregrind/x86-linux -I/home/src/valgrind/valgrind-3.2.2/include -I/home/src/valgrind/valgrind-3.2.2/VEX/pub -DVG_PLATFORM="\"x86-linux\"" -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1 -m32 -g -Wno-long-long -c -o libcoregrind_x86_linux_a-m_cpuid.o `test -f 'm_cpuid.S' || echo '/home/src/valgrind/valgrind-3.2.2/coregrind/'`m_cpuid.S In file included from /home/src/valgrind/valgrind-3.2.2/coregrind/m_cpuid.S:31: /home/src/valgrind/valgrind-3.2.2/coregrind/pub_core_basics_asm.h:45:20: error: config.h: No such file or directory make[3]: *** [libcoregrind_x86_linux_a-m_cpuid.o] Error 1 make[3]: Leaving directory `/tmp/vg-build/coregrind' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/vg-build/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/vg-build' make: *** [all] Error 2 The bug lives on. For me its standard practice to create a dir like 'build64' in the topdir and execute the configure script therein. This srcdir!=builddir bug is still present in 3.3.0. I stumbled over point 2. with a missing config.h due to $(top_builddir) not present in the add_includes_... (AMD_64 in my case), and furtheron libmpiwrap was then also missing as it could not be found. *** This bug has been marked as a duplicate of bug 155913 *** |