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

Re: Problem about install cross compile tool on lenny



On Fri, 4 May 2007 11:01:03 +0800
"Kun Niu" <haoniukun@gmail.com> wrote:

> Dear all,
>
> I'm trying to install the cross compile tool on my Debian system.
> I used the command line:
> apt-cross -a arm -i binutils gcc-4.1

You need to cross-compile binutils and gcc-4.1, not simply install arm
versions.

i.e. you need an arm toolchain.

Have you installed emdebian-tools? The Emdebian Quick Start Guide shows
you how to setup your system with prebuilt toolchains to cross-compile
for arm.

http://wiki.debian.org/EmdebianQuickStart

Pre-built toolchains are available for i386, amd64 and powerpc but the
current problems with glibc in Debian may complicate installation of
any toolchain right now.

If you need a toolchain for a different build architecture,
emdebian-tools also includes emchain which will build a usable
toolchain for you.

apt-cross is NOT sufficient to build a toolchain - it is only intended
to make libraries and build tools (like pkg-config) available within a
cross-build.

> Maybe my gcc is too new. I got the following error:

The current gcc in Debian unstable IS too new - it has failed to build
on arm but the versions in Lenny (testing) should be OK when built
correctly.

> dpkg: dependency problems prevent configuration of libgcc1-arm-cross:
>  libgcc1-arm-cross depends on gcc-4.1-base (= 4.1.1-21); however:
>   Version of gcc-4.1-base on system is 4.1.2-5.

libgcc1-arm-cross should depend on gcc-4.1-arm-linux-gnu-base. If you
built this toolchain yourself, you missed the DEB_CROSS_INDEPENDENT=yes
environment setting.

>  gcc-4.1-arm-cross depends on gcc-4.1-base (= 4.1.1-21); however:

You should have gcc-4.1-arm-linux-gnu NOT arm-cross.

http://www.emdebian.org/toolchains/search.php?package=gcc-4.1-arm-linux-gnu&arch=i386&distro=unstable

http://www.emdebian.org/toolchains/search.php?package=gcc-4.1-arm-linux-gnu-base&distro=unstable&arch=i386

> Would anyone please help me out? Or would anyone please tell me how
> to test if my cross compile binutils is installed successfull.

It needs to be cross-compiled in order to be installed.

--

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpm1OBtnyjQf.pgp
Description: PGP signature


Reply to: