|
From: <fr...@be...> - 2005-10-07 13:58:30
|
Failed to add the mailinglist in my reply. Sorry.
----- Forwarded message from fr...@be... -----
Date: Fri, 07 Oct 2005 15:49:41 +0200
From: fr...@be...
Reply-To: fr...@be...
Subject: Re: [Valgrind-users] can't compile valgrind-3.0.1
To: Julian Seward <js...@ac...>
Quoting Julian Seward <js...@ac...>:
>
> It looks like
>
>> make[5]: Entering directory `/home/frank/valgrind-3.0.1/VEX'
>> i386-linux-gcc -Wall -g -o auxprogs/genoffsets auxprogs/genoffsets.c
>
> failed, and so you can't do:
>
>> ./auxprogs/genoffsets > pub/libvex_guest_offsets.h
>
> Why did the build of genoffsets fail? It is a simple C program.
It didn't fail to build. It was just build with
the wrong compiler. If it's a tool used in the build
process it mustn't use the host compiler
(i386-linux-gcc -> uclibc).
As a first cut i built it by hand using the local gcc and reran make.
Which had this result:
if i386-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../coregrind -I../..
-I../../coregrind/x86 -I../../coregrind/linux -I../../coregrind/x86-linux
-I../../include -I/home/frank/valgrind-3.0.1/VEX/pub -DVGA_x86=1 -DVGO_linux=1
-DVGP_x86_linux=1 -m32 -mpreferred-stack-boundary=2 -Wmissing-prototypes
-Winline -Wall -Wshadow-O -g -Wno-long-long -MT syswrap-main.o -MD -MP -MF
".deps/syswrap-main.Tpo" -c -o syswrap-main.o syswrap-main.c; \
then mv -f ".deps/syswrap-main.Tpo" ".deps/syswrap-main.Po"; else rm -f
".deps/syswrap-main.Tpo"; exit 1; fi
syswrap-main.c: In function `getSyscallArgLayout':
syswrap-main.c:428: error: `OFFSET_x86_EAX' undeclared (first use in this
function)
syswrap-main.c:428: error: (Each undeclared identifier is reported only once
syswrap-main.c:428: error: for each function it appears in.)
syswrap-main.c:429: error: `OFFSET_x86_EBX' undeclared (first use in this
function)
syswrap-main.c:430: error: `OFFSET_x86_ECX' undeclared (first use in this
function)
syswrap-main.c:431: error: `OFFSET_x86_EDX' undeclared (first use in this
function)
syswrap-main.c:432: error: `OFFSET_x86_ESI' undeclared (first use in this
function)
syswrap-main.c:433: error: `OFFSET_x86_EDI' undeclared (first use in this
function)
syswrap-main.c:434: error: `OFFSET_x86_EBP' undeclared (first use in this
function)
make[4]: *** [syswrap-main.o] Error 1
make[4]: Leaving directory `/home/frank/valgrind-3.0.1/coregrind/m_syswrap'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/frank/valgrind-3.0.1/coregrind'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/frank/valgrind-3.0.1/coregrind'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/frank/valgrind-3.0.1'
make: *** [all] Error 2
Regards,
Frank
----- End forwarded message -----
|