Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I build the kernel, i encounter undefined reference problem #1

Open
Don-James-shrinp opened this issue Oct 16, 2023 · 1 comment

Comments

@Don-James-shrinp
Copy link

I run the commands mentioned in the paper:

cd FragVisor/fragvisor−linux
make -j17

then i encountered the problem as below

./arch/x86/include/asm/bitops.h: Assembler messages:
./arch/x86/include/asm/bitops.h:216: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/mounts.o
  LD      init/built-in.o
ld: warning: arch/x86/built-in.o: requires executable stack (because the .note.GNU-stack section is executable)
ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions
ld: arch/x86/built-in.o: in function `smp_popcorn_kmsg_interrupt':
(.text+0x34364): undefined reference to `popcorn_handle_virtio_blk_iowrite'
ld: arch/x86/built-in.o: in function `smp_trace_popcorn_kmsg_interrupt':
(.text+0x3439a): undefined reference to `popcorn_handle_virtio_blk_iowrite'
ld: kernel/built-in.o: in function `vma_server_init':
(.text+0xc86cb): undefined reference to `first'
ld: (.text+0xc86d2): undefined reference to `first'
ld: kernel/built-in.o: in function `process_recvmsg_delegate_request':
hype_kvm.c:(.text+0xcef0b): undefined reference to `khype_vhost_recvmsg_delegate'
ld: kernel/built-in.o: in function `process_peek_head_len_request':
hype_kvm.c:(.text+0xcefb4): undefined reference to `khype_service_peek_head_len'
ld: kernel/built-in.o: in function `process_rx_notification_request':
hype_kvm.c:(.text+0xcf02c): undefined reference to `khype_handle_rx'
ld: kernel/built-in.o: in function `process_tunfd_delegate_request':
hype_kvm.c:(.text+0xcf097): undefined reference to `khype_vhost_tunfd_delegate'
ld: kernel/built-in.o: in function `process_eventfd_delegate_request':
hype_kvm.c:(.text+0xcf231): undefined reference to `hype_eventfd_info'
ld: hype_kvm.c:(.text+0xcf286): undefined reference to `hype_eventfd_info'
ld: kernel/built-in.o: in function `process_remote_kvm_create_request':
hype_kvm.c:(.text+0xcf303): undefined reference to `replay_kvm_dev_ioctl_create_vm_tsk'
ld: kernel/built-in.o: in function `process_ipi_request':
hype_kvm.c:(.text+0xcf5ae): undefined reference to `popcorn_apic_inject_ipi'
ld: hype_kvm.c:(.text+0xcf602): undefined reference to `popcorn_kvm_apic_set_irq'
ld: kernel/built-in.o: in function `process_origin_broadcast_apic_reg_write_request':
hype_kvm.c:(.text+0xcf6c4): undefined reference to `popcorn_apic_reg_write'
ld: kernel/built-in.o: in function `process_update_vcpu_request':
hype_kvm.c:(.text+0xcfa47): undefined reference to `pophype_dump_vmcs'
ld: hype_kvm.c:(.text+0xcfacb): undefined reference to `kvm_arch_vcpu_load'
ld: hype_kvm.c:(.text+0xcfad0): undefined reference to `pophype_dump_vmcs'
ld: hype_kvm.c:(.text+0xcfadf): undefined reference to `kvm_arch_vcpu_ioctl_set_sregs'
ld: hype_kvm.c:(.text+0xcfaf3): undefined reference to `kvm_arch_vcpu_ioctl_set_regs'
ld: hype_kvm.c:(.text+0xcfb03): undefined reference to `pophype_do_set_msr'
ld: hype_kvm.c:(.text+0xcfb08): undefined reference to `pophype_msr_io'
ld: hype_kvm.c:(.text+0xcfb1c): undefined reference to `pophype_vcpu_ioctl_x86_set_xcrs'
ld: hype_kvm.c:(.text+0xcfb28): undefined reference to `kvm_arch_vcpu_ioctl_set_mpstate'
ld: hype_kvm.c:(.text+0xcfb34): undefined reference to `pophype_vcpu_ioctl_set_lapic'
ld: hype_kvm.c:(.text+0xcfb48): undefined reference to `kvm_arch_vcpu_ioctl_set_fpu'
ld: hype_kvm.c:(.text+0xcfb54): undefined reference to `pophype_vcpu_ioctl_x86_set_xsave'
ld: hype_kvm.c:(.text+0xcfb68): undefined reference to `pophype_vcpu_ioctl_x86_set_vcpu_events'
ld: hype_kvm.c:(.text+0xcfb78): undefined reference to `kvm_arch_vcpu_put'
ld: kernel/built-in.o: in function `pophype_show_guest_rip_rsp':
(.text+0xd04da): undefined reference to `kvm_arch_vcpu_ioctl_get_regs'
ld: kernel/built-in.o: in function `eventfd_ctx_to_fd':
(.text+0xd08a5): undefined reference to `hype_eventfd_info'
ld: kernel/built-in.o: in function `eventfd_fd_to_ctx':
(.text+0xd08e1): undefined reference to `hype_eventfd_info'
ld: (.text+0xd0917): undefined reference to `hype_eventfd_info'
ld: kernel/built-in.o: in function `SyS_pophype_migrate_on_hostusr':
(.text+0xd0c29): undefined reference to `pophype_save_vcpu_states'
ld: kernel/built-in.o: in function `SyS_pophype_vcpu_migrate_trigger':
(.text+0xd0c81): undefined reference to `kvm_vcpu_kick'
ld: (.text+0xd0c8e): undefined reference to `kvm_vcpu_kick'
ld: (.text+0xd0c9b): undefined reference to `kvm_vcpu_kick'
ld: (.text+0xd0ca8): undefined reference to `kvm_vcpu_kick'
ld: (.text+0xd0cb5): undefined reference to `kvm_vcpu_kick'
ld: (.text+0xd0d47): undefined reference to `kvm_arch_vcpu_should_kick'
ld: kernel/built-in.o: in function `popcorn_update_remote_vcpu':
(.text+0xd12f3): undefined reference to `is_saved_vcpu'
ld: (.text+0xd1401): undefined reference to `pophype_dump_vmcs'
ld: (.text+0xd140a): undefined reference to `pophype_get_mp_state'
ld: (.text+0xd1417): undefined reference to `pophype_get_regs'
ld: (.text+0xd1424): undefined reference to `pophype_get_sregs'
ld: (.text+0xd1431): undefined reference to `pophype_get_fpu'
ld: (.text+0xd143e): undefined reference to `pophype_get_xcrs'
ld: (.text+0xd144b): undefined reference to `pophype_get_lapic'
ld: (.text+0xd1457): undefined reference to `pophype_get_xsave'
ld: (.text+0xd1464): undefined reference to `pophype_get_vcpu_event'
ld: (.text+0xd1470): undefined reference to `pophype_get_msrs'
ld: kernel/built-in.o: in function `delegate_net_msg_tx':
(.text+0xd18d7): undefined reference to `kvm_arch_vcpu_ioctl_translate'
ld: (.text+0xd1907): undefined reference to `kvm_vcpu_gfn_to_hva'
ld: kernel/built-in.o: in function `delegate_skb_tx':
(.text+0xd1da5): undefined reference to `kvm_arch_vcpu_ioctl_translate'
ld: (.text+0xd1dce): undefined reference to `kvm_vcpu_gfn_to_hva'
make: *** [Makefile:964: vmlinux] Error 1
@Don-James-shrinp Don-James-shrinp changed the title When I build the kernel, i met undefined reference problem When I build the kernel, i encounter undefined reference problem Oct 16, 2023
@kirchhoff
Copy link

Can anyone help to fix it? I encounter the same problem.

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

No branches or pull requests

2 participants