[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: crosscompiler for etch or hardy (was Re: nfblock vs udev)



On Fri, 29 Aug 2008, Petr Stehl�wrote:
> Petr Stehl�p� v P�9. 08. 2008 v 01:23 +0200:
> > I am going to debug and fix it in the kernel itself as soon as  I get a
> > (cross)compiler working.
> 
> can someone please help me with getting a cross compiler working on my
> machines? I have tried to follow the Stephen's GCC 4.1/2/3 cross
> compilers page but without success - he offers binary packages for sid
> i386 (it seems) while I have Etch amd64 or Hardy amd64. Then I tried
> Christian's crosstool HOWTO (updated 3 years ago) and it didn't work
> either - failed after long time of compilation.
>
> Don't you happen to have either an up-to-date HOWTO (similar to that
> crosstool script, but working) or binaries for 64bit Etch or Hardy?

Did you build on Hardy? I also had a few problems, but managed to work
around all of them.

Basically I used Roman's instructions
(http://www.xs4all.nl/~zippel/crosscc/crosscc.README)

To make it work on Ubuntu (on a 32-bit Athlon running Debian everything works
fine), I had to apply the patch below, and build with
`LD_LIBRARY_PATH=/usr/<arch>-linux-gnu/lib' to work around a linking
problem where it couldn't find the target arch's libraries.

--- gcc-4.1-4.1.1ds2/debian/rules.defs.orig	2008-07-23 15:45:03.000000000 -0400
+++ gcc-4.1-4.1.1ds2/debian/rules.defs	2008-07-23 15:46:12.000000000 -0400
@@ -137,9 +137,6 @@ endif
 
 # Don't include docs with GFDL invariant sections --------------------
 GFDL_INVARIANT_FREE := yes
-ifeq ($(distribution),Ubuntu)
-  GFDL_INVARIANT_FREE=no
-endif
 
 # --------------------
 # Configuration of components

I have the following packages for Ubuntu:

-rw-r--r-- 1 geert geert 3397628 2008-07-24 00:02 binutils-m68k-linux-gnu_2.17-3_amd64.deb
-rw-r--r-- 1 geert geert 1904066 2008-07-23 21:42 cpp-4.1-m68k-linux-gnu_4.1.1-21_amd64.deb
-rw-r--r-- 1 geert geert 2167340 2008-07-23 21:42 g++-4.1-m68k-linux-gnu_4.1.1-21_amd64.deb
-rw-r--r-- 1 geert geert  179286 2008-07-23 21:42 gcc-4.1-m68k-linux-gnu_4.1.1-21_amd64.deb
-rw-r--r-- 1 geert geert  199220 2008-07-23 21:42 gcc-4.1-m68k-linux-gnu-base_4.1.1-21_amd64.deb
-rw-r--r-- 1 geert geert  105712 2008-07-23 21:42 libgcc2-m68k-cross_4.1.1-21_all.deb
-rw-r--r-- 1 geert geert 4719600 2008-07-23 21:42 libstdc++6-4.1-dbg-m68k-cross_4.1.1-21_all.deb
-rw-r--r-- 1 geert geert 1058214 2008-07-23 21:42 libstdc++6-4.1-dev-m68k-cross_4.1.1-21_all.deb
-rw-r--r-- 1 geert geert  437112 2008-07-23 21:42 libstdc++6-4.1-pic-m68k-cross_4.1.1-21_all.deb
-rw-r--r-- 1 geert geert  379418 2008-07-23 21:42 libstdc++6-m68k-cross_4.1.1-21_all.deb

If you have a place where I can upload them, just tell me.

BTW, I also have mips and mipsel cross-compilers.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

Reply to: