Re: Cross compilation
On Thursday 17 April 2003 15:37, Frank Van Damme wrote:
> Yo,
>
> does anyone have a working build of a x86 to sparc32 cross compiler? I
> tried to build one but I get buried alive in errors.
Ok, so Debian has a tool to build cross compilers: see
http://people.debian.org/~debacle/cross.html . I don't know if anyone tried
it but wrong it goes (when installing libc):
dionysos:/usr/src# tpkg-install-libc sparc-linux
libc6-dev_2.2.5-11.2_i386.deb libc6_2.2.5-11.2_i386.deb
libc6_2.3.1-14_i386.deb
libc6-dev_2.3.1-16_i386.deb libc6_2.2.5-6_i386.deb
libc6_2.3.1-16_i386.deb
dionysos:/usr/src# dpkg -i /var/cache/apt/archives/libc
dionysos:/usr/src# tpkg-install-libc sparc-linux
--16:42:45--
ftp://ftp.uk.debian.org/debian/dists/testing/main/binary-sparc/Packages.gz
=> `/tmp/packageset.gz'
Resolving ftp.uk.debian.org... done.
Connecting to ftp.uk.debian.org[81.91.108.243]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /debian/dists/testing/main/binary-sparc ...
done.
==> PORT ... done. ==> RETR Packages.gz ... done.
Length: 2,102,830 (unauthoritative)
100%[=======================================================>] 2,102,830
215.10K/s ETA 00:00
16:42:55 (215.10 KB/s) - `/tmp/packageset.gz' saved [2102830]
--16:43:00--
ftp://ftp.uk.debian.org/debian/pool/main/g/glibc/libc6_2.3.1-16_sparc.deb
=> `/tmp/libc6_2.3.1-16_sparc.deb'
Resolving ftp.uk.debian.org... done.
Connecting to ftp.uk.debian.org[81.91.108.243]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /debian/pool/main/g/glibc ... done.
==> PORT ... done. ==> RETR libc6_2.3.1-16_sparc.deb ... done.
Length: 3,758,836 (unauthoritative)
100%[=======================================================>] 3,758,836
214.27K/s ETA 00:00
16:43:17 (214.27 KB/s) - `/tmp/libc6_2.3.1-16_sparc.deb' saved [3758836]
Building libc6-sparc-cross_2.3.1-16_all.deb
Unpacking libc6-sparc-cross
dpkg: dependency problems prevent configuration of libc6-sparc-cross:
libc6-sparc-cross depends on libdb1-compat-sparc-cross; however:
Package libdb1-compat-sparc-cross is not installed.
dpkg: error processing libc6-sparc-cross (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc6-sparc-cross
dpkg -i failed.
-->> trouble but worth the time: my pc compiles about 55 times faster then my
sparc.
--
Frank Van Damme | "Saying 8MB of RAM doesn't do as much anymore is
http://www. | like saying a gallon of water holds more than it
openstandaarden.be | did in 1988." --George Adkins
Reply to: