cancel
Showing results for 
Search instead for 
Did you mean: 

Ubuntu 25.10 : Error building u-boot for stm32mp157f-dk2

embeddedbro
Associate III

I am trying to build u-boot for stm32mp157f-dk2 using 

git clone -b v2023.10-stm32mp-r1 https://github.com/STMicroelectronics/u-boot.git

 

I am getting below error:

 

  HOSTCC  scripts/dtc/dtc-parser.tab.o
  CC      lib/asm-offsets.s
  CC      arch/arm/lib/asm-offsets.s
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: BSD License
        License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
/usr/lib/python3/dist-packages/setuptools/dist.py:484: SetuptoolsDeprecationWarning: Cannot find any files for the given pattern.
!!

        ********************************************************************************
        Pattern 'GPL' did not match any files.

        By 2026-Mar-20, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.
        ********************************************************************************

!!
  for path in sorted(cls._find_pattern(pattern, enforce_match))
/usr/lib/python3/dist-packages/setuptools/dist.py:484: SetuptoolsDeprecationWarning: Cannot find any files for the given pattern.
!!

        ********************************************************************************
        Pattern 'BSD-2-Clause' did not match any files.

        By 2026-Mar-20, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.
        ********************************************************************************

!!
  for path in sorted(cls._find_pattern(pattern, enforce_match))
  LDS     u-boot.lds
  HOSTLD  scripts/dtc/dtc
scripts/dtc/pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’:
scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’; expected 3, have 2
 5581 |     resultobj = SWIG_Python_AppendOutput(resultobj, val);
scripts/dtc/pylibfdt/libfdt_wrap.c:1262:1: note: declared here
 1262 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/cc' failed with exit code 1
make[2]: *** [scripts/dtc/pylibfdt/Makefile:33: rebuild] Error 1
make[1]: *** [scripts/Makefile.build:397: scripts/dtc/pylibfdt] Error 2
make: *** [Makefile:2019: scripts_dtc] Error 2

 

0 REPLIES 0