2008/5/19 Konstantin Boyanov <[EMAIL PROTECTED]>:
> Hi there,
>
> I'm trying to cross compile glibc-2.3.4 to PowerPC MPC7457.
>
> I have a prebuilt toolchain on my dev host:
>
> # $CC --version
> ppc_60x-gcc (GCC) 3.4.4
> # uname -a
> Linux 2.4.21-53.ELsmp #1 SMP Mon Dec 3 12:48:08 CST 2007 i686 i686 i386
> GNU/Linux
>
> I'm cpnfigurin with the followint options:
> # cd $PROJECT_OBJ_DIR
> # $SOURCE_DIR/configure --prefix=$PROJECT_INSTALL_DIR/usr/local
> CC=ppc_60x-gcc --with-sysroot=$PROJECT_INSTALL_DIR --build=i686-pc-linux-gnu
> --target=powerpc-unknown-linux-gnu --host=powerpc-unknown-linux-gnu
> --enable-add-ons CC=ppc_60x-gcc CXX=ppc_60x-g++
> build_alias=i686-pc-linux-gnu host_alias=powerpc-unknown-linux-gnu
> target_alias=powerpc-unknown-linux-gnu
>
> where $PROJECT_OBJ_DIR, $PROJECT_SRC_DIR and $PROJECT_INTALL_DIR are
> subdirectories of my whole project, and reside on the same directory level.
>
> Configuration, compilation and installation run without any problems. But
> when I copy the compiled files in /usr/local to the target, and try to start
> a simple application I get errors like this:
>
> /usr/local/bin/ldd: line 167: $PROJECT_ISNTALL_DIR/usr/local/lib/ld.so.1:
> No such file or directory
> ldd: $PROJECT_INSTALL_DIR/usr/local/lib/ld.so.1 exited with unknown exit
> code (127)
>

 dirty trick on the target console:

 mkdir -p /$(dirname $PROJECT_INTALL_DIR)
 ln -sf / $PROJECT_INTALL_DIR

 may the source be with you,
-- 
/roberto

Reply via email to