Hi guys,
I just upgraded my rpi4 using "pacman -Syu" as I usually do, and I found it failed rebuilding the kernel images. It produced the the error "WARNING: errors were encountered during the build. The image may not be complete.", as you can see below:
[code][musikolo@my-rpi4 ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core                                                                      234.8 KiB   397 KiB/s 00:01 [#############################################################] 100%
 extra                                                                       9.1 MiB  3.30 MiB/s 00:03 [#############################################################] 100%
 alarm                                                                      57.3 KiB   140 KiB/s 00:00 [#############################################################] 100%
 aur is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (33) alsa-lib-1.2.11-1  alsa-ucm-conf-1.2.11-1  curl-8.6.0-3  expat-2.6.0-1  ffmpeg-2:6.1.1-5  fftw-3.3.10-5  hwdata-0.379-1  libavif-1.0.4-1  libelf-0.190-2
              libgit2-1:1.7.2-1  libjxl-0.9.2-1  libnghttp3-1.1.0-2  libpciaccess-0.18-1  libsecret-0.21.3-1  libsysprof-capture-45.2-1  libusb-1.0.27-1  libxext-1.3.6-1
              libxml2-2.12.5-1  licenses-20240206-1  linux-api-headers-6.7-1  mpfr-4.2.1-2  openmpi-5.0.1-2  pacman-6.0.2-9  prrte-3.0.3-2  python-pydantic-2.6.1-1
              python-pydantic-core-1:2.16.2-1  python-pytz-2024.1-1  raspberrypi-bootloader-20240208-1  raspberrypi-utils-20240204-1  sdl2-2.30.0-1  tzdata-2024a-1
              vapoursynth-R65-1  wireless-regdb-2024.01.23-1
Total Download Size:    32.02 MiB
Total Installed Size:  137.05 MiB
Net Upgrade Size:        3.61 MiB
:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 fftw-3.3.10-5-aarch64                                                    1533.5 KiB  3.15 MiB/s 00:00 [#############################################################] 100%
 openmpi-5.0.1-2-aarch64                                                     2.8 MiB  5.04 MiB/s 00:01 [#############################################################] 100%
 libjxl-0.9.2-1-aarch64                                                   1296.4 KiB  8.67 MiB/s 00:00 [#############################################################] 100%
 python-pydantic-core-1:2.16.2-1-aarch64                                  1260.5 KiB  8.10 MiB/s 00:00 [#############################################################] 100%
 linux-api-headers-6.7-1-any                                              1200.5 KiB  8.50 MiB/s 00:00 [#############################################################] 100%
 curl-8.6.0-3-aarch64                                                     1046.2 KiB  9.29 MiB/s 00:00 [#############################################################] 100%
 sdl2-2.30.0-1-aarch64                                                     889.2 KiB  8.60 MiB/s 00:00 [#############################################################] 100%
 hwdata-0.379-1-any                                                       1540.0 KiB  1467 KiB/s 00:01 [#############################################################] 100%
 pacman-6.0.2-9-aarch64                                                    831.1 KiB  7.52 MiB/s 00:00 [#############################################################] 100%
 libxml2-2.12.5-1-aarch64                                                  734.5 KiB  6.40 MiB/s 00:00 [#############################################################] 100%
 python-pydantic-2.6.1-1-any                                               693.0 KiB  6.84 MiB/s 00:00 [#############################################################] 100%
 vapoursynth-R65-1-aarch64                                                 602.3 KiB  10.1 MiB/s 00:00 [#############################################################] 100%
 prrte-3.0.3-2-aarch64                                                     483.8 KiB  9.26 MiB/s 00:00 [#############################################################] 100%
 libelf-0.190-2-aarch64                                                    447.7 KiB  7.67 MiB/s 00:00 [#############################################################] 100%
 libgit2-1:1.7.2-1-aarch64                                                 722.3 KiB  2.36 MiB/s 00:00 [#############################################################] 100%
 tzdata-2024a-1-aarch64                                                    367.8 KiB  6.91 MiB/s 00:00 [#############################################################] 100%
 mpfr-4.2.1-2-aarch64                                                      318.5 KiB  5.02 MiB/s 00:00 [#############################################################] 100%
 alsa-lib-1.2.11-1-aarch64                                                 440.0 KiB  2.81 MiB/s 00:00 [#############################################################] 100%
 libavif-1.0.4-1-aarch64                                                   132.0 KiB  2.30 MiB/s 00:00 [#############################################################] 100%
 libsecret-0.21.3-1-aarch64                                                171.0 KiB  2.74 MiB/s 00:00 [#############################################################] 100%
 raspberrypi-utils-20240204-1-aarch64                                      120.0 KiB  2.02 MiB/s 00:00 [#############################################################] 100%
 expat-2.6.0-1-aarch64                                                     103.1 KiB  1842 KiB/s 00:00 [#############################################################] 100%
 licenses-20240206-1-any                                                   102.2 KiB  1793 KiB/s 00:00 [#############################################################] 100%
 libxext-1.3.6-1-aarch64                                                   102.1 KiB  1760 KiB/s 00:00 [#############################################################] 100%
 alsa-ucm-conf-1.2.11-1-any                                                 87.7 KiB  1950 KiB/s 00:00 [#############################################################] 100%
 libnghttp3-1.1.0-2-aarch64                                                 70.9 KiB  1126 KiB/s 00:00 [#############################################################] 100%
 libusb-1.0.27-1-aarch64                                                    68.9 KiB  1148 KiB/s 00:00 [#############################################################] 100%
 raspberrypi-bootloader-20240208-1-any                                       4.3 MiB  2.28 MiB/s 00:02 [#############################################################] 100%
 libsysprof-capture-45.2-1-aarch64                                          46.1 KiB   782 KiB/s 00:00 [#############################################################] 100%
 python-pytz-2024.1-1-any                                                   43.7 KiB   824 KiB/s 00:00 [#############################################################] 100%
 libpciaccess-0.18-1-aarch64                                                20.1 KiB   373 KiB/s 00:00 [#############################################################] 100%
 wireless-regdb-2024.01.23-1-any                                            10.2 KiB   178 KiB/s 00:00 [#############################################################] 100%
 ffmpeg-2:6.1.1-5-aarch64                                                    9.7 MiB  1314 KiB/s 00:08 [#############################################################] 100%
 Total (33/33)                                                              32.0 MiB  4.19 MiB/s 00:08 [#############################################################] 100%
(33/33) checking keys in keyring                                                                       [#############################################################] 100%
(33/33) checking package integrity                                                                     [#############################################################] 100%
(33/33) loading package files                                                                          [#############################################################] 100%
(33/33) checking for file conflicts                                                                    [#############################################################] 100%
(33/33) checking available disk space                                                                  [#############################################################] 100%
:: Processing package changes...
( 1/33) upgrading alsa-ucm-conf                                                                        [#############################################################] 100%
( 2/33) upgrading linux-api-headers                                                                    [#############################################################] 100%
( 3/33) upgrading tzdata                                                                               [#############################################################] 100%
( 4/33) upgrading alsa-lib                                                                             [#############################################################] 100%
( 5/33) installing libnghttp3                                                                          [#############################################################] 100%
( 6/33) upgrading curl                                                                                 [#############################################################] 100%
( 7/33) upgrading expat                                                                                [#############################################################] 100%
( 8/33) upgrading libjxl                                                                               [#############################################################] 100%
( 9/33) upgrading libxext                                                                              [#############################################################] 100%
(10/33) upgrading libxml2                                                                              [#############################################################] 100%
(11/33) upgrading libusb                                                                               [#############################################################] 100%
(12/33) upgrading libelf                                                                               [#############################################################] 100%
(13/33) upgrading libpciaccess                                                                         [#############################################################] 100%
(14/33) upgrading sdl2                                                                                 [#############################################################] 100%
(15/33) installing vapoursynth                                                                         [#############################################################] 100%
(16/33) upgrading libsysprof-capture                                                                   [#############################################################] 100%
(17/33) upgrading hwdata                                                                               [#############################################################] 100%
(18/33) installing prrte                                                                               [#############################################################] 100%
Optional dependencies for prrte
    prrte-docs: for documentation
(19/33) upgrading openmpi                                                                              [#############################################################] 100%
(20/33) upgrading fftw                                                                                 [#############################################################] 100%
(21/33) upgrading ffmpeg                                                                               [#############################################################] 100%
(22/33) upgrading libavif                                                                              [#############################################################] 100%
(23/33) upgrading libgit2                                                                              [#############################################################] 100%
(24/33) upgrading libsecret                                                                            [#############################################################] 100%
(25/33) upgrading licenses                                                                             [#############################################################] 100%
(26/33) upgrading mpfr                                                                                 [#############################################################] 100%
(27/33) upgrading pacman                                                                               [#############################################################] 100%
(28/33) upgrading python-pydantic-core                                                                 [#############################################################] 100%
(29/33) upgrading python-pydantic                                                                      [#############################################################] 100%
(30/33) upgrading python-pytz                                                                          [#############################################################] 100%
(31/33) upgrading raspberrypi-bootloader                                                               [#############################################################] 100%
(32/33) upgrading raspberrypi-utils                                                                    [#############################################################] 100%
(33/33) upgrading wireless-regdb                                                                       [#############################################################] 100%
:: Running post-transaction hooks...
(1/7) Reloading system manager configuration...
(2/7) Reloading device manager configuration...
(3/7) Arming ConditionNeedsUpdate...
(4/7) Updating the MIME type database...
(5/7) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.2.10-1-aarch64-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: '6.2.10-1-aarch64-ARCH'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.2.10-1-aarch64-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.2.10-1-aarch64-ARCH'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
==> WARNING: Possibly missing firmware for module: 'msm'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly
(6/7) Probing GDK-Pixbuf loader modules...
(7/7) Updating the info directory file...
[musikolo@my-rpi4 ~]$
[/code]
In an attempt to understand the root cause, I rebuild all kernet images in debug mode using "mkinitcpio -v -P", but unfortunately I didn't find any errors as you can see atmake_clickable_callback(MAGIC_URL_FULL, ' ', 'https://pastebin.com/g3QzRiwg', '', ' class="postlink"') The problem I have now is that my rpi4 is no longer booting. I'm now unsure on how to fix because I don't understand what the root cause was. If anyone can point me out to sort it out that would be much appreciated.
Thanks.
			
				