|
From: Leo S. <l.s...@ao...> - 2005-12-10 15:15:55
|
Hello, Trying to compile valgrind-cvs as of today, I hit the following bug: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../coregrind -I.. -I../coregrind/x86=20 =2DI../coregrind/linux -I../coregrind/x86-linux -I../include -I../VEX/pub=20 =2DDVG_PLATFORM=3D"\"x86-linux\"" -DVGA_x86=3D1 -DVGO_linux=3D1 -DVGP_x86_l= inux=3D1=20 =2DDVG_LIBDIR=3D"\"/leo/apps/valgrind-cvs/lib/valgrind"\" =20 =2Dmpreferred-stack-boundary=3D2 -O -g -Wmissing-prototypes -Winline -Wall= =20 =2DWshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations=20 =2DWno-long-long -c launcher.c launcher.c: In function `select_platform': launcher.c:157: `EM_X86_64' undeclared (first use in this function) grepping though valgrind-sources, EM_X86_64 is nowhere defined. Should=20 EM_X86_64 be supplied from the system? At least my system doesn't support=20 x86-64. The same error occurs on the 3.1-branch as well. mfg Leo PS: Please CC me, I'm not subscribed. |
|
From: Nicholas N. <nj...@cs...> - 2005-12-10 22:58:42
|
On Sat, 10 Dec 2005, Leo Savernik wrote: > Trying to compile valgrind-cvs as of today, I hit the following bug: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../coregrind -I.. -I../coregrind/x86 > -I../coregrind/linux -I../coregrind/x86-linux -I../include -I../VEX/pub > -DVG_PLATFORM="\"x86-linux\"" -DVGA_x86=1 -DVGO_linux=1 -DVGP_x86_linux=1 > -DVG_LIBDIR="\"/leo/apps/valgrind-cvs/lib/valgrind"\" > -mpreferred-stack-boundary=2 -O -g -Wmissing-prototypes -Winline -Wall > -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations > -Wno-long-long -c launcher.c > launcher.c: In function `select_platform': > launcher.c:157: `EM_X86_64' undeclared (first use in this function) > > grepping though valgrind-sources, EM_X86_64 is nowhere defined. Should > EM_X86_64 be supplied from the system? At least my system doesn't support > x86-64. It's in /usr/include/elf.h on my machine. How old is your system? You can workaround this by adding: #define EM_X86_64 62 somewhere in launcher.c. Nick |
|
From: Leo S. <l.s...@ao...> - 2005-12-11 08:55:11
Attachments:
configure_1.diff
|
Am Samstag, 10. Dezember 2005 23:58 schrieb Nicholas Nethercote: > > grepping though valgrind-sources, EM_X86_64 is nowhere defined. Should > > EM_X86_64 be supplied from the system? At least my system doesn't support > > x86-64. > > It's in /usr/include/elf.h on my machine. How old is your system? You > can workaround this by adding: > > #define EM_X86_64 62 > > somewhere in launcher.c. My system is about four years old. elf.h defines EM_X86_64 as EM_X8664 (!) instead. Please review the attached configure.in patch, and consider it for inclusion. mfg Leo |