Ciao again,
On ven, 2008-06-13 at 11:22 +0200, Luigi 'Comio' Mantellini wrote:
> Ciao,
> make[4]: Entering directory
> `/mnt/devel/openwrt/OpenWRT.git/build_dir/toolchain-m68k_gcc4.3.1/uClibc-0.9.29'
> install -d
> /mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1//lib
> install -m 644 lib/lib*-0.9.29.so \
>
> /mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1//lib
> cd lib && tar -cf - *.so.* | tar -xf - -C
> /mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1//lib
> tar: error while loading shared libraries: libpthread.so.0: ELF file data
> encoding not little-endian
> tar: error while loading shared libraries: libpthread.so.0: ELF file data
> encoding not little-endian
My self-answer: This error is caused by the "LD_LIBRARY_PATH" that I
defined into rule.mk. At this point I need to resolve an issue: GCC4.3
requires gmp and mpfr libraries. I added the makefile under the
toolchain directory in order to create the needed libraries (libgmp.so
and libmpfr.so). I placed these libraries into the
staging_dir/host/lib/ directory... but (cross)gcc doesn't start because
this directory is not in the ld path... I thought to solve this issue
using the LD_LIBRARY_PATH=$(TOP)/staging_dir/host/lib/ ... but this
creates the error in tar application....
Now, with LD_LIBRARY_PATH env. variable removed, I'm compiling the
gcc-final... but I will need it when the (cross)gcc is invoked.
question: Where can I place the host libraries (__NOT TARGET__) in order
to be visible to cross-compiler (and in general, to crosstools)?
I'm sorry for this "ship's log" but I'm not an OpenWRT developer and I
don't know the internals... I only know that I need to port OpenWRT to
Coldfire architecture....
Thanks a lot and all comments are wellcome.
luigi
> Of course the tar command works fine on my system.
>
> Any idea?
>
> luigi
>
> On ven, 2008-06-13 at 09:34 +0200, Luigi 'Comio' Mantellini wrote:
> > Sorry. You are right. (I'm working also on a mips architecture and I
> > have made some mistake in copying).
> >
> > Try this.
> >
> > Thanks,
> >
> > luigi
> >
> >
> >
> >
> >
> > On ven, 2008-06-13 at 09:10 +0200, Geert Uytterhoeven wrote:
> > > On Fri, 13 Jun 2008, Luigi 'Comio' Mantellini wrote:
> > > > I'm still working to port OpenWRT on my architecture (m68k/coldfire). I
> > >
> > > > diff --git a/target/linux/generic_m68k/config-default
> > > > b/target/linux/generic_m68k/config-default
> > > > new file mode 100644
> > > > index 0000000..6f8acb5
> > > > --- /dev/null
> > > > +++ b/target/linux/generic_m68k/config-default
> > > > @@ -0,0 +1,616 @@
> > > > +#
> > > > +# Automatically generated make config: don't edit
> > > > +# Linux kernel version: 2.6.25
> > > > +# Mon May 12 19:37:01 2008
> > > > +#
> > > > +CONFIG_MIPS=y
> > > ^^^^
> > >
> > > That looks a bit strange for an m68k config...
> > >
> > > > diff --git a/target/linux/generic_m68k/image/lzma-loader/src/Makefile
> > > > b/target/linux/generic_m68k/image/lzma-loader/src/Makefile
> > > > new file mode 100644
> > > > index 0000000..910172c
> > > > --- /dev/null
> > > > +++ b/target/linux/generic_m68k/image/lzma-loader/src/Makefile
> > > > @@ -0,0 +1,68 @@
> > > > +#
> > > > +# Copyright (C) 2006 OpenWrt.org
> > > > +#
> > > > +# This is free software, licensed under the GNU General Public License
> > > > v2.
> > > > +# See /LICENSE for more information.
> > > > +#
> > > > +RAMSTART = 0x80000000
> > > > +RAMSIZE = 0x00100000 # 1MB
> > > > +LOADADDR = 0x80400000 # RAM start + 4M
> > > > +KERNEL_ENTRY = 0x80001000
> > > > +IMAGE_COPY:=0
> > > > +
> > > > +CROSS_COMPILE = mips-linux-
> > > ^^^^
> > > Another one...
> > >
> > > > diff --git
> > > > a/target/linux/generic_m68k/image/lzma-loader/src/decompress.c
> > > > b/target/linux/generic_m68k/image/lzma-loader/src/decompress.c
> > > > new file mode 100644
> > > > index 0000000..45ac509
> > > > --- /dev/null
> > > > +++ b/target/linux/generic_m68k/image/lzma-loader/src/decompress.c
> > >
> > > > +#define cache_unroll(base,op) \
> > > > + __asm__ __volatile__( \
> > > > + ".set noreorder;\n" \
> > > > + ".set mips3;\n" \
> > > > + "cache %1, (%0);\n" \
> > > > + ".set mips0;\n" \
> > > > + ".set reorder\n" \
> > > > + : \
> > > > + : "r" (base), \
> > > > + "i" (op));
> > >
> > > Erhm...
> > >
> > > And there are many more...
> > >
> > > Gr{oetje,eeting}s,
> > >
> > > Geert
> > >
> > > --
> > > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL
> > > PROTECTED]
> > >
> > > In personal conversations with technical people, I call myself a hacker.
> > > But
> > > when I'm talking to journalists I just say "programmer" or something like
> > > that.
> > > -- Linus Torvalds
> > > _______________________________________________
>
> ______ Luigi Mantellini
> .'______'. R&D - Software
> (.' '.) Industrie Dial Face S.p.A.
> ( :=----=: ) Via Canzo, 4
> ('.______.') 20068 Peschiera Borromeo (MI), Italy
> '.______.' Tel.: +39 02 5167 2813
> Fax: +39 02 5167 2459
> Ind. Dial Face Email: [EMAIL PROTECTED]
> www.idf-hit.com GPG fingerprint: 3DD1 7B71 FBDF 6376 1B4A
> B003 175F E979 907E 1650
>
>
>
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel