As steeldriver suggested, device-tree-compiler (dtc) is below the minimum version that zephyr requires. I faced a similar issue with my build and fixed it as follows:-
- Get the latest stable version of device-tree-compiler (check that it says current-stable and not active development). Currently it is 1.4.7-1.
Unzip the package:-
tar xvf device-tree-compiler_1.4.7.orig.tar.xz
Install required dependencies:-
sudo apt-get install flex bison swig python-dev
Navigate to the project directory and build the project:-
cd dtc-1.4.7 && make
Replace the existing dtc with the latest installed. You can do this by updating your $PATH or moving the installed dtc to /usr/bin
Ensure that the default dtc is now the latest
cd ~/ && dtc --version
This should return Version: DTC 1.4.7. After that, rebuild your HelloWorld program and it should be good to go.
I hope this helps.