|
From: <fr...@be...> - 2005-10-04 13:33:41
|
Hi, for various reasons i'm using a uclibc-based chroot environment for running the program i'm working on. How do i install valgrind into this chroot environment? When disabling tls i can compile and install valgrind. ./configure --host=i386-linux --prefix=/home/frank/buildroot/build_i386/root/ --disable-tls && make && make install But the installation is broken because of some hard coded paths. bash-3.00$ valgrind ls valgrind: failed to load /home/frank/buildroot/build_i386/root//lib/valgrind/stage2: No such file or directory Any ideas? TIA, Frank |
|
From: Tom H. <to...@co...> - 2005-10-04 13:41:12
|
In message <200...@ad...>
fr...@be... wrote:
> for various reasons i'm using a uclibc-based chroot environment
> for running the program i'm working on.
>
> How do i install valgrind into this chroot environment?
>
> When disabling tls i can compile and install valgrind.
>
> ./configure --host=i386-linux --prefix=/home/frank/buildroot/build_i386/root/
> --disable-tls && make && make install
>
> But the installation is broken because of some hard coded paths.
Not surprising - you should never use --prefix to control the install
time location, that is for the run time location.
Use DESTDIR when doing the make install to control the install time
prefix, so something like this:
./configure --host=i386-linux --disable-tls
make
make install DESTDIR=/home/frank/buildroot/build_i386/root
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Jeroen N. W. <jn...@xs...> - 2005-10-04 15:31:54
|
> In message <200...@ad...> > fr...@be... wrote: > >> for various reasons i'm using a uclibc-based chroot environment >> for running the program i'm working on. >> >> How do i install valgrind into this chroot environment? >> >> When disabling tls i can compile and install valgrind. >> >> ./configure --host=i386-linux >> --prefix=/home/frank/buildroot/build_i386/root/ >> --disable-tls && make && make install >> >> But the installation is broken because of some hard coded paths. > > Not surprising - you should never use --prefix to control the install > time location, that is for the run time location. > > Use DESTDIR when doing the make install to control the install time > prefix, so something like this: > > ./configure --host=i386-linux --disable-tls > make > make install DESTDIR=/home/frank/buildroot/build_i386/root > > Tom > It may be (I haven't tried it) that in this chroot environment you need both. Assuming that you chroot to /home/frank/buildroot and want to install valgrind in /build_i386/root relative to that, you probably need to do: /configure --host=i386-linux --prefix=/build_i386/root/ --disable-tls make make install DESTDIR=/home/frank/buildroot Jeroen. |
|
From: Frank M. <fr...@be...> - 2005-10-04 19:17:15
|
Tom Hughes wrote: >> >>./configure --host=i386-linux --prefix=/home/frank/buildroot/build_i386/root/ >>--disable-tls && make && make install >> >>But the installation is broken because of some hard coded paths. >> >> > >Not surprising - you should never use --prefix to control the install >time location, that is for the run time location. > >Use DESTDIR when doing the make install to control the install time >prefix, so something like this: > > ./configure --host=i386-linux --disable-tls > make > make install DESTDIR=/home/frank/buildroot/build_i386/root > > Thanks for your help. It worked without further problems. Regards, Frank |