【发布时间】:2015-06-09 09:38:22
【问题描述】:
我正在尝试在 ubuntu 15.04 64 位系统中安装 qemu-0.14.1。在给出 make 命令时,它会给出以下错误:
../slirp/misc.o:在函数memset':
/usr/include/x86_64-linux-gnu/bits/string3.h:86: warning: memset used with constant zero length parameter; this could be due to transposed parameters
../qemu-timer.o: In functiondynticks_start_timer'中:
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:862:未定义对timer_create'
../qemu-timer.o: In functiondynticks_rearm_timer'的引用:
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:901:未定义对timer_gettime'
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:914: undefined reference totimer_settime'的引用
../qemu-timer.o:在函数dynticks_stop_timer':
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:880: undefined reference totimer_delete'
collect2:错误:ld 返回 1 个退出状态
Makefile:347: 目标“qemu-system-arm”的配方失败
make[1]: * [qemu-system-arm] 错误 1
Makefile:84:目标“subdir-arm-softmmu”的配方失败
make: * [subdir-arm-softmmu] 错误 2
任何人都可以指导正确的步骤以及为什么此错误与计时器对象文件有关。
【问题讨论】:
-
您所看到的很可能是最近的工具链在编译有错误的代码方面不太宽容。您正在尝试使用 GCC 4.9 来构建与 GCC 4.6 同步的源代码。您可以尝试安装 GCC 4.6 并使用它进行构建。