我正在尝试在Ubuntu 16.04版本上构建旧版本的QEMU(版本0.15.1)。
我使用此命令配置它:
./ configure --target-list = i386-linux-user,arm-linux-user --python =的/ usr /斌/ python2.7
当我跑步时#34;制作"命令,产生这些错误:
syscall.o:在函数
do_syscall': /home/asus/Thesis_project/old_qemu/qemu-0.15.1/linux-user/syscall.c:7841: undefined reference to
mq_timedreceive' /home/asus/Thesis_project/old_qemu/qemu-0.15.1/linux-user/syscall.c:7813: 对mq_unlink' /home/asus/Thesis_project/old_qemu/qemu-0.15.1/linux-user/syscall.c:7824: undefined reference to
mq_timedsend'的未定义引用syscall.o:在功能中mq_open': /usr/include/x86_64-linux-gnu/bits/mqueue2.h:56: undefined reference to
mq_open' syscall.o:在函数do_syscall': /home/asus/Thesis_project/old_qemu/qemu-0.15.1/linux-user/syscall.c:7828: undefined reference to
mq_send' /home/asus/Thesis_project/old_qemu/qemu-0.15.1/linux-user/syscall.c:7845: 对mq_receive' /home/asus/Thesis_project/old_qemu/qemu-0.15.1/linux-user/syscall.c:7866: undefined reference to
mq_setattr'的未定义引用 /home/asus/Thesis_project/old_qemu/qemu-0.15.1/linux-user/syscall.c:7861: 未明确引用`mq_getattr' collect2:错误:ld返回1 退出状态Makefile:398:目标的配方' qemu-i386'失败 make [1]: * [qemu-i386]错误1 Makefile:84:目标配方 '子目录-I386-Linux的用户'失败了:* [subdir-i386-linux-user] 错误2
答案 0 :(得分:0)
我已将LIBS + = - lrt添加到Makefile.target文件中,现在它正在运行。 谢谢康拉德。