[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
This bug was fixed in the package fwts - 19.12.00-0ubuntu1 --- fwts (19.12.00-0ubuntu1) focal; urgency=medium [Colin Ian King] * efi_runtime: don't build dkms module for kernels 4.8.0 and above (LP: #1853090) * debian/tests: only run dkms test when dkms module is run * debugger: check for memory allocation failure on object Elements * debugger: fix spelling mistake "adress" -> "address" * cpu: microcode: remove redundant check on pointer entry * fwts_wakealarm: remove unused function fwts_wakealarm_exits [Erik Schmauss] * iASL: remove unneeded NULL checks -- Alex Hung Sun, 08 Dec 2019 22:01:38 -0700 ** Changed in: fwts (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
Fix(es) committed: https://kernel.ubuntu.com/git/hwe/fwts.git/commit/?id=4ab38cf18a5abf3264cd6ac1b12f23eaa012848e https://kernel.ubuntu.com/git/hwe/fwts.git/commit/?id=9af323d5f07b9a6768378a40b05e4b03a3361a7f ** Changed in: fwts (Ubuntu) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
@Colin, thank you very much. Verified with packages built in https://launchpad.net/~vicamo/+archive/ubuntu/bug-1853090. Would like to ACK the thread if I have had subscribed fwts-devel. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
Fix sent to fwts-devel for review. Once it is applied and released in fwts 19.12.00 I'll SRU this fix. See: https://lists.ubuntu.com/archives/fwts- devel/2019-November/011621.html ** Changed in: fwts (Ubuntu) Assignee: You-Sheng Yang (vicamo) => Colin Ian King (colin-king) ** Changed in: fwts (Ubuntu) Importance: Low => High ** Changed in: fwts (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
OK, found that dkms allows one to check for specific kernel versions. Attached is the dkms fix. ** Patch added: "dkms fix" https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+attachment/5306941/+files/0001-efi_runtime-don-t-build-dkms-module-for-kernels-4.8..patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
I propose that something like the following patch could be used to skip over dkms builds for fwts if the kernel module is built-in to a specific kernel version. I've not tried this in a final a packaged version of fwts, so I'm not 100% sure it will work, but it's a starting point. ** Patch added: "potential workaround fix" https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+attachment/5306741/+files/efi_runtime_makefile.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
Basically, don't build the dkms module if it's already provided as a kernel module, e.g. check if /lib/modules/$(uname -r)/kernel/drivers/firmware/efi/test/efi_test.ko exists, if so, don't build a kernel module with dkms. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
It will not pass the build process with newer kernel headers and older incompatible versions of gcc. So I guess we are down to it should not be built against recent kernels. I reluctantly think that is the only way forward. But, this said, it is not a driver issue, or a kernel issue, it's an issue with using an older toolchain building a driver against headers that won't build with that version of gcc (if I am correct on that assertion). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
Either that module should not be built against recent kernels on Bionic, or it should pass the build process. ** Changed in: fwts (Ubuntu) Status: Won't Fix => Confirmed ** Changed in: fwts (Ubuntu) Assignee: Colin Ian King (colin-king) => You-Sheng Yang (vicamo) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
** Changed in: fwts (Ubuntu) Status: In Progress => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
The kernel module for fwts discussed in #8 is as below. filename: /lib/modules/5.0.0-36-generic/kernel/drivers/firmware/efi/test/efi_test.ko license:GPL description:EFI Test Driver author: Ivan Hu srcversion: 2FED4AC2FE8B461267F9F7F depends: retpoline: Y intree: Y name: efi_test vermagic: 5.0.0-36-generic SMP mod_unload signat: PKCS#7 signer: sig_key: -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
Building any kernel related modules with older versions of gcc-7 can be problematic because of the linux headers. I'm note sure of a way to fix this as it's predicated on the kernel being built with a more recent compiler. However, newer kernels do have the fwts kernel driver built in, so the dkms module is not required. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
Indeed. As you may have seen I was compiling this on Bionic, because QA is installing a backport version of latest fwts for testing OEM projects, which are all currently based on Bionic and using gcc-7. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
I've tried this out with 5.4-rc1, rc7 and rc8 from the same PPA on focal and it works for me. Perhaps you are using a version of GCC on an older release that won't build against those kernel headers. cking@focal-amd64-efi:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu Focal Fossa (development branch) Release:20.04 Codename: focal cking@focal-amd64-efi:~$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:hsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.2.1-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 9.2.1 20191109 (Ubuntu 9.2.1-19ubuntu1) cking@focal-amd64-efi:~$ sudo apt-get install fwts-efi-runtime-dkms Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libfdt1 libfwts1 libfwtsacpica1 libfwtsiasl1 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed fwts-efi-runtime-dkms 0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade. Need to get 0 B/13.4 kB of archives. After this operation, 103 kB of additional disk space will be used. Selecting previously unselected package fwts-efi-runtime-dkms. (Reading database ... 258496 files and directories currently installed.) Preparing to unpack .../fwts-efi-runtime-dkms_19.11.00-0ubuntu1_amd64.deb ... Unpacking fwts-efi-runtime-dkms (19.11.00-0ubuntu1) ... Setting up fwts-efi-runtime-dkms (19.11.00-0ubuntu1) ... Loading new fwts-efi-runtime-dkms-19.11.00 DKMS files... Building for 5.4.0-5-generic 5.4.0-050400rc8-generic Building initial module for 5.4.0-5-generic Secure Boot not enabled on this system. Done. efi_runtime.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.4.0-5-generic/updates/dkms/ depmod... DKMS: install completed. Building initial module for 5.4.0-050400rc8-generic Secure Boot not enabled on this system. Done. efi_runtime.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.4.0-050400rc8-generic/updates/dkms/ depmod... DKMS: install completed. cking@focal-amd64-efi:~$ ls /var/lib/initramfs-tools | sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start * dkms: running auto installation service for kernel 5.2.0-8-generic Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... KVER=5.2.0-8-generic make Signing module: - /var/lib/dkms/fwts-efi-runtime-dkms/19.11.00/5.2.0-8-generic/x86_64/module/efi_runtime.ko Secure Boot not enabled on this system. cleaning build area... DKMS: build completed. efi_runtime.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.2.0-8-generic/updates/dkms/ depmod. DKMS: install completed. [ OK ] * dkms: running auto installation service for kernel 5.3.0-18-generic Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... KVER=5.3.0-18-generic make Signing module: - /var/lib/dkms/fwts-efi-runtime-dkms/19.11.00/5.3.0-18-generic/x86_64/module/efi_runtime.ko Secure Boot not enabled on this system. cleaning build area... DKMS: build completed. efi_runtime.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.3.0-18-generic/updates/dkms/ depmod. DKMS: install
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
We have not seen this issue as it builds fine against the current -unstable ubuntu 5.4.0-5-generic kernel with the ubuntu focal configs. I'll dig into this further for the ppa/mainline kernels. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
I've checked this also fails on latest v5.4-rc8. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
Actually, I'll double check this with the lastest 5.4 kernel. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853090] Re: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors
fwts builds on non-rc 5.4 kernels. I believe the issue you are seeing is an issue with the kernel header file and not the fwts dkms module, so this is not fixable. ** Changed in: fwts (Ubuntu) Status: Confirmed => Won't Fix ** Changed in: fwts (Ubuntu) Importance: Undecided => Low ** Changed in: fwts (Ubuntu) Assignee: (unassigned) => Colin Ian King (colin-king) ** Changed in: fwts (Ubuntu) Status: Won't Fix => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853090 Title: failed to build DKMS fwts-efi-runtime-dkms/19.11.00 against v5.4-rc1 and on: numerous compile errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs