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

tpkg-debarch should support "arm-linux-gnu" target (was Re: small quirks setting up a cross-compile toolchain)



Package: toolchain-source
Severity: grave
Tags: patch

toolchain-source as it stands is currently unusable for building ARM
cross-compiler targets. It appears that you must specify "arm-linux-gnu" to
several of the builds in order to get the install to work correctly.
However, this target is not supported by tpkg-debarch. The attached patch is
not a complete solution, but it at least makes it *possible* to build for
arm again (so long as you use the magic "arm-linux-gnu" incantation).

Nathanael Nerode <neroden@fastmail.fm> wrote:
> See, there's your problem.  Try:
> tpkg-make arm-linux-gnu
> TPKG_SERVER=ftp.yi.org tpkg-install-libc arm-linux-gnu
> 
> And you should end up with only arm-linux-gnu.
> 
> For obscure reasons (which I would like to get rid of), some parts of the 
> cross-tools structure care about exactly what form of the system name you 
> give to the tools, while others use the canonical name.
> 
> If you still end up with two different things.... come back and complain to 
> whoever's generating arm-linux.

Okay, so when I did that, I would get this message every so often:

"Hmph - dunno the arm-linux-gnu arch"

... and then eventually:

http://ftp.yi.org/debian/dists/testing/main/binary-none/Packages.gz
           => /tmp/tpkg-install-libc.CMosC11963/packageset.gz'
Resolving ftp.yi.org... 209.172.55.241
Connecting to ftp.yi.org|209.172.55.241|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:49:26 ERROR 404: Not Found.

binary-none, eh?

Sooooo I added "arm-linux-gnu" to tpkg-debarch, and that made it work!!!

--- /usr/bin/tpkg-debarch	2005-01-06 08:26:04.000000000 -0800
+++ /usr/bin/tpkg-debarch.new	2006-07-28 10:10:29.000000000 -0700
@@ -4,7 +4,7 @@
         alpha-linux)
           debarch=alpha ;;
 
-        arm-linux|arm)
+        arm-linux|arm-linux-gnu|arm)
           debarch=arm ;;
 
         hppa-linux|hppa)

Reply to: