Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

[Ubuntu 21.04] Failed to create make's target "targz-pkg" #5

Open
pklimowx opened this issue Jun 23, 2021 · 1 comment
Open

[Ubuntu 21.04] Failed to create make's target "targz-pkg" #5

pklimowx opened this issue Jun 23, 2021 · 1 comment

Comments

@pklimowx
Copy link

I followed the instruction in README and install gpu kernel successfully on various OSes. However, I cannot accomplish that on Ubuntu 21.04.

I've installed the following packages:

- build-essential
- git
- gcc
- bison
- flex
- libssl-dev
- libelf-dev
- make
- tar
- bc
- cpio
- openssl
- liblz4-tool

also, I've made some changes in the kernel config file (thanks to these changes I can install gpu kernel on both CentOS and RHEL, errors were similar so I've given it a try for Ubuntu 21.04 as well):

CONFIG_SYSTEM_TRUSTED_KEYS=""
#CONFIG_DEBUG_INFO_BTF
CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=4096
CONFIG_SECONDARY_TRUSTED_KEYRING=y

Sadly, this is not enough as errors occurred during building targz-pkg target:

STDERR:

arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table
gmake[4]: *** [scripts/Makefile.build:348: arch/x86/entry/thunk_64.o] Error 1
gmake[4]: *** Deleting file 'arch/x86/entry/thunk_64.o'
gmake[4]: *** Waiting for unfinished jobs....
arch/x86/hyperv/hv_apic.c: In function ‘__send_ipi_one’:
arch/x86/hyperv/hv_apic.c:201:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  201 | }
      | ^
arch/x86/hyperv/hv_apic.c: In function ‘hv_send_ipi_mask_allbutself’:
arch/x86/hyperv/hv_apic.c:226:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  226 | }
      | ^
arch/x86/kernel/cpu/mce/core.o: warning: objtool: mce_panic()+0x11a: unreachable instruction
gmake[3]: *** [scripts/Makefile.build:500: arch/x86/entry] Error 2
gmake[3]: *** Waiting for unfinished jobs....
drivers/atm/horizon.o: warning: objtool: interrupt_handler()+0x1bb: unreachable instruction
kernel/exit.o: warning: objtool: __x64_sys_exit_group()+0x18: unreachable instruction
fs/btrfs/extent_io.o: warning: objtool: __set_extent_bit.cold()+0xb: unreachable instruction
drivers/cpufreq/cpufreq_ondemand.c: In function ‘od_set_powersave_bias’:
drivers/cpufreq/cpufreq_ondemand.c:446:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  446 | }
      | ^
fs/btrfs/relocation.o: warning: objtool: update_backref_cache.part.0()+0x1eb: unreachable instruction
net/core/skbuff.o: warning: objtool: skb_push.cold()+0x14: unreachable instruction
fs/jffs2/xattr.c: In function ‘jffs2_build_xattr_subsystem’:
fs/jffs2/xattr.c:887:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  887 | }
      | ^
arch/x86/kernel/smpboot.o: warning: objtool: native_play_dead()+0x11d: unreachable instruction
arch/x86/kernel/kvm.c: In function ‘kvm_send_ipi_mask_allbutself’:
arch/x86/kernel/kvm.c:503:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  503 | }
      | ^
gmake[2]: *** [Makefile:1706: arch/x86] Error 2
gmake[2]: *** Waiting for unfinished jobs....
drivers/message/fusion/mptbase.o: warning: objtool: mpt_HardResetHandler()+0x203: unreachable instruction
drivers/misc/sgi-gru/grukservices.o: warning: objtool: gru_wait_abort_proc()+0x4e: unreachable instruction
drivers/net/ethernet/neterion/vxge/vxge-main.c: In function ‘VXGE_COMPLETE_VPATH_TX’:
drivers/net/ethernet/neterion/vxge/vxge-main.c:119:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  119 | }
      | ^
drivers/scsi/aic7xxx/aic79xx_core.o: warning: objtool: ahd_intr.part.0()+0x110: unreachable instruction
drivers/vhost/scsi.c: In function ‘vhost_scsi_flush’:
drivers/vhost/scsi.c:1374:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 1374 | }
      | ^
drivers/vhost/vhost.c: In function ‘log_used.isra’:
drivers/vhost/vhost.c:1931:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 1931 | }
      | ^
drivers/usb/misc/usbtest.c: In function ‘test_queue’:
drivers/usb/misc/usbtest.c:2148:1: warning: the frame size of 1192 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 2148 | }
      | ^
drivers/scsi/pcmcia/aha152x_core.o: warning: objtool: run()+0x4c7: unreachable instruction
drivers/scsi/lpfc/lpfc_init.c: In function ‘lpfc_cpuhp_get_eq’:
drivers/scsi/lpfc/lpfc_init.c:11029:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
11029 | }
      | ^
gmake[1]: *** [scripts/Makefile.package:109: targz-pkg] Error 2
gmake: *** [Makefile:1441: targz-pkg] Error 2

Any help appreciated.

@pklimowx
Copy link
Author

After applying that patch everything is working fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant