From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1REj9X-0000Gw-3e for garchives@archives.gentoo.org; Fri, 14 Oct 2011 14:54:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72AF921C054; Fri, 14 Oct 2011 14:54:18 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B9DC21C020 for ; Fri, 14 Oct 2011 14:53:27 +0000 (UTC) Received: by vws19 with SMTP id 19so1708753vws.40 for ; Fri, 14 Oct 2011 07:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kTEndRPB2+3o+5egXq01K9f9uCveZkGxxlbzLdXG1Fw=; b=wWGoXdoCbslTgC0m5pa7VZYTKcRY/uAMuF9vvAMM1Ma7deqjsNYbxwkayxfM3gLvte Pv7E+5vcyiTXHss/hQKOuhlB7359mUjUydlh7WLohkbmsIHYsgZnYa0VMpjFUx4ftpai Y98NXoHzD6bkse/CKMXotmF+DcFxb6VCO2ZPU= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.52.37.10 with SMTP id u10mr8998111vdj.57.1318604007661; Fri, 14 Oct 2011 07:53:27 -0700 (PDT) Received: by 10.52.188.37 with HTTP; Fri, 14 Oct 2011 07:53:27 -0700 (PDT) In-Reply-To: <20111014160437.2371802c@toxic.dbnet> References: <20111014160437.2371802c@toxic.dbnet> Date: Fri, 14 Oct 2011 16:53:27 +0200 Message-ID: Subject: Re: [gentoo-user] How to cross compile Perl for ARM? From: czernitko To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=20cf307cfd4079e06c04af436bcc X-Archives-Salt: X-Archives-Hash: ea0d702d207586ce5bd55e29a648c9ff --20cf307cfd4079e06c04af436bcc Content-Type: text/plain; charset=ISO-8859-1 Hello Jonas! there is probably a better way to do this, but it should be possible to > make a local overlay and modify the ebuild's src_compile to do emake in > the Cross directory. > > http://devmanual.gentoo.org/ebuild-writing/index.html > > So far this seems to me to be the most reasonable way. I would like to stick to the gentoo way of doing cross compilation, even if it encounters some minor hacks. I'll try it, thanks for pointing me there. > are you documenting your progress somewhere? Nope, but for quite a while I'm considering to put up some blog (or something on google sites)... > can you please point me to > the documents that helped you put together the cross compilation > toolchain? > In fact only embedded gentoo documentationand trial and error method. I succeeded with crossdev --b 2.21.1 --g 4.5.3 --l 2.11.3 --k 2.6.36 -t arm-none-linux-gnueabi which compiled succesfully and created toolchain that can create binaries compatible with my Netgear Stora. So far I haven't tried emerged packages as I am not sure if they will run unless built statically, but sample C program compiled with cross compiler runs ok. > that actually sounds like it successfully cross-compiled try.c, but > *of course* it does not run on your host platform! that check is > probably omitted in Cross/Makefile which might why they are telling you > to run that one. > I agree, I hope I can make some workaround in a short time for that. Using my own overlay seems to be the most appropriate way, I'll write back as soon as I have working ebuild limited to arm architecture... Peter --20cf307cfd4079e06c04af436bcc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Jonas!


there is probably a better way to do this, but it should be possibl= e to
make a local overlay and modify the ebuild's src_compile to do emake in=
the Cross directory.

http://devmanual.gentoo.org/ebuild-writing/index.html


So far this seems to me t= o be the most reasonable way. I would like to stick to the gentoo way of do= ing cross compilation, even if it encounters some minor hacks. I'll try= it, thanks for pointing me there.
=A0
are you documenting your progress somewhere?

No= pe, but for quite a while I'm considering to put up some blog (or somet= hing on google sites)...
=A0
can you please point me to
the documents that helped you put together the cross compilation
toolchain?

In fact only embedded gentoo documentation and trial = and error method. I succeeded with

crossdev --b 2.21.1 --g 4.5.3 --l= 2.11.3 --k 2.6.36 -t arm-none-linux-gnueabi

which compiled succesfully and created toolchain that can create binari= es compatible with my Netgear Stora. So far I haven't tried emerged pac= kages as I am not sure if they will run unless built statically, but sample= C program compiled with cross compiler runs ok.
=A0
that actually sounds like it successfully cross-compiled try.c, but
*of course* it does not run on your host platform! that check is
probably omitted in Cross/Makefile which might why they are telling you
to run that one.

I agree, I hope I can make some w= orkaround in a short time for that. Using my own overlay seems to be the mo= st appropriate way, I'll write back as soon as I have working ebuild li= mited to arm architecture...

Peter

--20cf307cfd4079e06c04af436bcc--