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

Re: Problem about install cross compile tool on lenny



Dear Williams,

Thank you for your reply.

It's true that I've got emdebian-tools installed.
In fact, it's the tool that helps me find the site.
I followed the procedure on the webpage.
But still I encountered some kind of error as follow:

shuang:~/.dpkg-cross# emsetup --verbose --simulate
Dry run only.
Need to install an emdebian toolchain to build 'arm' on 'i386'.
sudo apt-get install binutils-arm-linux-gnu gcc-4.1-arm-linux-gnu gcc-4.1-arm-linux-gnu-base gcc-4.1-arm-linux-gnu cpp-4.1-arm-linux-gnu g++-4.1-arm-linux-gnu libc6-arm-cross libc6-dev-arm-cross libstdc++6-arm-cross libstdc++6-4.1-dev-arm-cross libstdc++6-4.1-dbg-arm-cross libstdc++6-4.1-pic-arm-cross libgcc1-arm-cross linux-kernel-headers-arm-cross
shuang:~/.dpkg-cross# sudo apt-get install binutils-arm-linux-gnu gcc-4.1-arm-linux-gnu gcc-4.1-arm-linux-gnu-base gcc-4.1-arm-linux-gnu cpp-4.1-arm-linux-gnu g++-4.1-arm-linux-gnu libc6-arm-cross libc6-dev-arm-cross libstdc++6-arm-cross libstdc++6-4.1-dev-arm-cross libstdc++6-4.1-dbg-arm-cross libstdc++6-4.1-pic-arm-cross libgcc1-arm-cross linux-kernel-headers-arm-cross
Reading package lists... Done
Building dependency tree... Done
binutils-arm-linux-gnu is already the newest version.
gcc-4.1-arm-linux-gnu-base is already the newest version.
cpp-4.1-arm-linux-gnu is already the newest version.
libc6-arm-cross is already the newest version.
libstdc++6-arm-cross is already the newest version.
libgcc1-arm-cross is already the newest version.
linux-kernel-headers-arm-cross is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
gcc-4.1-arm-linux-gnu: Depends: libssp0 but it is not going to be installed
libc6-dev-arm-cross: Depends: libc6-arm-cross (= 2.3.6.ds1-8) but 2.5-4em1 is to be installed
E: Broken packages

And when I tried to install libspp0, I got this:
shuang:~/.dpkg-cross# apt-cross -a arm -i libssp0
Checking dependencies: /
3 packages to install.
dpkg-cross: package gcc-4.1-base doesn't provide any useful files. Skipping.
Building libc6-arm-cross_2.5-4_all.deb
Building libssp0-arm-cross_4.1.1-21_all.deb
dpkg - warning: downgrading libc6-arm-cross from 2.5-4em1 to 2.5-4.
Unpacking libc6-arm-cross
Unpacking libssp0-arm-cross
Setting up libc6-arm-cross (2.5-4) ...
dpkg: dependency problems prevent configuration of libssp0-arm-cross:
libssp0-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.
dpkg: error processing libssp0-arm-cross (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libssp0-arm-cross
dpkg -i failed.

And "apt-get install libssp0" gives this:

shuang:~/.dpkg-cross# apt-get install libssp0
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
libssp0: Depends: gcc-4.1-base (= 4.1.1-21) but 4.1.2-5 is to be installed
libssp0-arm-cross: Depends: gcc-4.1-base (= 4.1.1-21) but 4.1.2-5 is to be installed

Still the gcc unmet problem.:(

Thanks again for your excellent job.
Do I have to downgrade my gcc-4.1?

>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.

Reply to: