Skip to contentSkip to conversation

doc: update cross build tool links and fix compiling issue

PATCH Superseded Joyce Kong 3 participants 7 messages Oct 12, 2019 – Nov 28, 2019

lore
Share & tools
lore

Joyce Kong

author
#0 lore raw

PATCH 1/1 doc: update cross build tool links and fix compiling issue

Update cross build tool links as newer cross build tools version are provided on Linaro.
And remove the command 'git checkout' which results in compiling error when cross building.

Fixes 01add9da25cd ("doc: add cross compiling guide")
---
 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +7 -8
index 28a8e09..09f1ab0 100644
@@ -16,19 +16,19 @@ Obtain the cross tool chain
 The latest cross compile tool chain can be downloaded from:
 https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads.
 
-Following is the step to get the version 8.2, latest one at the time of this writing.
+Following is the step to get the version 8.3, latest one at the time of this writing.
 
 .. code-block:: console
 
-   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2019.01/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
+   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
 
 Unzip and add into the PATH
 ---------------------------
 
 .. code-block:: console
 
-   tar -xvf gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
-   export PATH=$PATH:<cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin
+   tar -xvf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
+   export PATH=$PATH:<cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin
 
 .. note::
 
@@ -50,7 +50,6 @@ NUMA is required by most modern machines, not needed for non-NUMA architectures.
 
    git clone https://github.com/numactl/numactl.git
    cd numactl
-   git checkout v2.0.11 -b v2.0.11
    ./autogen.sh
    autoconf -i
    ./configure --host=aarch64-linux-gnu CC=aarch64-linux-gnu-gcc --prefix=<numa install dir>
@@ -71,9 +70,9 @@ Copy the NUMA header files and lib to the cross compiler's directories:
 
 .. code-block:: console
 
-   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/
-   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
-   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
+   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/
+   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.3/
+   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.3/
 
 .. _configure_and_cross_compile_dpdk_build:
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 19 lines · Joyce Kong

Update cross build tool links as newer cross build tools version are provided on Linaro.
And remove the command 'git checkout' which results in compiling error when cross building.

Fixes 01add9da25cd ("doc: add cross compiling guide")
---
 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +0 -0
index 28a8e09..09f1ab0 100644

doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst Obtain the cross tool chain · line 23

Quoted 10 lines
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +2 -2
@@ -16,19 +16,19 @@ Obtain the cross tool chain
 The latest cross compile tool chain can be downloaded from:
 https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads.
 
-Following is the step to get the version 8.2, latest one at the time of this writing.
+Following is the step to get the version 8.3, latest one at the time of this writing.
 
 .. code-block:: console
 
-   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2019.01/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
+   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz

Could you use the URL with "latest" as softlink so that we don't need to update this page as when a new
toolchain released?

Since it owned by ARM, if the soft link scheme does not exist on the "https://developer.arm.com/-/media/Files/downloads", I hope it can be added. It will be a good addition. Thoughts?

#2 lore raw

Hi Jerin,

Quoted 48 lines

-----Original Message-----
From: Jerin Jacob <[email protected]>
Sent: Saturday, October 12, 2019 9:04 PM
To: Joyce Kong (Arm Technology China) <[email protected]>
Cc: dpdk-dev <[email protected]>; nd <[email protected]>; [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; Gavin Hu (Arm Technology China) <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v1] doc: update cross build tool links and fix compiling issue

Quoted 24 lines · Joyce Kong

Update cross build tool links as newer cross build tools version are provided on Linaro.
And remove the command 'git checkout' which results in compiling error when cross building.

Fixes 01add9da25cd ("doc: add cross compiling guide")
---
 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 15
+++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +0 -0
index 28a8e09..09f1ab0 100644
@@ -16,19 +16,19 @@ Obtain the cross tool chain  The latest cross

compile tool chain can be downloaded from:
https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads.

Quoted 1 line

-Following is the step to get the version 8.2, latest one at the time of this

writing.

Quoted 1 line

+Following is the step to get the version 8.3, latest one at the time of this

writing.

Quoted 4 lines

.. code-block:: console

- wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-

2019.01/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz

Quoted 2 lines

+ wget
+ https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-

2019.03/

Quoted 8 lines
Quoted 1 line

+ binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz

Could you use the URL with "latest" as softlink so that we don't need to update this page as when a new toolchain released?

Since it owned by ARM, if the soft link scheme does not exist on the "https://developer.arm.com/-/media/Files/downloads", I hope it can be added. It will be a good addition. Thoughts?

As the latest soft link doesn't exist, I changed the cross building example from 8.3 to a common description like gcc-arm-<version>-x86_64-aarch64-linux-gnu.

author
#3 lore raw

PATCH v2 1/1 doc: update cross build tool version desc and fix compiling issue

In reply to Joyce Kong

Update the cross build tool version to common description. And remove the command 'git checkout' when cross builing which results in compiling error.

Fixes 01add9da25cd ("doc: add cross compiling guide")
---
 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +7 -8
index 28a8e09..fa7df1c 100644
@@ -16,19 +16,19 @@ Obtain the cross tool chain
 The latest cross compile tool chain can be downloaded from:
 https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads.
 
-Following is the step to get the version 8.2, latest one at the time of this writing.
+Following is the example to get the version 8.3, latest one at the time of this writing.
 
 .. code-block:: console
 
-   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2019.01/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
+   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
 
 Unzip and add into the PATH
 ---------------------------
 
 .. code-block:: console
 
-   tar -xvf gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
-   export PATH=$PATH:<cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin
+   tar -xvf gcc-arm-<version>-x86_64-aarch64-linux-gnu.tar.xz
+   export PATH=$PATH:<cross_install_dir>/gcc-arm-<version>-x86_64-aarch64-linux-gnu/bin
 
 .. note::
 
@@ -50,7 +50,6 @@ NUMA is required by most modern machines, not needed for non-NUMA architectures.
 
    git clone https://github.com/numactl/numactl.git
    cd numactl
-   git checkout v2.0.11 -b v2.0.11
    ./autogen.sh
    autoconf -i
    ./configure --host=aarch64-linux-gnu CC=aarch64-linux-gnu-gcc --prefix=<numa install dir>
@@ -71,9 +70,9 @@ Copy the NUMA header files and lib to the cross compiler's directories:
 
 .. code-block:: console
 
-   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/
-   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
-   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
+   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-<version>-x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/
+   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-<version>-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/<version>/
+   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-<version>-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/<version>/
 
 .. _configure_and_cross_compile_dpdk_build:
 
Signature · 1 line
2.7.4
author
#4 lore raw

PATCH v3 1/1 doc: update cross build tool version

In reply to Joyce Kong

Update the cross build tool version to gcc8.3.

Fixes 01add9da25cd ("doc: add cross compiling guide")

---

v3:
1. Remove the fix for numactl issue, Ali Alnubani has a similar fix http://patches.dpdk.org/patch/63355/.
2. Some minor changes in description.

 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +9 -7
index e799b0b..d8b9dea 100644
@@ -16,19 +16,21 @@ Obtain the cross tool chain
 The latest cross compile tool chain can be downloaded from:
 https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads.
 
-Following is the step to get the version 8.2, latest one at the time of this writing.
+It is always recommended to check and get the latest compiler tool from the page and use
+it to generate better code. As of this writing 8.3-2019.03 is the newest, the following
+description is an example of this version.
 
 .. code-block:: console
 
-   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2019.01/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
+   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
 
 Unzip and add into the PATH
 ---------------------------
 
 .. code-block:: console
 
-   tar -xvf gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
-   export PATH=$PATH:<cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin
+   tar -xvf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
+   export PATH=$PATH:<cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin
 
 .. note::
 
@@ -71,9 +73,9 @@ Copy the NUMA header files and lib to the cross compiler's directories:
 
 .. code-block:: console
 
-   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/
-   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
-   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
+   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/include/
+   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.3.0/
+   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.3.0/
 
 .. _configure_and_cross_compile_dpdk_build:
 
Signature · 1 line
2.7.4
Acked-by on v3 1/1
#5 lore raw

Re: [dpdk-dev] [PATCH v3] doc: update cross build tool version

Quoted 8 lines · Joyce Kong

Update the cross build tool version to gcc8.3.

Fixes 01add9da25cd ("doc: add cross compiling guide")

With the following suggested tile change:
doc: update arm64 cross build tool version

Quoted 55 lines

---

v3:
1. Remove the fix for numactl issue, Ali Alnubani has a similar fix http://patches.dpdk.org/patch/63355/.
2. Some minor changes in description.

 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst +9 -8
index e799b0b..d8b9dea 100644
@@ -16,19 +16,21 @@ Obtain the cross tool chain
 The latest cross compile tool chain can be downloaded from:
 https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads.
 
-Following is the step to get the version 8.2, latest one at the time of this writing.
+It is always recommended to check and get the latest compiler tool from the page and use
+it to generate better code. As of this writing 8.3-2019.03 is the newest, the following
+description is an example of this version.
 
 .. code-block:: console
 
-   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2019.01/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
+   wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
 
 Unzip and add into the PATH
 ---------------------------
 
 .. code-block:: console
 
-   tar -xvf gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu.tar.xz
-   export PATH=$PATH:<cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin
+   tar -xvf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
+   export PATH=$PATH:<cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin
 
 .. note::
 
@@ -71,9 +73,9 @@ Copy the NUMA header files and lib to the cross compiler's directories:
 
 .. code-block:: console
 
-   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/
-   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
-   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-8.2-2019.01-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.2/
+   cp <numa_install_dir>/include/numa*.h <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/include/
+   cp <numa_install_dir>/lib/libnuma.a <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.3.0/
+   cp <numa_install_dir>/lib/libnuma.so <cross_install_dir>/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/8.3.0/
 
 .. _configure_and_cross_compile_dpdk_build:
 
--

2.7.4

#6 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH v3] doc: update cross build tool version

28/11/2019 12:04, Jerin Jacob:

Quoted 7 lines · Joyce Kong
Quoted 6 lines

Update the cross build tool version to gcc8.3.

Fixes 01add9da25cd ("doc: add cross compiling guide")
Quoted 7 lines
Quoted 2 lines

With the following suggested tile change:
doc: update arm64 cross build tool version

Applied, thanks