On Monday 03 March 2008 16:51, Ashley Pittman wrote:
> I'm trying a VPATH build of valgrind and have found that omega doesn't
> build when using VPATH, it appears omega is the only tool to try and
> include pub_core_options.h

Euh, that's a bug.  By definition tools are only allowed to see
include/pub_tool_*.h and not coregrind/anythingatall.h.

You could probably fix this by changing the include to be
pub_tool_include.h, and then moving any required definitions from
the core_ to tool_ include files.

But before you do that, have a look at 
http://bugs.kde.org/show_bug.cgi?id=155913     
since that fixes vpath compilation, i believe.

J

> and a extra -I{top_srcdir} is needed 
> somewhere, if only I could work out auto-make foo!
>
> The steps to reproduce this from a clean checkout are:
>
> mkdir -p v/valgrind
> cd v/valgrind
> svn co...
> ./autogen.sh
> mkdir ../build
> cd ../build
> ../valgrind/configure --prefix=..
> make
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I../../valgrind/exp-omega
> -I../../valgrind/include -I../../valgrind/VEX/pub -DVGA_x86=1
> -DVGO_linux=1 -DVGP_x86_linux=1   -m32 -mpreferred-stack-boundary=2 -O2
> -g -Wmissing-prototypes -Wall -Wshadow -Wpointer-arith
> -Wstrict-prototypes -Wmissing-declarations -fno-strict-aliasing -O2
> -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement
> -fno-stack-protector -MT exp_omega_x86_linux-o_main.o -MD -MP
> -MF .deps/exp_omega_x86_linux-o_main.Tpo -c -o
> exp_omega_x86_linux-o_main.o `test -f 'o_main.c' || echo
> '../../valgrind/exp-omega/'`o_main.c
> ../../valgrind/exp-omega/o_main.c:61:40: error:
> coregrind/pub_core_options.h: No such file or directory
> ../../valgrind/exp-omega/o_main.c:62:41: error:
> coregrind/pub_core_debugger.h: No such file or directory
> ../../valgrind/exp-omega/o_main.c: In function ‘o_doLeakReport’:
> ../../valgrind/exp-omega/o_main.c:1644: error: ‘vgPlain_clo_db_attach’
> undeclared (first use in this function)
> ../../valgrind/exp-omega/o_main.c:1644: error: (Each undeclared
> identifier is reported only once
> ../../valgrind/exp-omega/o_main.c:1644: error: for each function it
> appears in.)
> ../../valgrind/exp-omega/o_main.c:1646: warning: implicit declaration of
> function ‘vgPlain_start_debugger’
> make[3]: *** [exp_omega_x86_linux-o_main.o] Error 1
> make[3]: Leaving directory
> `/home/apittman/code/valgrind/build/exp-omega'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/apittman/code/valgrind/build/exp-omega'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/apittman/code/valgrind/build'
> make: *** [all] Error 2
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Valgrind-developers mailing list
> Valgrind-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-developers

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to