Compiling Linux 4.9

Hello,
I’m experiencing a problem with dependencies during Linux 4.9 build using Fenix:

Info: Installing Kodi packages...
Info: Installing libshairplay-dev_0.9.0.2~focal_arm64.deb in chroot...
Selecting previously unselected package libshairplay-dev:arm64.
(Reading database ... 113464 files and directories currently installed.)
Preparing to unpack .../libshairplay-dev_0.9.0.2~focal_arm64.deb ...
Unpacking libshairplay-dev:arm64 (0.9.0.2~focal) ...
dpkg: dependency problems prevent configuration of libshairplay-dev:arm64:
 libshairplay-dev:arm64 depends on libshairplay0 (= 0.9.0.2~focal); however:
  Package libshairplay0 is not installed.
dpkg: error processing package libshairplay-dev:arm64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libshairplay-dev:arm64
make: *** [Makefile:7: all] Error 1

While I can find these packages in:

pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix-4.9/build/images/debs/0.9.2/VIM3/Ubuntu-focal/kodi/deps$ ls
libshairplay-dev_0.9.0.2~focal_arm64.deb  libudfread-dev_1.0.0-1~focal_arm64.deb  shairplay_0.9.0.2~focal_arm64.deb
libshairplay0_0.9.0.2~focal_arm64.deb     libudfread0_1.0.0-1~focal_arm64.deb

Environment settings:

#VERSION: 0.9.2

#KHADAS_BOARD=VIM3
#VENDOR=Amlogic
#CHIP=A311D
#LINUX=4.9
#UBOOT=2015.01
#DISTRIBUTION=Ubuntu
#DISTRIB_RELEASE=focal
#DISTRIB_TYPE=xfce
#DISTRIB_ARCH=arm64
#INSTALL_TYPE=SD-USB

Hello @pawelseweryn

Do you use the latest code to build ?

Of Fenix? Yes, fresh version of git repo

Please provide the full log. I just check on my side, I can’t reproduce this issue.

Please find attached full log - from the git clone up to the error. I’ve just finished fresh try:
https://drive.google.com/file/d/1e21OWbwX2Nfox7UaJDZ5pqq4qg701d3C/view?usp=sharing

I can’t access this link.

Sorry, I probably mistype share settings. What about now?

OK. I will try a fresh build on mys side, I will feedback the result.

Hello @pawelseweryn

I have finished a fresh build successfully.

But I found some difference from mine.

Your log:

Info: Ending debootstrap process and preparing cache focal
focal-xfce-arm64.e83...1b3.tar.lz4: 2.48GiB [ 150MiB/s] [==============================================================================================================================================================================] 105%
Info: Applying distribution specific tweaks for focal

Mine:

Info: Ending debootstrap process and preparing cache focal
focal-xfce-arm64.822...9b3.tar.lz4: 2.48GiB [ 318MiB/s] [================================================================================================================================================================================================================================] 105%
Info: Applying distribution specific tweaks for focal

The rootfs hash should be the same, I’m not sure why yours not.

Can you provide the following result to me ?

  • 1
$ source config/config && ( printf '%s\n' $PACKAGE_LIST | sort -u; printf '%s\n' $PACKAGE_LIST_EXCLUDE | sort -u; echo "$ROOTFSCACHE_VERSION" ) | md5sum | cut -d' ' -f 1
  • 2
$ echo $PACKAGE_LIST
  • 3
$ echo $PACKAGE_LIST_EXCLUDE
  • 4
$ echo $ROOTFSCACHE_VERSION

1

pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix$ source config/config && ( printf '%s\n' $PACKAGE_LIST | sort -u; printf '%s\n' $PACKAGE_LIST_EXCLUDE | sort -u; echo "$ROOTFSCACHE_VERSION" ) | md5sum | cut -d' ' -f 1
readlink: invalid option -- 'b'
Try 'readlink --help' for more information.
e83b4d9cad16039de87d8add1b1691b3

2

pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix$ echo $PACKAGE_LIST
bc bridge-utils build-essential cpufrequtils device-tree-compiler figlet fbset fping iw fake-hwclock wpasupplicant psmisc chrony parted rsync sudo curl linux-base dialog crda wireless-regdb ncurses-term python3-apt sysfsutils toilet u-boot-tools unattended-upgrades usbutils wireless-tools console-setup unicode-data openssh-server initramfs-tools resolvconf expect iptables mc abootimg udev libc6 libdrm2 libgcc1 libstdc++6 libx11-6 libx11-xcb1 libxcb-dri2-0 libxcb1 rsyslog bison flex html2text automake libwrap0-dev libssl-dev libnl-3-dev libnl-genl-3-dev keyboard-configuration man-db kbd gnupg2 dirmngr networkd-dispatcher libjpeg9 wget nano alsa-utils btrfs-progs dosfstools hddtemp iotop iozone3 stress sysbench screen ntfs-3g vim pciutils evtest htop mmc-utils pv lsof libfuse2 libdigest-sha-perl libproc-processtable-perl aptitude dnsutils f3 haveged hdparm rfkill vlan sysstat net-tools bash-completion hostapd git ethtool network-manager unzip ifenslave lirc libpam-systemd iperf3 software-properties-common libnss-myhostname f2fs-tools avahi-autoipd iputils-arping bluetooth bluez bluez-tools watchdog i2c-tools qrencode rng-tools clinfo ocl-icd-libopencl1 libatlas3-base p7zip p7zip-full lrzip lzip lzop ncompress unar zstd edid-decode libgtk-3-0 dnsmasq-base ppp modemmanager mobile-broadband-provider-info xserver-xorg xserver-xorg-video-fbdev gvfs-backends gvfs-fuse xfonts-base xinit x11-xserver-utils xterm thunar-volman network-manager-gnome network-manager-openvpn-gnome gnome-keyring gcr libgck-1-0 p11-kit pasystray pavucontrol pulseaudio pavumeter pulseaudio-module-bluetooth blueman libpam-gnome-keyring libgl1-mesa-dri gparted synaptic apt-xapian-index policykit-1 profile-sync-daemon gnome-orca numix-gtk-theme gnome-system-tools lightdm lightdm-gtk-greeter gufw yad zenity guvcview onboard debconf-utils gedit galculator hexchat mpv gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf thunderbird system-config-printer-common system-config-printer paprefs dbus-x11 tango-icon-theme libreoffice libreoffice-style-tango fbi cups-pk-helper cups geany atril xarchiver meld remmina kazam avahi-daemon transmission xfce4 lxtask xfce4-screenshooter xfce4-notifyd xfce4-terminal desktop-base software-properties-gtk thunar-archive-plugin update-manager libunwind8 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xf86dri0 libxcb-xkb1 libxcb-xv0 libpixman-1-dev x11proto-core-dev x11proto-input-dev x11proto-xext-dev x11proto-video-dev x11proto-randr-dev x11proto-render-dev x11proto-dri2-dev x11proto-gl-dev x11proto-fonts-dev x11proto-xinerama-dev x11proto-kb-dev x11proto-xf86dri-dev x11proto-resource-dev x11proto-scrnsaver-dev x11proto-xf86bigfont-dev x11proto-dri3-dev x11proto-present-dev libxfont-dev libxkbfile-dev libpciaccess-dev gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-alsa gstreamer1.0-plugins-good libconfig++9v5 libconfig9 mesa-utils libglu1 libpcrecpp0v5 libssh-4 libtag1v5 libtinyxml2.6.2v5 libcurl4 libcrossguid0 libmicrohttpd12 libavahi-compat-libdnssd-dev libcec4 libfstrcmp0 libnfs13 fonts-liberation python-bluez python-pil python-simplejson libaacs0 fonts-dejavu-core libao-dev libpython2.7 libpython2.7-minimal libpython2.7-stdlib x11-utils libclang-cpp9 xserver-xorg-input-all pulseaudio-module-gsettings firefox language-selector-gnome viewnior

3

pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix$ echo $PACKAGE_LIST_EXCLUDE
rsyslog

4

pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix$ echo $ROOTFSCACHE_VERSION
6

Strange, why there is a error, I can’t reproduce this on my side…

Hello @pawelseweryn

I have send a patch. Can you update the source code and try again?

Hello @numbqq
I’ve tested with fresh git copy and error is the same:

Unpacking libshairplay-dev:arm64 (0.9.0.2~focal) ...
dpkg: dependency problems prevent configuration of libshairplay-dev:arm64:
 libshairplay-dev:arm64 depends on libshairplay0 (= 0.9.0.2~focal); however:
  Package libshairplay0 is not installed.

dpkg: error processing package libshairplay-dev:arm64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libshairplay-dev:arm64
Cleanup...
make: *** [Makefile:7: all] Error 1

Checks:

pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix-4.9$ source config/config && ( printf '%s\n' $PACKAGE_LIST | sort -u; printf '%s\n' $PACKAGE_LIST_EXCLUDE | sort -u; echo "$ROOTFSCACHE_VERSION" ) | md5sum | cut -d' ' -f 1
readlink: invalid option -- 'b'
Try 'readlink --help' for more information.
e83b4d9cad16039de87d8add1b1691b3
pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix-4.9$ echo $PACKAGE_LIST
bc bridge-utils build-essential cpufrequtils device-tree-compiler figlet fbset fping iw fake-hwclock wpasupplicant psmisc chrony parted rsync sudo curl linux-base dialog crda wireless-regdb ncurses-term python3-apt sysfsutils toilet u-boot-tools unattended-upgrades usbutils wireless-tools console-setup unicode-data openssh-server initramfs-tools resolvconf expect iptables mc abootimg udev libc6 libdrm2 libgcc1 libstdc++6 libx11-6 libx11-xcb1 libxcb-dri2-0 libxcb1 rsyslog bison flex html2text automake libwrap0-dev libssl-dev libnl-3-dev libnl-genl-3-dev keyboard-configuration man-db kbd gnupg2 dirmngr networkd-dispatcher libjpeg9 wget nano alsa-utils btrfs-progs dosfstools hddtemp iotop iozone3 stress sysbench screen ntfs-3g vim pciutils evtest htop mmc-utils pv lsof libfuse2 libdigest-sha-perl libproc-processtable-perl aptitude dnsutils f3 haveged hdparm rfkill vlan sysstat net-tools bash-completion hostapd git ethtool network-manager unzip ifenslave lirc libpam-systemd iperf3 software-properties-common libnss-myhostname f2fs-tools avahi-autoipd iputils-arping bluetooth bluez bluez-tools watchdog i2c-tools qrencode rng-tools clinfo ocl-icd-libopencl1 libatlas3-base p7zip p7zip-full lrzip lzip lzop ncompress unar zstd edid-decode libgtk-3-0 dnsmasq-base ppp modemmanager mobile-broadband-provider-info xserver-xorg xserver-xorg-video-fbdev gvfs-backends gvfs-fuse xfonts-base xinit x11-xserver-utils xterm thunar-volman network-manager-gnome network-manager-openvpn-gnome gnome-keyring gcr libgck-1-0 p11-kit pasystray pavucontrol pulseaudio pavumeter pulseaudio-module-bluetooth blueman libpam-gnome-keyring libgl1-mesa-dri gparted synaptic apt-xapian-index policykit-1 profile-sync-daemon gnome-orca numix-gtk-theme gnome-system-tools lightdm lightdm-gtk-greeter gufw yad zenity guvcview onboard debconf-utils gedit galculator hexchat mpv gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf thunderbird system-config-printer-common system-config-printer paprefs dbus-x11 tango-icon-theme libreoffice libreoffice-style-tango fbi cups-pk-helper cups geany atril xarchiver meld remmina kazam avahi-daemon transmission xfce4 lxtask xfce4-screenshooter xfce4-notifyd xfce4-terminal desktop-base software-properties-gtk thunar-archive-plugin update-manager libunwind8 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xf86dri0 libxcb-xkb1 libxcb-xv0 libpixman-1-dev x11proto-core-dev x11proto-input-dev x11proto-xext-dev x11proto-video-dev x11proto-randr-dev x11proto-render-dev x11proto-dri2-dev x11proto-gl-dev x11proto-fonts-dev x11proto-xinerama-dev x11proto-kb-dev x11proto-xf86dri-dev x11proto-resource-dev x11proto-scrnsaver-dev x11proto-xf86bigfont-dev x11proto-dri3-dev x11proto-present-dev libxfont-dev libxkbfile-dev libpciaccess-dev gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-alsa gstreamer1.0-plugins-good libconfig++9v5 libconfig9 mesa-utils libglu1 libpcrecpp0v5 libssh-4 libtag1v5 libtinyxml2.6.2v5 libcurl4 libcrossguid0 libmicrohttpd12 libavahi-compat-libdnssd-dev libcec4 libfstrcmp0 libnfs13 fonts-liberation python-bluez python-pil python-simplejson libaacs0 fonts-dejavu-core libao-dev libpython2.7 libpython2.7-minimal libpython2.7-stdlib x11-utils libclang-cpp9 xserver-xorg-input-all pulseaudio-module-gsettings firefox language-selector-gnome viewnior
pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix-4.9$ echo $PACKAGE_LIST_EXCLUDE
rsyslog
pawel@vim3-linux-builder:~/WORKING_DIRECTORY/fenix-4.9$ echo $ROOTFSCACHE_VERSION
6

I tried many times on my side, but I can’t reproduce this issue.

Can you try to build in docker ?

1 Like

Ok, this time it worked out. Thank you @numbqq! :slight_smile:

Info: IMAGE: /home/khadas/fenix/build/images/VIM3_Ubuntu-xfce-focal_Linux-4.9_arm64_SD-USB_V0.9.2-20200731.img  is ready!
Cleanup...

Done.

Fri 31 Jul 2020 09:53:51 AM UTC
Time elapsed: 34 minute(s).
khadas@fca0e451b074:~/fenix$ source config/config && ( printf '%s\n' $PACKAGE_LIST | sort -u; printf '%s\n' $PACKAGE_LIST_EXCLUDE | sort -u; echo "$ROOTFSCACHE_VERSION" ) | md5sum | cut -d' ' -f 1
822327a7812f0f679228a43321b7e9b3
khadas@fca0e451b074:~/fenix$ echo $PACKAGE_LIST
bc bridge-utils build-essential cpufrequtils device-tree-compiler figlet fbset fping iw fake-hwclock wpasupplicant psmisc chrony parted rsync sudo curl linux-base dialog crda wireless-regdb ncurses-term python3-apt sysfsutils toilet u-boot-tools unattended-upgrades usbutils wireless-tools console-setup unicode-data openssh-server initramfs-tools resolvconf expect iptables mc abootimg udev libc6 libdrm2 libgcc1 libstdc++6 libx11-6 libx11-xcb1 libxcb-dri2-0 libxcb1 rsyslog bison flex html2text automake libwrap0-dev libssl-dev libnl-3-dev libnl-genl-3-dev keyboard-configuration man-db kbd gnupg2 dirmngr networkd-dispatcher libjpeg9 wget nano alsa-utils btrfs-progs dosfstools hddtemp iotop iozone3 stress sysbench screen ntfs-3g vim pciutils evtest htop mmc-utils pv lsof libfuse2 libdigest-sha-perl libproc-processtable-perl aptitude dnsutils f3 haveged hdparm rfkill vlan sysstat net-tools bash-completion hostapd git ethtool network-manager unzip ifenslave lirc libpam-systemd iperf3 software-properties-common libnss-myhostname f2fs-tools avahi-autoipd iputils-arping bluetooth bluez bluez-tools watchdog i2c-tools qrencode rng-tools clinfo ocl-icd-libopencl1 libatlas3-base p7zip p7zip-full lrzip lzip lzop ncompress unar zstd edid-decode libgtk-3-0 dnsmasq-base ppp modemmanager mobile-broadband-provider-info xserver-xorg xserver-xorg-video-fbdev gvfs-backends gvfs-fuse xfonts-base xinit x11-xserver-utils xterm thunar-volman network-manager-gnome network-manager-openvpn-gnome gnome-keyring gcr libgck-1-0 p11-kit pasystray pavucontrol pulseaudio pavumeter pulseaudio-module-bluetooth blueman libpam-gnome-keyring libgl1-mesa-dri gparted synaptic apt-xapian-index policykit-1 profile-sync-daemon gnome-orca numix-gtk-theme gnome-system-tools lightdm lightdm-gtk-greeter gufw yad zenity guvcview onboard debconf-utils gedit galculator hexchat mpv gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf thunderbird system-config-printer-common system-config-printer paprefs dbus-x11 tango-icon-theme libreoffice libreoffice-style-tango fbi cups-pk-helper cups geany atril xarchiver meld remmina kazam avahi-daemon transmission xfce4 lxtask xfce4-screenshooter xfce4-notifyd xfce4-terminal desktop-base software-properties-gtk thunar-archive-plugin update-manager libunwind8 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xf86dri0 libxcb-xkb1 libxcb-xv0 libpixman-1-dev x11proto-core-dev x11proto-input-dev x11proto-xext-dev x11proto-video-dev x11proto-randr-dev x11proto-render-dev x11proto-dri2-dev x11proto-gl-dev x11proto-fonts-dev x11proto-xinerama-dev x11proto-kb-dev x11proto-xf86dri-dev x11proto-resource-dev x11proto-scrnsaver-dev x11proto-xf86bigfont-dev x11proto-dri3-dev x11proto-present-dev libxfont-dev libxkbfile-dev libpciaccess-dev gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-alsa gstreamer1.0-plugins-good libconfig++9v5 libconfig9 mesa-utils libglu1 libpcrecpp0v5 libssh-4 libtag1v5 libtinyxml2.6.2v5 libcurl4 libcrossguid0 libmicrohttpd12 libavahi-compat-libdnssd-dev libcec4 libfstrcmp0 libnfs13 fonts-liberation python-bluez python-pil python-simplejson libaacs0 fonts-dejavu-core libao-dev libpython2.7 libpython2.7-minimal libpython2.7-stdlib x11-utils libclang-cpp9 xserver-xorg-input-all pulseaudio-module-gsettings firefox language-selector-gnome viewnior
khadas@fca0e451b074:~/fenix$ echo $PACKAGE_LIST_EXCLUDE
rsyslog
khadas@fca0e451b074:~/fenix$ echo $ROOTFSCACHE_VERSION
6
khadas@fca0e451b074:~/fenix$
1 Like