Discussion:
abe - compiling cross aarch64 toolchain using local directory
Virendra Kumar Pathak
2015-08-19 15:32:48 UTC
Permalink
Hi Linaro Toolchain Group,

I am trying to compiling cross aarch64-linux-gnu toolchain using local
directory (tar file) for gcc.
I am using file:/// as mentioned in the https://wiki.linaro.org/ABE.

../abe/abe.sh --target aarch64-linux-gnu --build all --release
20150819 --tarbin
gcc=file:///home/vpathak/arm/toolchain/build/snapshots/gcc-2015.11-5.tar.bz2

But I get following error:
ERROR (#146): get_URL (not supported for .tar.* files.)
ERROR (#533): get_source
(file:///home/vpathak/arm/toolchain/build/snapshots/gcc-2015.11-5.tar.bz2
not a valid sources.conf identifier.)
TRACE(#190): checkout ()
ERROR (#193): checkout (No URL given!)
ERROR (#161): checkout_all (Failed checkout out of gcc.)

Am I missing something ? How can we use a local directory (e.g. gcc
source code) for building toolchain using abe ?

Please help.

Thanks.
--
with regards,
Virendra Kumar Pathak
Jim Wilson
2015-08-19 18:02:35 UTC
Permalink
On Wed, Aug 19, 2015 at 8:32 AM, Virendra Kumar Pathak
Post by Virendra Kumar Pathak
../abe/abe.sh --target aarch64-linux-gnu --build all --release
20150819 --tarbin
gcc=file:///home/vpathak/arm/toolchain/build/snapshots/gcc-2015.11-5.tar.bz2
ERROR (#146): get_URL (not supported for .tar.* files.)
Yes, that is documented as working, but doesn't actually work. I
believe that there is already a bug report for this at
bugs.linaro.org.

What you can do instead is just create your own local git repository,
and then point the gcc= option at your git tree. You should name your
git tree gcc.git otherwise you will have trouble with abe. If you
have your own local gcc.git tree, and you are using a shared local
snapshot tree, and you are doing builds with both the linaro gcc.git
and your local gcc.git, then you can run into problems, because you
can't have two different gcc.git trees in the shared local snapshot
tree. If you want two gcc.git trees, then you have to do it without
sharing of the local snapshot tree. Or alternatively, it is possible
to hack up abe so that a non gcc.git tree name can work.

Jim

Loading...