xen单独编译

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

xen单独编译

Jump to solution
2,166 Views
errenliaoyi
Contributor I

你好,我用i.MX Virtualization User's Guide.pdf文档中的链接(https://source.codeaurora.org/external/imx/imx-xen/log/?h=imx_4.14.98_2.0.0_ga)下载了xen,现在不想用yocto编译,想单独编译xen,执行sudo ./configure时会警告fig2dev、pandoc、markdown不可用,然后执行sudo make world的时候会报错。请问这个问题有什么解决方案吗?

make dist
make[1]: Entering directory '/home/zhangjw/xen_test/imx-xen'
make -C xen install
make[2]: Entering directory '/home/zhangjw/xen_test/imx-xen/xen'
make -f /home/zhangjw/xen_test/imx-xen/xen/tools/kconfig/Makefile.kconfig ARCH=x86_64 SRCARCH=x86 HOSTCC="" HOSTCXX="g++" silentoldconfig
make[3]: Entering directory '/home/zhangjw/xen_test/imx-xen/xen'
Wp,-MD,tools/kconfig/.conf.o.d -D_GNU_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE -DKBUILD_NO_NLS -c -o tools/kconfig/conf.o tools/kconfig/conf.c
/bin/sh: 1: Wp,-MD,tools/kconfig/.conf.o.d: not found
tools/kconfig/Makefile.host:108: recipe for target 'tools/kconfig/conf.o' failed
make[3]: [tools/kconfig/conf.o] Error 127 (ignored)
Wp,-MD,tools/kconfig/.zconf.tab.o.d -D_GNU_SOURCE -DCURSES_LOC="<ncurses.h>" -DLOCALE -DKBUILD_NO_NLS -Itools/kconfig -c -o tools/kconfig/zconf.tab.o tools/kconfig/zconf.tab.c
/bin/sh: 1: Wp,-MD,tools/kconfig/.zconf.tab.o.d: not found
tools/kconfig/Makefile.host:108: recipe for target 'tools/kconfig/zconf.tab.o' failed
make[3]: [tools/kconfig/zconf.tab.o] Error 127 (ignored)
o tools/kconfig/conf tools/kconfig/conf.o tools/kconfig/zconf.tab.o
make[3]: o: Command not found
tools/kconfig/Makefile.host:100: recipe for target 'tools/kconfig/conf' failed
make[3]: [tools/kconfig/conf] Error 127 (ignored)
tools/kconfig/conf -s --silentoldconfig Kconfig
make[3]: tools/kconfig/conf: Command not found
tools/kconfig/Makefile:37: recipe for target 'silentoldconfig' failed
make[3]: *** [silentoldconfig] Error 127
make[3]: Leaving directory '/home/zhangjw/xen_test/imx-xen/xen'
Makefile:260: recipe for target 'include/config/auto.conf' failed
make[2]: *** [include/config/auto.conf] Error 2
make[2]: Leaving directory '/home/zhangjw/xen_test/imx-xen/xen'
Makefile:123: recipe for target 'install-xen' failed
make[1]: *** [install-xen] Error 2
make[1]: Leaving directory '/home/zhangjw/xen_test/imx-xen'
Makefile:164: recipe for target 'world' failed
make: *** [world] Error 2

0 Kudos
Reply
1 Solution
2,083 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

redefine错误,你试试把其中一个删掉呢

View solution in original post

0 Kudos
Reply
6 Replies
2,148 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

你是用的yocto导出sdk中的gcc进行编译的吗?

0 Kudos
Reply
2,132 Views
errenliaoyi
Contributor I

你好,我把gcc升级到了7.3.0版本,用make world编译,编译结果和昨天是一样的报错。用sudo make world CROSS_COMPILE=aarch64-linux-gnu- XEN_TARGET_ARCH=arm64编译,编译报错有未定义的引用。麻烦在帮忙看一下把谢谢。CROSS_COMPILE=aarch64-linux-gnu-用的是gcc-linaro-5.5.0

make world.png

sudo make world CROSS_COMPILE=aarch64-linux-gnu- XEN_TARGET_ARCH=arm64.png

  

0 Kudos
Reply
2,126 Views
errenliaoyi
Contributor I

你好,我把 gcc 升级到 7.3.0,用make world 命令编译报错和以前是一样的,用sudo make world CROSS_COMPILE=aarch64-linux-gnu- XEN_TARGET_ARCH=arm64 命令编译报错有一些未定义的提示。麻烦你再帮忙看一下谢谢

make world.png

sudo make world CROSS_COMPILE=aarch64-linux-gnu- XEN_TARGET_ARCH=arm64.png

gcc-v.png

   

 

0 Kudos
Reply
2,122 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
2,093 Views
ruisb
Contributor I

您好,

我们已经按以上说明导出了sdk并使用sdk中的gcc进行了编译,编译命令为make world CROSS_COMPILE=aarch64-poky-linux- XEN_TARGET_ARCH=arm64,依然无法编译通过,请帮忙看看是什么问题,多谢!

Snipaste_2021-12-06_15-08-48.png

0 Kudos
Reply
2,084 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

redefine错误,你试试把其中一个删掉呢

0 Kudos
Reply