大家编译QEMU for MINI2440 出过问题吗,为什么我会这样

内核编译和嵌入式产品的设计与开发
回复
pdlenovo
帖子: 232
注册时间: 2010-08-27 22:29

大家编译QEMU for MINI2440 出过问题吗,为什么我会这样

#1

帖子 pdlenovo » 2013-06-12 12:02

如题
最近 在研究嵌入式os 需要用虚拟机,qemu ,当然 仓库里的qemu-system-arm 本身可以虚拟很多板子,但就是不包含mini2440 然后qemu有个专门对于mini2440的分支,
我把它
git clone git://repo.or.cz/qemu/mini2440.git qemu 下来
然后:./configure --target-list=arm-softmmu
这都没问题:
然后:make -j4
编译到最后链接时出现如下问题:
AR arm-softmmu/libqemu.a
LINK arm-softmmu/qemu-system-arm
/usr/bin/ld: vl.o: undefined reference to symbol 'timer_settime@@GLIBC_2.3.3'
/usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO /lib/x86_64-linux-gnu/librt.so.1 so try adding it to the linker command line
/lib/x86_64-linux-gnu/librt.so.1: could not read symbols: 无效的操作
collect2: 错误: ld 返回 1
make[1]: *** [qemu-system-arm] 错误 1
make: *** [subdir-arm-softmmu] 错误 2

我的系统是 deepin-linux 12.12 64位 RC
先谢谢大家了!!
caodi117
帖子: 1
注册时间: 2010-11-05 23:31

Re: 大家编译QEMU for MINI2440 出过问题吗,为什么我会这样

#2

帖子 caodi117 » 2013-07-19 21:31

没有链接rt库
修改Makefile.target的第114行,修改为LIBS+=-lm -lrt
回复