I?ve made some code changes to Qemu, and it builds, but I?m getting
undefined symbols when it tries to link:
LINK ppc64-softmmu/qemu-system-ppc64
Undefined symbols for architecture x86_64:
"_AT", referenced from:
_voodoo_readl in vga-pci.o
(maybe you meant: __TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_DSTATE,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_TIMEOUT_DSTATE ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_SKIPPED_EVENT ,
__TRACE_VFIO_QUIRK_ATI_3C3_PROBE_EVENT ,
__TRACE_VFIO_QUIRK_ATI_BAR4_PROBE_DSTATE ,
__TRACE_QXL_INTERFACE_ATTACH_WORKER_DSTATE ,
__TRACE_QXL_INTERFACE_ATTACH_WORKER_EVENT ,
__TRACE_VIRTIO_GPU_CMD_CTX_RES_ATTACH_DSTATE ,
__TRACE_VIRTIO_GPU_CMD_RES_BACK_ATTACH_EVENT ,
__TRACE_VFIO_QUIRK_ATI_3C3_READ_EVENT ,
__TRACE_USB_EHCI_PORT_ATTACH_EVENT ,
__TRACE_USB_OHCI_PORT_ATTACH_EVENT ,
__TRACE_V9FS_ATTACH_RETURN_DSTATE ,
__TRACE_VFIO_QUIRK_ATI_BAR2_PROBE_DSTATE ,
__TRACE_USB_HUB_ATTACH_EVENT ,
__TRACE_VFIO_QUIRK_ATI_3C3_READ_DSTATE ,
__TRACE_LOCKCNT_UNLOCK_ATTEMPT_EVENT ,
__TRACE_LOCKCNT_FAST_PATH_ATTEMPT_DSTATE ,
__TRACE_LOCKCNT_FAST_PATH_ATTEMPT_EVENT ,
__TRACE_SPAPR_DRC_ATTACH_EVENT , __TRACE_USB_PORT_ATTACH_EVENT ,
__TRACE_V9FS_ATTACH_RETURN_EVENT ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_TIMEOUT_EVENT ,
__TRACE_VFIO_QUIRK_ATI_3C3_PROBE_DSTATE ,
__TRACE_USB_HOST_ATTACH_KERNEL_DSTATE ,
__TRACE_USB_HUB_ATTACH_DSTATE ,
__TRACE_USB_EHCI_PORT_ATTACH_DSTATE ,
__TRACE_USB_PORT_ATTACH_DSTATE ,
_sense_code_UNIT_ATTENTION_NO_MEDIUM ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_DONE_DSTATE ,
__TRACE_V9FS_ATTACH_DSTATE ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_DONE_EVENT ,
__TRACE_USB_HOST_ATTACH_KERNEL_EVENT ,
__TRACE_VIRTIO_GPU_CMD_CTX_RES_ATTACH_EVENT ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_SKIPPED_DSTATE ,
__TRACE_USB_OHCI_PORT_ATTACH_DSTATE ,
__TRACE_VIRTIO_GPU_CMD_RES_BACK_ATTACH_DSTATE ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_NO_SMC_DSTATE ,
__TRACE_VFIO_QUIRK_ATI_BAR4_PROBE_EVENT ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_NO_SMC_EVENT ,
__TRACE_VFIO_QUIRK_ATI_BAR2_PROBE_EVENT ,
__TRACE_LOCKCNT_UNLOCK_ATTEMPT_DSTATE , __TRACE_V9FS_ATTACH_EVENT ,
__TRACE_VFIO_QUIRK_ATI_BONAIRE_RESET_EVENT ,
__TRACE_SPAPR_DRC_ATTACH_DSTATE )
"_TIMER_USEC", referenced from:
_voodoo_callback in vga-pci.o
_voodoo_readl in vga-pci.o
_voodoo_writew in vga-pci.o
_voodoo_writel in vga-pci.o
"_buffer32", referenced from:
_voodoo_callback in vga-pci.o
"_cpuclock", referenced from:
_voodoo_writel in vga-pci.o
_voodoo_speed_changed in vga-pci.o
"_device_get_config_int", referenced from:
_voodoo_init in vga-pci.o
"_fatal", referenced from:
_voodoo_readl in vga-pci.o
_voodoo_writel in vga-pci.o
_fifo_thread in vga-pci.o
_voodoo_recalc in vga-pci.o
_voodoo_reg_writel in vga-pci.o
_voodoo_fb_writel in vga-pci.o
_blit_start in vga-pci.o
...
(maybe you meant: _error_fatal)
"_mem_mapping_add", referenced from:
_voodoo_init in vga-pci.o
"_mem_mapping_disable", referenced from:
_voodoo_pci_write in vga-pci.o
"_mem_mapping_set_addr", referenced from:
_voodoo_pci_write in vga-pci.o
"_pci_add", referenced from:
_voodoo_init in vga-pci.o
(maybe you meant: _pci_add_capability, _pci_add_capability2 ,
_pci_address_space_io , _pci_address_space )
"_pci_burst_time", referenced from:
_voodoo_writel in vga-pci.o
_voodoo_speed_changed in vga-pci.o
"_pci_nonburst_time", referenced from:
_voodoo_writel in vga-pci.o
_voodoo_speed_changed in vga-pci.o
"_pclog", referenced from:
_voodoo_pci_write in vga-pci.o
_voodoo_writel in vga-pci.o
_fifo_thread in vga-pci.o
_voodoo_reg_writel in vga-pci.o
"_romfopen", referenced from:
_voodoo_close in vga-pci.o
"_svga_add_status_info", referenced from:
_voodoo_add_status_info in vga-pci.o
"_svga_doblit", referenced from:
_voodoo_callback in vga-pci.o
"_svga_get_pri", referenced from:
_voodoo_init in vga-pci.o
"_svga_set_override", referenced from:
_voodoo_writel in vga-pci.o
"_thread_create_event", referenced from:
_voodoo_init in vga-pci.o
"_thread_destroy_event", referenced from:
_voodoo_close in vga-pci.o
"_thread_kill", referenced from:
_voodoo_close in vga-pci.o
"_thread_reset_event", referenced from:
_voodoo_writew in vga-pci.o
_voodoo_writel in vga-pci.o
_fifo_thread in vga-pci.o
_wait_for_swap_complete in vga-pci.o
_queue_triangle in vga-pci.o
_render_thread in vga-pci.o
"_thread_set_event", referenced from:
_voodoo_callback in vga-pci.o
_voodoo_readw in vga-pci.o
_voodoo_readl in vga-pci.o
_fifo_thread in vga-pci.o
_voodoo_wake_timer in vga-pci.o
_voodoo_reg_writel in vga-pci.o
_voodoo_tex_writel in vga-pci.o
...
"_thread_wait_event", referenced from:
_voodoo_readw in vga-pci.o
_voodoo_readl in vga-pci.o
_voodoo_writew in vga-pci.o
_voodoo_writel in vga-pci.o
_fifo_thread in vga-pci.o
_voodoo_reg_writel in vga-pci.o
_voodoo_tex_writel in vga-pci.o
...
"_timer_add", referenced from:
_voodoo_init in vga-pci.o
"_timer_count", referenced from:
_voodoo_readl in vga-pci.o
"_timer_freq", referenced from:
_voodoo_add_status_info in vga-pci.o
"_timer_one", referenced from:
_voodoo_init in vga-pci.o
"_timer_process", referenced from:
_voodoo_readl in vga-pci.o
_voodoo_writew in vga-pci.o
_voodoo_writel in vga-pci.o
"_timer_read", referenced from:
_fifo_thread in vga-pci.o
_voodoo_add_status_info in vga-pci.o
_render_thread in vga-pci.o
"_timer_start", referenced from:
_voodoo_readl in vga-pci.o
"_timer_update_outstanding", referenced from:
_voodoo_readl in vga-pci.o
_voodoo_writew in vga-pci.o
_voodoo_writel in vga-pci.o
"_video_wait_for_buffer", referenced from:
_voodoo_callback in vga-pci.o
"_xt_cpu_multi", referenced from:
_voodoo_readl in vga-pci.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [qemu-system-ppc64] Error 1
make: *** [subdir-ppc64-softmmu] Error 2
I?m not sure if it?s an issue where I need to build my code changes
to be i386, but I?m trying to pin down the problem.