Skip to contentSkip to conversation

missing libfdt header when cross-compiling xen-tools for arm32

DISCUSSION Jungnam Lee 1 participant 2 messages Dec 24, 2013 – Dec 27, 2013

lore
Share & tools
lore
#0 lore raw

hi all.

http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling
I followed the link above to cross-compile arm32 tools, but met errors below.

...
arm-linux-gnueabihf-gcc -O1 -fno-omit-frame-pointer -marm -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -D__XEN_TOOLS__ -MMD -MF .libxl_arm.o.d -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -Werror -Wno-format-zero-length -Wmissing-declarations -Wno-declaration-after-statement -Wformat-nonliteral -I. -fPIC -pthread -I/root/xen.git/tools/libxl/../../tools/libxc -I/root/xen.git/tools/libxl/../../tools/include -I/root/xen.git/tools/libxl/../../tools/libxc -I/root/xen.git/tools/libxl/../../tools/include -I/root/xen.git/tools/libxl/../../tools/xenstore -I/root/xen.git/tools/libxl/../../tools/include -I/root/xen.git/tools/libxl/../../tools/blktap2/control -I/root/xen.git/tools/libxl/../../tools/blktap2/include -I/root/xen.git/tools/libxl/../../tools/include -Wshadow -include /root/xen.git/tools/libxl/../../tools/config.h -c -o libxl_arm.o libxl_arm.c
libxl_arm.c:5:20: fatal error: libfdt.h: No such file or directory compilation terminated.
...

Should I include xen/include/xen/libfdt/libfdt.h manually? or did I miss something?

Regards,
Jungnam Lee.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 12 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jungnam Lee
Sent: Tuesday, December 24, 2013 3:47 PM
To: [email protected]
Subject: [Xen-devel] missing libfdt header when cross-compiling xen-tools for arm32

hi all.

http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling
I followed the link above to cross-compile arm32 tools, but met errors below.

Quoted 6 lines

...
libxl_arm.c:5:20: fatal error: libfdt.h: No such file or directory compilation terminated.
...

Should I include xen/include/xen/libfdt/libfdt.h manually? or did I miss something?

I thought I don't need libfdt-dev package because it does not have libfdt_env.h But it was a bug in raring package according to the link below
https://bugs.launchpad.net/ubuntu/+source/device-tree-compiler/+bug/1203916