Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building Dom0 file system error
#1
I followed XZD user manual, Section 5.3, step 12 "Configure and build Xen Tools".  I got error when building Xen tools:


gcc  -O1 -fno-omit-frame-pointer  -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .xc_core_arm.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -D_GNU_SOURCE  -I../../xen/common/libelf -Werror -Wmissing-prototypes -I. -I./include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/include -pthread -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/libs/toollog/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/libs/evtchn/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/include -include /home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/config.h -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/libs/call/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/libs/foreignmemory/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/libs/gnttab/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/libs/gnttab/include -I/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc/../../tools/include  -c -o xc_core_arm.o xc_core_arm.c
In file included from xg_private.h:29:0,
                 from xc_core_arm.c:19:
xc_core_arm.c: In function ‘xc_core_arch_get_scratch_gpfn’:
xc_core_arm.c:104:21: error: ‘GUEST_GNTTAB_SIZE’ undeclared (first use in this function)
     XC_BUILD_BUG_ON(GUEST_GNTTAB_SIZE < XC_PAGE_SIZE);
                     ^
xc_private.h:77:48: note: in definition of macro ‘XC_BUILD_BUG_ON’
 #define XC_BUILD_BUG_ON(p) ({ _Static_assert(!(p), "!(" #p ")"); })
                                                ^
xc_core_arm.c:104:21: note: each undeclared identifier is reported only once for each function it appears in
     XC_BUILD_BUG_ON(GUEST_GNTTAB_SIZE < XC_PAGE_SIZE);
                     ^
xc_private.h:77:48: note: in definition of macro ‘XC_BUILD_BUG_ON’
 #define XC_BUILD_BUG_ON(p) ({ _Static_assert(!(p), "!(" #p ")"); })
                                                ^
xc_private.h:77:46: error: expression in static assertion is not an integer
 #define XC_BUILD_BUG_ON(p) ({ _Static_assert(!(p), "!(" #p ")"); })
                                              ^
xc_core_arm.c:104:5: note: in expansion of macro ‘XC_BUILD_BUG_ON’
     XC_BUILD_BUG_ON(GUEST_GNTTAB_SIZE < XC_PAGE_SIZE);
     ^
xc_core_arm.c:106:13: error: ‘GUEST_GNTTAB_BASE’ undeclared (first use in this function)
     *gpfn = GUEST_GNTTAB_BASE >> XC_PAGE_SHIFT;
             ^
make[4]: *** [xc_core_arm.o] Error 1
make[4]: Leaving directory `/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools/libxc'
make[2]: *** [subdir-install-libxc] Error 2
make[2]: Leaving directory `/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/lcc014/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src/tools'
make: *** [install-tools] Error 2

Where is GUEST_GNTTAB_BASE defined ?

This is the command (from user manual) that I used to build Xen tools:

lcc014@ubuntu:~/XenZynqDist-Beta_02_19_2016/XenZynqDist/components/apps/xen/xen-src$ make dist-tools CROSS_CO MPILE=aarch64-buildroot-linux-gnu- XEN_TARGET_ARCH=arm64 CONFIG_EARLY_PRINTK=ronaldo




Thanks,

Ching-Ho Cheng
Reply
#2
I am in the process of trying to reproduce your issue, currently on step 9, which could take a while.
Reply
#3
(02-26-2016, 01:51 PM)jarvis_roach Wrote: I am in the process of trying to reproduce your issue, currently on step 9, which could take a while.

Jarvis,

Thank you.

Ching-Ho
Reply
#4
Ching-Ho,

Is that extra space in CROSS_COMPILE an artifact of pasting to the forum?
Reply
#5
Ching-Ho,

You appear to have added a space in CROSS_COMPILE that shouldn't be there. First do a clean:


Code:
make distclean CROSS_COMPILE=aarch64-buildroot-linux-gnu- XEN_TARGET_ARCH=arm64 CONFIG_EARLY_PRINTK=ronaldo


Then try this for your command:


Code:
make dist-tools CROSS_COMPILE=aarch64-buildroot-linux-gnu- XEN_TARGET_ARCH=arm64 CONFIG_EARLY_PRINTK=ronaldo


Thanks,
Robbie VanVossen
Reply
#6
You may need to run the following command first if you still get errors:

make distclean
Reply
#7
Gentlemen,

Thank you.  I will try again with your instruction.

Ching-Ho

Gentlemen,

Step 12 successful with your instruction:

make distclean

./configure

make dist-tools


Thanks,

Ching-Ho
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)