diff mbox series

[RFC,1/1] doc/build/gcc.rst: required packages for Suse

Message ID 20200920100948.77092-1-xypron.glpk@gmx.de
State New
Delegated to: Tom Rini
Headers show
Series [RFC,1/1] doc/build/gcc.rst: required packages for Suse | expand

Commit Message

Heinrich Schuchardt Sept. 20, 2020, 10:09 a.m. UTC
Describe the packages required to build U-Boot on Suse.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
Hello Matthias,

I would like to add a sub-chapter to our documentation describing what is
needed to build U-Boot on Suse. Cf.
https://u-boot.readthedocs.io/en/latest/build/gcc.html

Unfortunately I could not find all the packages that need to be installed
in the Suse Tumbleweed Docker image.

For 'make qemu_arm64_defconfig && make' I get an error

   aarch64-suse-linux-ld.bfd: cannot find -lgcc

For 'make tests' a lot more seems to be missing.

Do you have a list of required packages?

Best regards

Heinrich
---
 doc/build/gcc.rst | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

--
2.28.0

Comments

Matthias Brugger Sept. 22, 2020, 3:57 p.m. UTC | #1
Hi Heinrich,

On 20/09/2020 12:09, Heinrich Schuchardt wrote:
> Describe the packages required to build U-Boot on Suse.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> Hello Matthias,
> 
> I would like to add a sub-chapter to our documentation describing what is
> needed to build U-Boot on Suse. Cf.
> https://u-boot.readthedocs.io/en/latest/build/gcc.html
> 
> Unfortunately I could not find all the packages that need to be installed
> in the Suse Tumbleweed Docker image.
> 
> For 'make qemu_arm64_defconfig && make' I get an error
> 
>     aarch64-suse-linux-ld.bfd: cannot find -lgcc

If I remember correctly, that's a known problem in our cross toolchain (ouch!). 
I forwarded the info to our toolchain team, but didn't got any response up to now.

> 
> For 'make tests' a lot more seems to be missing.
> 
> Do you have a list of required packages?
> 

No I don't. I suppose I installed all packages once on my laptop, but I didn't 
kept track which one these are.

Regards,
Matthias

> Best regards
> 
> Heinrich
> ---
>   doc/build/gcc.rst | 20 ++++++++++++++++++++
>   1 file changed, 20 insertions(+)
> 
> diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst
> index fcb0b1ffb3..6250dc1880 100644
> --- a/doc/build/gcc.rst
> +++ b/doc/build/gcc.rst
> @@ -29,6 +29,26 @@ Depending on the build targets further packages maybe needed
>         lzma-alone openssl python3 python3-coverage python3-pyelftools \
>         python3-pytest python3-sphinxcontrib.apidoc python3-sphinx-rtd-theme swig
> 
> +Suse based
> +~~~~~~~~~~
> +
> +On Suse based systems the cross compiler packages are named
> +cross-<architecture>-gcc<version>.
> +
> +You could install GCC and the GCC 10 cross compiler for the ARMv8 architecture
> +with
> +
> +.. code-block:: bash
> +
> +    sudo zypper install gcc cross-aarch64-gcc10
> +
> +Depending on the build targets further packages maybe needed.
> +
> +.. code-block:: bash
> +
> +    zypper install bc bison flex gcc libopenssl-devel libSDL2-devel make \
> +      ncurses-devel python3-devel python3-pytest swig
> +
>   Prerequisites
>   -------------
> 
> --
> 2.28.0
>
Heinrich Schuchardt Sept. 22, 2020, 6:05 p.m. UTC | #2
On 9/22/20 5:57 PM, Matthias Brugger wrote:
> Hi Heinrich,
>
> On 20/09/2020 12:09, Heinrich Schuchardt wrote:
>> Describe the packages required to build U-Boot on Suse.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>> Hello Matthias,
>>
>> I would like to add a sub-chapter to our documentation describing what is
>> needed to build U-Boot on Suse. Cf.
>> https://u-boot.readthedocs.io/en/latest/build/gcc.html
>>
>> Unfortunately I could not find all the packages that need to be installed
>> in the Suse Tumbleweed Docker image.
>>
>> For 'make qemu_arm64_defconfig && make' I get an error
>>
>>     aarch64-suse-linux-ld.bfd: cannot find -lgcc
>
> If I remember correctly, that's a known problem in our cross toolchain
> (ouch!). I forwarded the info to our toolchain team, but didn't got any
> response up to now.

I have sent a patch to make compilation of examples/ customizable.

[PATCH 1/1] examples: make examples customizable
https://lists.denx.de/pipermail/u-boot/2020-September/427376.html

Best regards

Heinrich

>
>>
>> For 'make tests' a lot more seems to be missing.
>>
>> Do you have a list of required packages?
>>
>
> No I don't. I suppose I installed all packages once on my laptop, but I
> didn't kept track which one these are.
>
> Regards,
> Matthias
>
>> Best regards
>>
>> Heinrich
>> ---
>>   doc/build/gcc.rst | 20 ++++++++++++++++++++
>>   1 file changed, 20 insertions(+)
>>
>> diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst
>> index fcb0b1ffb3..6250dc1880 100644
>> --- a/doc/build/gcc.rst
>> +++ b/doc/build/gcc.rst
>> @@ -29,6 +29,26 @@ Depending on the build targets further packages
>> maybe needed
>>         lzma-alone openssl python3 python3-coverage python3-pyelftools \
>>         python3-pytest python3-sphinxcontrib.apidoc
>> python3-sphinx-rtd-theme swig
>>
>> +Suse based
>> +~~~~~~~~~~
>> +
>> +On Suse based systems the cross compiler packages are named
>> +cross-<architecture>-gcc<version>.
>> +
>> +You could install GCC and the GCC 10 cross compiler for the ARMv8
>> architecture
>> +with
>> +
>> +.. code-block:: bash
>> +
>> +    sudo zypper install gcc cross-aarch64-gcc10
>> +
>> +Depending on the build targets further packages maybe needed.
>> +
>> +.. code-block:: bash
>> +
>> +    zypper install bc bison flex gcc libopenssl-devel libSDL2-devel
>> make \
>> +      ncurses-devel python3-devel python3-pytest swig
>> +
>>   Prerequisites
>>   -------------
>>
>> --
>> 2.28.0
>>
diff mbox series

Patch

diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst
index fcb0b1ffb3..6250dc1880 100644
--- a/doc/build/gcc.rst
+++ b/doc/build/gcc.rst
@@ -29,6 +29,26 @@  Depending on the build targets further packages maybe needed
       lzma-alone openssl python3 python3-coverage python3-pyelftools \
       python3-pytest python3-sphinxcontrib.apidoc python3-sphinx-rtd-theme swig

+Suse based
+~~~~~~~~~~
+
+On Suse based systems the cross compiler packages are named
+cross-<architecture>-gcc<version>.
+
+You could install GCC and the GCC 10 cross compiler for the ARMv8 architecture
+with
+
+.. code-block:: bash
+
+    sudo zypper install gcc cross-aarch64-gcc10
+
+Depending on the build targets further packages maybe needed.
+
+.. code-block:: bash
+
+    zypper install bc bison flex gcc libopenssl-devel libSDL2-devel make \
+      ncurses-devel python3-devel python3-pytest swig
+
 Prerequisites
 -------------