From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qy0-f172.google.com ([209.85.216.172]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1R5eAX-0000sU-21 for ptxdist@pengutronix.de; Mon, 19 Sep 2011 15:46:17 +0200 Received: by qyk32 with SMTP id 32so2808234qyk.10 for ; Mon, 19 Sep 2011 06:45:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4E74DF73.7000008@pengutronix.de> References: <4E74DF73.7000008@pengutronix.de> Date: Mon, 19 Sep 2011 08:45:50 -0500 Message-ID: From: Ryan Barnett Subject: Re: [ptxdist] Using Crosstool-ng Toolchain with PTXDIST Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0520507580==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0520507580== Content-Type: multipart/alternative; boundary=001636283fd09b177104ad4b8f1d --001636283fd09b177104ad4b8f1d Content-Type: text/plain; charset=ISO-8859-1 Updated GLIBC on the host machine to a version greater than 2.7 fixed that error with the toolchain. However, the issue still exists where ptxdist can't find the sysroot for the toolchain unless I manually modify the ptxd_make_00-init.sh. What is the reason for searching for the collect2 folder in order to determine the sysroot folder and isn't there a better way to look for the sysroot folder? On Sat, Sep 17, 2011 at 12:57 PM, Marc Kleine-Budde wrote: > On 09/16/2011 03:53 PM, Ryan Barnett wrote: > > Hi, > > > > I'm currently trying to use a toolchain that I have compiled with > > crosstool-ng with ptxdist-2011-07-0 however I have been having some > problems > > with ptxdist trying to recognize and use this toolchain. > > > > The first problem that I have had is with the following ptxdist script: > > script/lib/ptxd_make_00-init.sh. It gives me the following error: > > > > "ptxdist: error: failed to source lib: > > /opt/lib/ptxdist-2011.07.0/scripts//lib/ptxd_make_00-init.sh." > > > > I have tracked down where this error is coming from and it is on 65 of > the > > ptxd_make_00-init.sh because of the sed call that looks for the collect2 > > folder. There isn't a collect2 folder in the toolchain that was compiled. > So > > to overcome that error I have made a temporary work around by just > setting > > the sysroot folder manually. > > > > However, this has led to another problem, when trying to compile I get > the > > following error: > > > > arm-cortex_a8_linaro4.5-linux-gnueabi-ld: /lib/libc.so.6: version > > `GLIBC_2.7' not found (required by > arm-cortex_a8_linaro4.5-linux-gnueabi-ld) > > Update your distribution, you need atleast GLIBC_2.7 to run the > toolchain. Is that toolchain compiled on that host? > > > It seems that ptxdist or something is trying to use the host machine's > GLIBC > > instead of the cross compiler's sysroot even though I have manually > > specified it. > > Nope - It's about executing the toolchain's linker. > > > Could somebody please point me to how I can compile a toolchain with > > crosstool-ng that can be used with ptxdist? Or point me in the right > > direction in how I can fix these errors? > > cheers, Marc > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > > --001636283fd09b177104ad4b8f1d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Updated GLIBC on the host machine to a version greater than 2.7 fixed that = error with the toolchain. However, the issue still exists where=A0ptxdist= =A0can't find the sysroot for the toolchain unless I manually modify th= e ptxd_make_00-init.sh. What is the reason for searching for the collect2 f= older in order to determine the sysroot folder=A0and isn't there a bett= er way to look for the sysroot folder?

On Sat, Sep 17, 2011 at 12:57 PM, Marc Kleine-Bu= dde <mkl@pengutr= onix.de> wrote:
On 09/16/2011 03:53 PM, Ryan Barnett wrote:
> Hi,>
> I'm currently trying to use a toolchain that I have comp= iled with
> crosstool-ng with ptxdist-2011-07-0 however I have been h= aving some problems
> with ptxdist trying to recognize and use this toolchain.
>
&g= t; The first problem that I have had is with the following ptxdist script:<= br>> script/lib/ptxd_make_00-init.sh. It gives me the following error: >
> "ptxdist: error: failed to source lib:
> /opt/lib/p= txdist-2011.07.0/scripts//lib/ptxd_make_00-init.sh."
>
> I= have tracked down where this error is coming from and it is on 65 of the > ptxd_make_00-init.sh because of the sed call that looks for the collec= t2
> folder. There isn't a collect2 folder in the toolchain that = was compiled. So
> to overcome that error I have made a temporary wor= k around by just setting
> the sysroot folder manually.
>
> However, this has led to = another problem, when trying to compile I get the
> following error:<= br>>
> arm-cortex_a8_linaro4.5-linux-gnueabi-ld: /lib/libc.so.6: v= ersion
> `GLIBC_2.7' not found (required by arm-cortex_a8_linaro4.5-linux-g= nueabi-ld)

Update your distribution, you need atleast GLIBC_2.= 7 to run the
toolchain. Is that toolchain compiled on that host?

> It seems that ptxdist or something is trying to = use the host machine's GLIBC
> instead of the cross compiler'= s sysroot even though I have manually
> specified it.

Nope - It's about executing the toolchain's linker.

> Could somebody please point me to how I can comp= ile a toolchain with
> crosstool-ng that can be used with ptxdist? Or= point me in the right
> direction in how I can fix these errors?

cheers, Marc

--
Pengutronix e.K= . =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Marc Kleine-Budde =A0 =A0 =A0 =A0 = =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0| Phone: +49-231-2826-924 =A0 =A0 |<= br> Vertretung West/Dortmund =A0 =A0 =A0 =A0 =A0| Fax: =A0 +49-5121-206917-5555= |
Amtsgericht Hildesheim, HRA 2686 =A0| http://www.pengutronix.de =A0 |


--001636283fd09b177104ad4b8f1d-- --===============0520507580== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0520507580==--