Python-dateutil failed to build

Hello,

I am having problems building the firmware file. It worked in the past, but when I repeat the same steps now (as far as I can tell, I am following exactly the same procedure), the build frequently fails.

I am using an Ubuntu virtual machine and running the commands listed on the OpenWrt documentation page:
https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem

First, I install the required dependencies:

sudo apt update
sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev \
python3-setuptools rsync swig unzip zlib1g-dev file wget

Then I run the following commands:

git clone https://git.openwrt.org/openwrt/openwrt.git
git pull
git checkout v22.03.3

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig
make -j $(nproc) kernel_menuconfig
make -j $(nproc) defconfig download clean world

This process has worked before and I was able to successfully build a .bin firmware file.

However, when I repeat the same steps now, the build fails most of the time with the following error:

ERROR: package/feeds/packages/python-dateutil failed to build.

Has anyone experienced this issue or knows what might cause it?

Thank you.

is 4 years old and EOL.

You need old Ubuntu (contemporary with old OpenWrt) to build ancient packages.

Thanks for your reply! I’m planning to upgrade to the latest version at some point, but since I have some config files included in the build and it seems they can’t just be reused with the newer OpenWrt version, I’ll postpone the upgrade for now until I have a bit more time to look into it.

Thanks for your reply. I am using ubuntu v24.04 - it workes with this version. If I build the firmware in a folder e.q. “Version1” it let me build it (I just done that). If I then want another build in folder “Version2” it fails with the error mentioned above.

That is a mistake on you.

Could you maybe explain this a bit more in detail? What am I doing wrong here? Thanks

Isn't the actual error, but the result of something that happened earlier.

Rerun and add -j1 V=sc switches.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.