Fenix build fail Ubuntu 18.04

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 18.04 and Docker

Which version of system do you use? Khadas official images, self built images, or others?

Self built image

Please describe your issue below:

I tried to build Ubuntu 18.04 using Fenix Build Ubuntu/Debian Images | Khadas Documentation and GitHub - khadas/fenix: One-stop script set to build Ubuntu/Debian images

In local system and docker, both of them doesn’t build Ubuntu 18.04.

Post a console log of your issue below:


Contents:
   Image 0: 796 Bytes = 0.78 kB = 0.00 MB
  adding: aml_autoscript (deflated 70%)
  adding: aml_autoscript.txt (deflated 75%)
/home/khadas/fenix
Info: Building package: linux-board-package-bionic-vim4
dpkg-deb: building package 'linux-board-package-bionic-vim4' in '/home/khadas/fenix/build/images/.tmp/linux-board-package-bionic-vim4_1.0.11_arm64.deb'.
Info: Build updater deb...
Info: Building package: fenix-updater-package-bionic-vim4-5.4
dpkg-deb: building package 'fenix-updater-package-bionic-vim4-5.4' in '/home/khadas/fenix/build/images/.tmp/fenix-updater-package-bionic-vim4-5.4_1.0.11_arm64.deb'.
Info: Building WiringPi packages...
--2022-06-10 14:54:12--  https://github.com/numbqq/wiringpi_debs/archive/99c60ae366de1cea09204acdca0ed7f287438a9e.tar.gz
Resolving github.com (github.com)... 52.78.231.108
Connecting to github.com (github.com)|52.78.231.108|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/numbqq/wiringpi_debs/tar.gz/99c60ae366de1cea09204acdca0ed7f287438a9e [following]
--2022-06-10 14:54:12--  https://codeload.github.com/numbqq/wiringpi_debs/tar.gz/99c60ae366de1cea09204acdca0ed7f287438a9e
Resolving codeload.github.com (codeload.github.com)... 13.124.75.135
Connecting to codeload.github.com (codeload.github.com)|13.124.75.135|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘wiringpi_debs-99c60ae366de1cea09204acdca0ed7f287438a9e.tar.gz’

wiringpi_debs-99c60ae366de1cea09204acdca0ed7f287438a     [ <=>                                                                                                                  ] 254.17K  --.-KB/s    in 0.02s   

2022-06-10 14:54:12 (13.4 MB/s) - ‘wiringpi_debs-99c60ae366de1cea09204acdca0ed7f287438a9e.tar.gz’ saved [260271]

Calculated checksum is: 93a9510d9e1f3e38e3d5a90de7228115ce2f3f7d3feadc51b2c92f0e1017f7a4
Extracting 'wiringpi_debs-99c60ae366de1cea09204acdca0ed7f287438a9e.tar.gz' to '/home/khadas/fenix/build'...
Info: Building mali-debs package...
--2022-06-10 14:54:12--  https://github.com/khadas/mali-debs/archive/52fe2c85099459524d5e27310eb74584e5f9325d.tar.gz
Resolving github.com (github.com)... 52.78.231.108
Connecting to github.com (github.com)|52.78.231.108|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/khadas/mali-debs/tar.gz/52fe2c85099459524d5e27310eb74584e5f9325d [following]
--2022-06-10 14:54:13--  https://codeload.github.com/khadas/mali-debs/tar.gz/52fe2c85099459524d5e27310eb74584e5f9325d
Resolving codeload.github.com (codeload.github.com)... 13.124.75.135
Connecting to codeload.github.com (codeload.github.com)|13.124.75.135|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘mali-debs-52fe2c85099459524d5e27310eb74584e5f9325d.tar.gz’

mali-debs-52fe2c85099459524d5e27310eb74584e5f9325d.t     [           <=>                                                                                                        ]  27.17M  11.9MB/s    in 2.3s    

2022-06-10 14:54:15 (11.9 MB/s) - ‘mali-debs-52fe2c85099459524d5e27310eb74584e5f9325d.tar.gz’ saved [28485121]

Calculated checksum is: 0aeb4a8ea7a86c3a1401435641147ea92bbb63dcc4adb29956024501aee94111
Extracting 'mali-debs-52fe2c85099459524d5e27310eb74584e5f9325d.tar.gz' to '/home/khadas/fenix/build'...
cp: cannot stat 'bionic/arm64/VIM4/*': No such file or directory
make: *** [Makefile:2: all] Error 1


@archekalos You can follow my patch to slove this error.

$ git diff
diff --git a/config/boards/VIM4.conf b/config/boards/VIM4.conf
index 1141635..9cab801 100644
--- a/config/boards/VIM4.conf
+++ b/config/boards/VIM4.conf
@@ -185,13 +185,13 @@ build_deb_packages_platform() {
                return 0
        fi
 
-       if [ "$LINUX" == "5.4" ]; then
-               info_msg "Building mali-debs package..."
+#      if [ "$LINUX" == "5.4" ]; then
+#              info_msg "Building mali-debs package..."
                # FIXME
                # remove build stamp to force build for other arch
-               rm -rf $BUILD/.stamps/mali-debs
-               build_package "mali-debs:target"
-       fi
+#              rm -rf $BUILD/.stamps/mali-debs
+#              build_package "mali-debs:target"
+#      fi
 
        if [ "$LINUX" == "5.4" ] && [ "$DISTRIBUTION" == "Ubuntu" ]; then
                info_msg "Building OPTEE userspace package..."
@@ -260,10 +260,10 @@ install_deb_packages_platform() {
                return 0
        fi
 
-       if [ "$LINUX" == "5.4" ]; then
-               info_msg "Installing mali-debs package ..."
-               install_deb_chroot $BUILD_DEBS/$VERSION/$KHADAS_BOARD/mali-debs/${GPU_PLATFORM}/*.deb
-       fi
+#      if [ "$LINUX" == "5.4" ]; then
+#              info_msg "Installing mali-debs package ..."
+#              install_deb_chroot $BUILD_DEBS/$VERSION/$KHADAS_BOARD/mali-debs/${GPU_PLATFORM}/*.deb
+#      fi
 
        if [ "$LINUX" == "5.4" ] && [ "$DISTRIBUTION" == "Ubuntu" ]; then
                info_msg "Installing OPTEE userspace package..."

In addition, we only maintain 22.04 for VIM4, not 18.04