raspberrypi/utils

fails to compile recently

Closed this issue · 1 comments

This was working last week ~4 april. Today 09-april, it fails for unfound header file

utils-master/dtmerge/dtoverlay.c:32:10: fatal error: libfdt.h: No such file or directory

Sorry about the formatting below, its not coming in nicely for some reason

    echo "--------------------------------------------------------------"
    echo " Fixing DTOVERLAY Linking                 "
    echo "--------------------------------------------------------------"
    #####################################################################
    wget https://github.com/raspberrypi/utils/archive/refs/heads/master.zip
    unzip master.zip;
    cd utils-master;
    cmake .;
    make;
    make install;
    cd ..;
    rm -rf utils-master;
    rm master.zip
    echo "Completed"

Here is the output I am getting today

root@ORP30xDev:/home/ORP/scripts# echo "--------------------------------------------------------------"
echo " Fixing DTOVERLAY Linking "
echo "--------------------------------------------------------------"
#####################################################################
wget https://github.com/raspberrypi/utils/archive/refs/heads/master.zip
unzip master.zip;
cd utils-master;
cmake .;
make;
make install;
cd ..;
rm -rf utils-master;
rm master.zip
echo "Completed"

Fixing DTOVERLAY Linking

--2024-04-09 15:23:07-- https://github.com/raspberrypi/utils/archive/refs/heads/master.zip
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/raspberrypi/utils/zip/refs/heads/master [following]
--2024-04-09 15:23:07-- https://codeload.github.com/raspberrypi/utils/zip/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 140.82.114.9
Connecting to codeload.github.com (codeload.github.com)|140.82.114.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

master.zip [ <=> ] 144.69K --.-KB/s in 0.1s

2024-04-09 15:23:08 (1020 KB/s) - ‘master.zip’ saved [148161]

Archive: master.zip
6dc6f5f
creating: utils-master/
inflating: utils-master/.gitignore
inflating: utils-master/CMakeLists.txt
inflating: utils-master/LICENCE
inflating: utils-master/README.md
creating: utils-master/dtmerge/
inflating: utils-master/dtmerge/CMakeLists.txt
inflating: utils-master/dtmerge/README.md
inflating: utils-master/dtmerge/dtmerge.1
inflating: utils-master/dtmerge/dtmerge.c
inflating: utils-master/dtmerge/dtoverlay.1
inflating: utils-master/dtmerge/dtoverlay.2
inflating: utils-master/dtmerge/dtoverlay.c
inflating: utils-master/dtmerge/dtoverlay.h
inflating: utils-master/dtmerge/dtoverlay_main.c
inflating: utils-master/dtmerge/dtparam.1
inflating: utils-master/dtmerge/utils.c
inflating: utils-master/dtmerge/utils.h
creating: utils-master/eeptools/
inflating: utils-master/eeptools/CMakeLists.txt
inflating: utils-master/eeptools/README.md
inflating: utils-master/eeptools/eepdump.c
inflating: utils-master/eeptools/eepflash.sh
inflating: utils-master/eeptools/eeplib.c
inflating: utils-master/eeptools/eeplib.h
inflating: utils-master/eeptools/eepmake.c
inflating: utils-master/eeptools/eeprom_settings.txt
inflating: utils-master/eeptools/eeprom_v1_settings.txt
creating: utils-master/otpset/
inflating: utils-master/otpset/CMakeLists.txt
inflating: utils-master/otpset/README.md
inflating: utils-master/otpset/otpset
creating: utils-master/overlaycheck/
inflating: utils-master/overlaycheck/CMakeLists.txt
inflating: utils-master/overlaycheck/README.md
inflating: utils-master/overlaycheck/overlaycheck
inflating: utils-master/overlaycheck/overlaycheck_exclusions.txt
creating: utils-master/ovmerge/
inflating: utils-master/ovmerge/CMakeLists.txt
inflating: utils-master/ovmerge/README.md
inflating: utils-master/ovmerge/ovmerge
creating: utils-master/pinctrl/
inflating: utils-master/pinctrl/CMakeLists.txt
inflating: utils-master/pinctrl/README.md
inflating: utils-master/pinctrl/gpiochip.h
inflating: utils-master/pinctrl/gpiochip_bcm2712.c
inflating: utils-master/pinctrl/gpiochip_bcm2835.c
inflating: utils-master/pinctrl/gpiochip_rp1.c
inflating: utils-master/pinctrl/gpiolib.c
inflating: utils-master/pinctrl/gpiolib.h
inflating: utils-master/pinctrl/pinctrl-completion.bash
inflating: utils-master/pinctrl/pinctrl.c
inflating: utils-master/pinctrl/util.c
inflating: utils-master/pinctrl/util.h
creating: utils-master/raspinfo/
inflating: utils-master/raspinfo/CMakeLists.txt
inflating: utils-master/raspinfo/README.md
inflating: utils-master/raspinfo/raspinfo
creating: utils-master/vcgencmd/
inflating: utils-master/vcgencmd/CMakeLists.txt
inflating: utils-master/vcgencmd/vcgencmd-completion.bash
inflating: utils-master/vcgencmd/vcgencmd.1
inflating: utils-master/vcgencmd/vcgencmd.c
creating: utils-master/vclog/
inflating: utils-master/vclog/CMakeLists.txt
inflating: utils-master/vclog/README.md
inflating: utils-master/vclog/vclog.c
creating: utils-master/vcmailbox/
inflating: utils-master/vcmailbox/CMakeLists.txt
inflating: utils-master/vcmailbox/raspiotp.7
inflating: utils-master/vcmailbox/raspirev.7
inflating: utils-master/vcmailbox/vcmailbox.1
inflating: utils-master/vcmailbox/vcmailbox.7
inflating: utils-master/vcmailbox/vcmailbox.c
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ORP/scripts/utils-master
[ 3%] Building C object dtmerge/CMakeFiles/dtovl.dir/dtoverlay.c.o
/home/ORP/scripts/utils-master/dtmerge/dtoverlay.c:32:10: fatal error: libfdt.h: No such file or directory
32 | #include <libfdt.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [dtmerge/CMakeFiles/dtovl.dir/build.make:76: dtmerge/CMakeFiles/dtovl.dir/dtoverlay.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:266: dtmerge/CMakeFiles/dtovl.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
[ 3%] Building C object dtmerge/CMakeFiles/dtovl.dir/dtoverlay.c.o
/home/ORP/scripts/utils-master/dtmerge/dtoverlay.c:32:10: fatal error: libfdt.h: No such file or directory
32 | #include <libfdt.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [dtmerge/CMakeFiles/dtovl.dir/build.make:76: dtmerge/CMakeFiles/dtovl.dir/dtoverlay.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:266: dtmerge/CMakeFiles/dtovl.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Completed
root@ORP30xDev:/home/ORP/scripts#

disregard, realized I was missing the pre-requisite in my scripts