Ciao,
in order to advance the building I manually created the following link:
cd
staging_dir/toolchain-m68k_gcc4.3.1/lib/gcc/m68k-linux-uclibc/4.3.1/include
ln -s ../include-fixed/limits.h .
In your opinion... can it be a solution?
with this workaround the uClibc compilation advances untile this strange
error:
make[4]: Leaving directory
`/mnt/devel/openwrt/OpenWRT.git/build_dir/toolchain-m68k_gcc4.3.1/uClibc-0.9.29'
PATH=/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/ope
nwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/t32/bin/pc_linux:/opt/Arabella/bin
PATH=/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k
_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/host/bin:/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/host/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/t32/bin/pc_linux:/opt/Arabella/bin
make -C
/mnt/devel/openwrt/OpenWRT.git/build_dir/toolchain-m68k_gcc4.3.1/uClibc-0.9.29
AR=m68k-linux-uclibc-ar AS="m68k-linux-uclibc-gcc -c -Os -pipe -funit-at-a-time
-fhonour-copts" LD=m68k-linux-uclibc-ld NM=m68k-linux-uclibc-nm
CC="m68k-linux-uclibc-gcc" GCC="m68k-linux-uclibc-gcc"
CXX=m68k-linux-uclibc-g++ RANLIB=m68k-linux-uclibc-ranlib
STRIP=m68k-linux-uclibc-strip OBJCOPY=m68k-linux-uclibc-objcopy
OBJDUMP=m68k-linux-uclibc-objdump SIZE=m68k-linux-uclibc-size DEVEL_PREFIX=/
RUNTIME_PREFIX=/ HOSTCC="gcc" CPU_CFLAGS="-Os -pipe -funit-at-a-time
-fhonour-copts" PREF
IX=/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/
install_runtime install_dev
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
make[4]: *** [install_runtime] Error 127
make[4]: Leaving directory
`/mnt/devel/openwrt/OpenWRT.git/build_dir/toolchain-m68k_gcc4.3.1/uClibc-0.9.29'
make[3]: ***
[/mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1/stamp/.uclibc_installed]
Error 2
make[3]: Leaving directory `/mnt/devel/openwrt/OpenWRT.git/toolchain/uClibc'
make[2]: *** [toolchain/uClibc/compile] Error 2
make[2]: Leaving directory `/mnt/devel/openwrt/OpenWRT.git'
make[1]: ***
[/mnt/devel/openwrt/OpenWRT.git/staging_dir/m68k/stamp/.toolchain_install]
Error 2
make[1]: Leaving directory `/mnt/devel/openwrt/OpenWRT.git'
make: *** [world] Error 2
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
> > _______________________________________________
> > openwrt-devel mailing list
> > [email protected]
> > http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
--
______ 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