|
From: Hrishikesh K. <hku...@li...> - 2007-04-06 05:03:05
|
I am trying to compile valgrind-3.2.3 for my ppc target
The machine I am trying to compile on is "x86_64 x86_64 x86_64
GNU/Linux"
The target machine I am planning to run valgrind on is powerpc
=20
I set=20
=20
1. CC =3D
tools/cross/gcc-3.2.3-glibc-2.3.2/powerpc-603-linux-gnu/bin/powerpc-603-
linux-gnu-gcc
=20
2. ./configure --host=3Dpowerpc-linux --disable-tls
=20
Last few lines of the configure output
"=20
Primary build target: PPC32_LINUX
Secondary build target:
Default supp files: glibc-2.3.supp
"
=20
3. make
=20
The compilation fails as
=20
tools/cross/gcc-3.2.3-glibc-2.3.2/powerpc-603-linux-gnu/bin/powerpc-603-
linux-gnu-gcc -Wall -g -o auxprogs/genoffsets auxprogs/genoffsets.c
./auxprogs/genoffsets > pub/libvex_guest_offsets.h
/bin/sh: ./auxprogs/genoffsets: cannot execute binary file
=20
Did I do the .configure right?=20
=20
Rishi
=20
|
|
From: celafon <bar...@gm...> - 2007-09-06 21:50:30
|
Just happen to have the same problem. The file pub/libvex_guest_offsets.h does not exist. It can happen when you did 'make distclean'. Try to unpack the sources one more time, run configure and make. It worked for me that way. That .h file is supposed to be generated with the compiled previously genoffsets app, but it wont run is it is compiled for PPC... Regards, Bartek Hrishikesh Kulkarni-2 wrote: > > I am trying to compile valgrind-3.2.3 for my ppc target > > The machine I am trying to compile on is "x86_64 x86_64 x86_64 > GNU/Linux" > > The target machine I am planning to run valgrind on is powerpc > > > > I set > > > > 1. CC = > tools/cross/gcc-3.2.3-glibc-2.3.2/powerpc-603-linux-gnu/bin/powerpc-603- > linux-gnu-gcc > > > > 2. ./configure --host=powerpc-linux --disable-tls > > > > Last few lines of the configure output > > " > > Primary build target: PPC32_LINUX > > Secondary build target: > > Default supp files: glibc-2.3.supp > > " > > > > 3. make > > > > The compilation fails as > > > > tools/cross/gcc-3.2.3-glibc-2.3.2/powerpc-603-linux-gnu/bin/powerpc-603- > linux-gnu-gcc -Wall -g -o auxprogs/genoffsets auxprogs/genoffsets.c > > ./auxprogs/genoffsets > pub/libvex_guest_offsets.h > > /bin/sh: ./auxprogs/genoffsets: cannot execute binary file > > > > Did I do the .configure right? > > > > Rishi > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > -- View this message in context: http://www.nabble.com/cross-compiling-valgrind-for-ppc-tf3535280.html#a12463021 Sent from the Valgrind - Users mailing list archive at Nabble.com. |