From: Denys Dmytriyenko <denis@denix.org>
To: Aniket Limaye <a-limaye@ti.com>
Cc: meta-arago@lists.yoctoproject.org,
Denys Dmytriyenko <denys@konsulko.com>
Subject: Re: [EXTERNAL] [meta-arago] [kirkstone][PATCH 5/6] meta-arago: remove extra plumbing for internal toolchain
Date: Mon, 14 Aug 2023 15:25:28 -0400 [thread overview]
Message-ID: <20230814192528.GH3359@denix.org> (raw)
In-Reply-To: <dfefcf02-11bd-75bb-4400-33e7e30463bf@ti.com>
On Fri, Aug 11, 2023 at 05:00:30PM +0530, Aniket Limaye wrote:
> Hi Denys,
>
> This is probably not about this new patch series for the r5f
> toolchain. I am facing issues with the internal toolchain for A72
>
> I was trying out u-boot and linux builds with these new internal
> toolchains and everything works fine EXCEPT for u-boot-a72 build:
>
> I get this error : "aarch64-oe-linux-ld.bfd: cannot find -lgcc: No
> such file or directory"
>
> I narrowed down the error to incorrect Ldir being parsed in the
> u-boot Makefile here [1] which expects absolute path for the
> print-libgcc-file-name.
>
> The build with the external toolchain works coz that prints the
> absolute path while the yocto internal toolchain is returning just
> the filename: ./bin/aarch64-none-linux-gnu-gcc
> -print-libgcc-file-name #Prints full path to libgcc.a file
>
> ./linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc
> -print-libgcc-file-name #Prints just "libgcc.a". The dirname for
> this returns "."
>
> [1]: https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/Makefile?h=ti-u-boot-2023.04#n895
>
> As it stands, I am unable to build u-boot with the internal
> toolchain. Either something needs to be fixed in the toolchain
> itself or I am missing some flag / Env variable?
Aniket,
You need to pass the correct --sysroot to gcc.
And the environment-setup-aarch64-oe-linux script properly sets CC variable
already with the correct --sysroot of the installed linux-devkit:
$ echo $CC
aarch64-oe-linux-gcc -mbranch-protection=standard --sysroot=/tmp/sdk/sysroots/aarch64-oe-linux
$ $CC -print-libgcc-file-name
/tmp/sdk/sysroots/aarch64-oe-linux/usr/lib/aarch64-oe-linux/11.4.0/libgcc.a
You can pass this to the U-boot Makefile:
$ make CC="$CC" <any other vars> <target>
As a reference, u-boot recipe passes at least CROSS_COMPILE, CC and HOSTCC.
--
Denys
next prev parent reply other threads:[~2023-08-14 19:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-06 21:23 [kirkstone][PATCH 0/6] Rework secondary toolchain for K3R5 Denys Dmytriyenko
2023-07-06 21:23 ` [kirkstone][PATCH 1/6] recipe-data: deprecate Denys Dmytriyenko
2023-07-10 12:11 ` [EXTERNAL] [meta-arago] " Aniket Limaye
2023-07-11 17:21 ` Denys Dmytriyenko
2023-07-06 21:23 ` [kirkstone][PATCH 2/6] tisdk-core-bundle: simplify toolchain/SDK selection Denys Dmytriyenko
2023-07-06 21:23 ` [kirkstone][PATCH 3/6] meta-arago-distro: remove old secondary toolchain support Denys Dmytriyenko
2023-07-06 21:23 ` [kirkstone][PATCH 4/6] meta-arago: remove external " Denys Dmytriyenko
2023-07-06 21:23 ` [kirkstone][PATCH 5/6] meta-arago: remove extra plumbing for internal toolchain Denys Dmytriyenko
2023-08-11 11:30 ` [EXTERNAL] [meta-arago] " Aniket Limaye
2023-08-14 19:25 ` Denys Dmytriyenko [this message]
2023-08-17 10:47 ` Aniket Limaye
2023-07-06 21:23 ` [kirkstone][PATCH 6/6] tisdk-bundle: package up secondary K3R5 toolchain Denys Dmytriyenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230814192528.GH3359@denix.org \
--to=denis@denix.org \
--cc=a-limaye@ti.com \
--cc=denys@konsulko.com \
--cc=meta-arago@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.