* [ptxdist] Using Crosstool-ng Toolchain with PTXDIST
@ 2011-09-16 13:53 Ryan Barnett
2011-09-17 17:57 ` Marc Kleine-Budde
0 siblings, 1 reply; 3+ messages in thread
From: Ryan Barnett @ 2011-09-16 13:53 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 1383 bytes --]
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)
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.
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?
Thanks,
-Ryan
Ryan Barnett
[-- Attachment #1.2: Type: text/html, Size: 1856 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Using Crosstool-ng Toolchain with PTXDIST
2011-09-16 13:53 [ptxdist] Using Crosstool-ng Toolchain with PTXDIST Ryan Barnett
@ 2011-09-17 17:57 ` Marc Kleine-Budde
2011-09-19 13:45 ` Ryan Barnett
0 siblings, 1 reply; 3+ messages in thread
From: Marc Kleine-Budde @ 2011-09-17 17:57 UTC (permalink / raw)
To: ptxdist; +Cc: Ryan Barnett
[-- Attachment #1.1: Type: text/plain, Size: 1956 bytes --]
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 |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Using Crosstool-ng Toolchain with PTXDIST
2011-09-17 17:57 ` Marc Kleine-Budde
@ 2011-09-19 13:45 ` Ryan Barnett
0 siblings, 0 replies; 3+ messages in thread
From: Ryan Barnett @ 2011-09-19 13:45 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 2483 bytes --]
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 <mkl@pengutronix.de>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 |
>
>
[-- Attachment #1.2: Type: text/html, Size: 3138 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-19 13:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-16 13:53 [ptxdist] Using Crosstool-ng Toolchain with PTXDIST Ryan Barnett
2011-09-17 17:57 ` Marc Kleine-Budde
2011-09-19 13:45 ` Ryan Barnett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox