Kernel Upgrades shall not fail silently while updating kernel with ZFS

Using the Manjaro Setting Manager I attempted to update to Kernel 5.9.3-1.
As shown below there is a problem with building the ZFS module (how to fix that?),
the more important issue that when the compiling of the ZFS module failed, the build process did not stop. It continued as if there was no error. It went a head and added the aberrant kernel to the grub boot menu.

The build should stop on an error, not silently continue as if nothing happened.

:: Running post-transaction hooks...

(1/5) Arming ConditionNeedsUpdate…

(2/5) Updating module dependencies…

(3/5) Install DKMS modules

==> dkms install --no-depmod -m zfs -v 0.8.5 -k 5.9.3-1-MANJARO

configure: error: in `/var/lib/dkms/zfs/0.8.5/build’:

configure: error: C compiler cannot create executables

See `config.log’ for more details

Error! Bad return status for module build on kernel: 5.9.3-1-MANJARO (x86_64)

Consult /var/lib/dkms/zfs/0.8.5/build/make.log for more information.

==> Warning, `dkms install --no-depmod -m zfs -v 0.8.5 -k
5.9.3-1-MANJARO’ returned 10

==> depmod 5.9.3-1-MANJARO

(4/5) Updating linux initcpios…

config.log:

It was created by zfs configure 0.8.5, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ /var/lib/dkms/zfs/0.8.5/build/configure --prefix=/usr
–with-config=kernel
–with-linux=/usr/lib/modules/5.9.3-1-MANJARO/build
–with-linux-obj=/usr/lib/modules/5.9.3-1-MANJARO/build --with-qat=

---------

Platform.

---------

hostname = Tux8
uname -m = x86_64
uname -r = 5.7.19-2-MANJARO
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Aug 28 20:22:12 UTC 2020

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

configure:3750: $? = 0
configure:3739: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr
–libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
–infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
–enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl
–with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit
–enable-cet=auto --enable-checking=release --enable-clocale=gnu
–enable-default-pie --enable-default-ssp
–enable-gnu-indirect-function --enable-gnu-unique-object
–enable-install-libiberty --enable-linker-build-id --enable-lto
–enable-multilib --enable-plugin --enable-shared
–enable-threads=posix --disable-libssp --disable-libstdcxx-pch
–disable-libunwind-exceptions --disable-werror
gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (GCC)
configure:3750: $? = 0
configure:3739: gcc -V >&5
gcc: error: unrecognized command-line option ‘-V’
gcc: fatal error: no input files
compilation terminated.
configure:3750: $? = 1
configure:3739: gcc -qversion >&5
gcc: error: unrecognized command-line option ‘-qversion’; did you mean
‘–version’?
gcc: fatal error: no input files
compilation terminated.
configure:3750: $? = 1
configure:3770: checking whether the C compiler works
configure:3792: gcc conftest.c >&5
gcc: fatal error: cannot execute ‘cc1’: execvp: No such file or directory
compilation terminated.
configure:3796: $? = 1
configure:3834: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME “zfs”
| #define PACKAGE_TARNAME “zfs”
| #define PACKAGE_VERSION “0.8.5”
| #define PACKAGE_STRING “zfs 0.8.5”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| #define ZFS_META_NAME “zfs”
| #define ZFS_META_VERSION “0.8.5”
| #define SPL_META_VERSION ZFS_META_VERSION
| #define ZFS_META_RELEASE “1”
| #define SPL_META_RELEASE ZFS_META_RELEASE
| #define ZFS_META_LICENSE “CDDL”
| #define ZFS_META_ALIAS “zfs-0.8.5-1”
| #define SPL_META_ALIAS ZFS_META_ALIAS
| #define ZFS_META_AUTHOR “OpenZFS on Linux”
| #define ZFS_META_KVER_MIN “2.6.32”
| #define ZFS_META_KVER_MAX “5.6”
| #define PACKAGE “zfs”
| #define VERSION “0.8.5”
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3839: error: in /var/lib/dkms/zfs/0.8.5/build': configure:3841: error: C compiler cannot create executables See config.log’ for more details