Broken powerpc compilation since commit 141659187667 ("pylibfdt: Fix disable version normalization")

Pali Rohár pali at
Sat Jan 7 22:23:06 CET 2023

Hello! Now I was going to test urgent release workaround/fix for this
but I figured out that I cannot compile u-boot from master branch for
powerpc platform. make throws following error:

      HOSTLD  scripts/dtc/dtc
    Traceback (most recent call last):
      File "scripts/dtc/pylibfdt/", line 23, in <module>
        from setuptools import setup, Extension, sic
    ImportError: cannot import name 'sic' from 'setuptools' (/usr/lib/python3/dist-packages/setuptools/
    make[2]: *** [scripts/dtc/pylibfdt/Makefile:33: rebuild] Error 1
    make[1]: *** [scripts/ scripts/dtc/pylibfdt] Error 2
    make: *** [Makefile:2031: scripts_dtc] Error 2

git bisect showed me that problematic commit is one from yesterday:

141659187667 ("pylibfdt: Fix disable version normalization")

Reverting it on top of master branch compiled u-boot for powerpc without

It looks like a bit complicated issue as that commit is fixing another
commit from two weeks before:

440098c42e73 ("pylibfdt: Fix version normalization warning")

Tom, do you have an idea how to handle this?

More information about the U-Boot mailing list