markh794 / mhvtl

Linux based Virtual Tape Library
http://sites.google.com/site/linuxvtl2/
Other
139 stars 65 forks source link

The arm environment can not compile mhvtl #97

Open pitter2007 opened 2 years ago

pitter2007 commented 2 years ago
root@ubuntu18:~/mhvtl/kernel# make
./config.sh
make -C /lib/modules/5.4.0-115-generic/build M=/root/mhvtl/kernel modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-115-generic'
  CC [M]  /root/mhvtl/kernel/mhvtl.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
scripts/Makefile.build:270: recipe for target '/root/mhvtl/kernel/mhvtl.o' failed
make[2]: *** [/root/mhvtl/kernel/mhvtl.o] Error 2
make[2]: *** Deleting file '/root/mhvtl/kernel/mhvtl.o'
Makefile:1762: recipe for target '/root/mhvtl/kernel' failed
make[1]: *** [/root/mhvtl/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-115-generic'
Makefile:30: recipe for target 'default' failed
make: *** [default] Error 2
root@ubuntu18:~/mhvtl/kernel# dpkg -l | grep kernel
ii  flash-kernel                           3.98ubuntu11~18.04.2                arm64        utility to make certain embedded devices bootable
ii  kmod                                   24-1ubuntu3.5                       arm64        tools for managing Linux kernel modules
ii  libdrm-common                          2.4.101-2~18.04.1                   all          Userspace interface to kernel DRM services -- common files
ii  libdrm2:arm64                          2.4.101-2~18.04.1                   arm64        Userspace interface to kernel DRM services -- runtime
ii  linux-firmware                         1.173.21                            all          Firmware for Linux kernel drivers
ii  linux-generic                          4.15.0.156.145                      arm64        Complete Generic Linux kernel and headers
ii  linux-headers-4.15.0-156               4.15.0-156.163                      all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-156-generic       4.15.0-156.163                      arm64        Linux kernel headers for version 4.15.0 on ARMv8 SMP
ii  linux-headers-5.4.0-115-generic        5.4.0-115.129~18.04.1               arm64        Linux kernel headers for version 5.4.0 on ARMv8 SMP
ii  linux-headers-generic                  4.15.0.156.145                      arm64        Generic Linux kernel headers
ii  linux-hwe-5.4-headers-5.4.0-115        5.4.0-115.129~18.04.1               all          Header files related to Linux kernel version 5.4.0
ii  linux-image-4.15.0-156-generic         4.15.0-156.163                      arm64        Linux kernel image for version 4.15.0 on ARMv8 SMP
ii  linux-image-5.4.0-115-generic          5.4.0-115.129~18.04.1               arm64        Linux kernel image for version 5.4.0 on ARMv8 SMP
ii  linux-image-generic                    4.15.0.156.145                      arm64        Generic Linux kernel image
ii  linux-modules-4.15.0-156-generic       4.15.0-156.163                      arm64        Linux kernel extra modules for version 4.15.0 on ARMv8 SMP
ii  linux-modules-5.4.0-115-generic        5.4.0-115.129~18.04.1               arm64        Linux kernel extra modules for version 5.4.0 on ARMv8 SMP
ii  linux-modules-extra-4.15.0-156-generic 4.15.0-156.163                      arm64        Linux kernel extra modules for version 4.15.0 on ARMv8 SMP
ii  linux-modules-extra-5.4.0-115-generic  5.4.0-115.129~18.04.1               arm64        Linux kernel extra modules for version 5.4.0 on ARMv8 SMP
ii  rsyslog                                8.32.0-1ubuntu4                     arm64        reliable system and kernel logging daemon
root@ubuntu18:~/mhvtl/kernel# uname -i
aarch64
root@ubuntu18:~/mhvtl/kernel# ^C
root@ubuntu18:~/mhvtl/kernel# lsb
lsblk        lsb_release
root@ubuntu18:~/mhvtl/kernel# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic