[llvmlinux] vexpress64 make target problem

Peter Teoh htmldeveloper at gmail.com
Thu Oct 1 14:00:26 UTC 2015


On Wed, Sep 30, 2015 at 4:44 AM, Vinicius Tinti <viniciustinti at gmail.com>
wrote:

> On Mon, Sep 28, 2015 at 8:26 AM, Peter Teoh <htmldeveloper at gmail.com>
> wrote:
> > On Mon, Sep 28, 2015 at 7:05 PM, Vinicius Tinti <viniciustinti at gmail.com>
> wrote:
> >> On Mon, Sep 28, 2015 at 8:02 AM, Peter Teoh <htmldeveloper at gmail.com>
> wrote:
> >>> When I did a make target for vexpress64, the following errors is
> encountered:
> >>>
> >>> make V=1 2>&1 | tee -a logfile
> >>>
> >>> --2015-09-28 18:46:33--
> >>>
> http://releases.linaro.org/latest/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.9-2014.08_linux.tar.xz
> >>> Resolving releases.linaro.org (releases.linaro.org)... 54.225.141.114
> >>> Connecting to releases.linaro.org
> >>> (releases.linaro.org)|54.225.141.114|:80... connected.
> >>> HTTP request sent, awaiting response... 404 NOT FOUND
> >>> 2015-09-28 18:46:34 ERROR 404: NOT FOUND.
> >>>
> >>> But in actual fact, the same file is available through a slightly
> modified URL:
> >>>
> >>>
> http://releases.linaro.org/latest/components/toolchain/binaries/4.8/aarch64-linux-gnu/
> >>>
> >>> How do I go about resolving the errors?
> >>
> >> Hi,
> >>
> >> Sometimes Linaro changes their links. Please edit the file at
> >> arch/aarch64/toolchain/linaro/linaro.mk
> >>
> >> *
> http://git.linuxfoundation.org/?p=llvmlinux.git;a=blob;f=arch/aarch64/toolchain/linaro/linaro.mk;h=1370ddde0b32cec7a5b7beba86c91ad8d2369545;hb=HEAD
> >>
> >
> > Thank Vinicius, here goes the patch:
> >
> > diff --git a/arch/aarch64/toolchain/linaro/linaro.mk
> > b/arch/aarch64/toolchain/linaro/linaro.mk
> > index 1370ddd..9f64128 100644
> > --- a/arch/aarch64/toolchain/linaro/linaro.mk
> > +++ b/arch/aarch64/toolchain/linaro/linaro.mk
> > @@ -27,9 +27,11 @@
> >  #
> https://launchpad.net/linaro-toolchain-binaries/trunk/2013.09/+download/gcc-linaro-aarch64-linux-gnu-4.8-2013.09_linux.tar.bz2
> >  #
> https://launchpad.net/linaro-toolchain-binaries/trunk/2013.10/+download/gcc-linaro-aarch64-linux-gnu-4.8-2013.10_linux.tar.xz
> >  #
> http://releases.linaro.org/latest/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.9-2014.08_linux.tar.xz
> > -LINARO_VER_MONTH       = 2014.08
> > +
> > +#
> http://releases.linaro.org/latest/components/toolchain/binaries/4.8/aarch64-linux-gnu/gcc-linaro-4.8-2015.06-x86_64_aarch64-linux-gnu.tar.xz
> > +LINARO_VER_MONTH       = 2015.06
> >  LINARO_VERSION         = ${LINARO_VER_MONTH}
> > -LINARO_CC_NAME         =
> > gcc-linaro-aarch64-linux-gnu-4.9-${LINARO_VERSION}_linux
> > +LINARO_CC_NAME         =
> > gcc-linaro-4.8-${LINARO_VERSION}-x86_64_aarch64-linux-gnu
> >  HOST                   = aarch64-linux-gnu
> >
> >  DEBDEP                 += libstdc++6:i386
> > @@ -39,7 +41,7 @@ LINARO_DIR            =
> ${ARCH_AARCH64_TOOLCHAIN}/linaro
> >  ARCH_ARM_TOOLCHAIN_STATE = ${ARCH_AARCH64_TOOLCHAIN_STATE}
> >
> >  #LINARO_CC_URL         ?=
> >
> https://launchpad.net/linaro-toolchain-binaries/trunk/${LINARO_VER_MONTH}/+download/${LINARO_CC_NAME}.tar.xz
> <https://launchpad.net/linaro-toolchain-binaries/trunk/$%7BLINARO_VER_MONTH%7D/+download/$%7BLINARO_CC_NAME%7D.tar.xz>
> > -LINARO_CC_URL          ?=
> >
> http://releases.linaro.org/latest/components/toolchain/binaries/${LINARO_CC_NAME}.tar.xz
> > +LINARO_CC_URL          ?=
> >
> http://releases.linaro.org/latest/components/toolchain/binaries/4.8/aarch64-linux-gnu/${LINARO_CC_NAME}.tar.xz
> >  LINARO_TMPDIR          = $(call shared,${LINARO_DIR}/tmp)
> >  TMPDIRS                        += ${LINARO_TMPDIR}
> >
>
> Thanks for the patch Peter.
>
> I have not applied it because this file is quite old when compared to
> ARM's version. So instead of applying your patch I prefered to sync
> these files.
>

I am still learning....not sure of the meaning of "sync"....as in "make
sync-all" ie, effectively "git pull"?


>
> Moreover I have tested both 15.06 and 14.08. Both are broken for
> AArch64 (or AArch64 very likely to be broken). Hence I kept 14.08.
>
>
not sure what you meant by "tested both 15.06"...but after i applied the
patch, my vexpress64 compiled all the way to the end successfully, and i
can do a make test in fact:

( /sda7/llvmlinux/llvmlinux/test/qemu/install/bin/qemu-system-aarch64
-machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1 -m 2048
-kernel
/sda7/llvmlinux/llvmlinux/targets/vexpress64_good/build/kernel-clang/arch/arm64/boot/Image.gz
--append "rdinit=/sbin/init console=ttyAMA0" \
        | tee
/sda7/llvmlinux/llvmlinux/targets/vexpress64_good/tmp/qemu_log ) &
( sleep 60 && killall -s 9 qemu-system-aarch64 ) || exit 0
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.3.0-rc3m-00040-g097f70b-dirty
(tthtlc at mamapapa) (clang version 3.8.0 ) #1 SMP Mon Sep 28 19:29:14 SGT 2015
[    0.000000] CPU: AArch64 Processor [411fd070] revision 0
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] alternatives: enabling workaround for ARM erratum 832075
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Moving initrd from [4040000000-403fffffff] to
[bfff2000-bfff1fff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] PERCPU: Embedded 16 pages/cpu @ffffffc07ffd8000 s26624 r8192
d30720 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 516096
[    0.000000] Kernel command line: rdinit=/sbin/init console=ttyAMA0
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)

Thanks ahead for the explanation/guidance.


> Please let me know if I can help.
>
> Regards,
> Vinicius
>
> >
> > Regards,
> > Peter Teoh
>
>
>
> --
> Simplicity is the ultimate sophistication
>



-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20151001/c66aa1e8/attachment.html>


More information about the LLVMLinux mailing list