* Help with 3.4.x compilation problem
@ 2010-04-29 1:11 Mick Jordan
2010-04-29 12:26 ` Keir Fraser
0 siblings, 1 reply; 3+ messages in thread
From: Mick Jordan @ 2010-04-29 1:11 UTC (permalink / raw)
To: xen-devel; +Cc: Derek.Murray
I am having a problem compiling a tools component of my variant of
mini-os against a 3.4.x source tree, having recently migrated from
3.1.4. The problem lies in the header file xenctrl.h, which contains
this (new from 3.1.4) code:
#if defined(__i386__) || defined(__x86_64__)
#include <xen/foreign/x86_32.h>
#include <xen/foreign/x86_64.h>
#endif
Now, this look extremely dubious to me as both 32 and 64 bit headers are
not usually included at the same time, but the immediate problem is that
the headers cannot be found:
[ -e xen ] || ln -sf /import/xen/xen-3.4.2/xen/include/public xen
gcc -DPIC -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF
.db-xenbus.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror
-Wno-unused -fno-strict-aliasing -I /import/xen/xen-3.4.2/tools/libxc -I
/import/xen/xen-3.4.2/tools/xenstore -I. -D_GNU_SOURCE
-Wp,-MD,.db-xenbus.opic.d -fPIC -c -o db-xenbus.opic db-xenbus.c
gcc -DPIC -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF
.db-frontend.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror
-Wno-unused -fno-strict-aliasing -I /import/xen/xen-3.4.2/tools/libxc -I
/import/xen/xen-3.4.2/tools/xenstore -I. -D_GNU_SOURCE
-Wp,-MD,.db-frontend.opic.d -fPIC -c -o db-frontend.opic db-frontend.c
In file included from db-frontend.c:42:
/import/xen/xen-3.4.2/tools/libxc/xenctrl.h:36:32: error:
xen/foreign/x86_32.h: No such file or directory
/import/xen/xen-3.4.2/tools/libxc/xenctrl.h:37:32: error:
xen/foreign/x86_64.h: No such file or directory
I've searched the source tree and indeed cannot find any directory named
foreign. However, I can find some directories containing the pattern
foreign, e.g., tools/include/xen-foreign, so I am guessing that some
symbolic link hackery is done in a normal build that sets this up. I say
"normal" because, for various reasons, I do not build my mini-os variant
inside the Xen tree but rather refer to it via an environment variable.
This worked fine in 3.1.4.
Times like this I wish there was a developer's manual.
Thanks for any help.
Mick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with 3.4.x compilation problem
2010-04-29 1:11 Help with 3.4.x compilation problem Mick Jordan
@ 2010-04-29 12:26 ` Keir Fraser
2010-04-30 2:58 ` Mick Jordan
0 siblings, 1 reply; 3+ messages in thread
From: Keir Fraser @ 2010-04-29 12:26 UTC (permalink / raw)
To: Mick Jordan, xen-devel@lists.xensource.com; +Cc: Derek.Murray@cl.cam.ac.uk
On 28/04/2010 18:11, "Mick Jordan" <mick.jordan@oracle.com> wrote:
>
> I've searched the source tree and indeed cannot find any directory named
> foreign. However, I can find some directories containing the pattern
> foreign, e.g., tools/include/xen-foreign, so I am guessing that some
> symbolic link hackery is done in a normal build that sets this up. I say
> "normal" because, for various reasons, I do not build my mini-os variant
> inside the Xen tree but rather refer to it via an environment variable.
> This worked fine in 3.1.4.
You need -I/import/xen/xen-3.4.2/tools/include in your CFLAGS, and at some
point previously you need to have done 'make' inside that directory, in
order to have set up the necessary symlinks.
-- Keir
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with 3.4.x compilation problem
2010-04-29 12:26 ` Keir Fraser
@ 2010-04-30 2:58 ` Mick Jordan
0 siblings, 0 replies; 3+ messages in thread
From: Mick Jordan @ 2010-04-30 2:58 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel@lists.xensource.com
On 04/29/10 05:26 AM, Keir Fraser wrote:
> You need -I/import/xen/xen-3.4.2/tools/include in your CFLAGS, and at some
> point previously you need to have done 'make' inside that directory, in
> order to have set up the necessary symlinks.
>
Thanks, that fixed the problem.
Now I have a follow-on question. Is there any support for privileged
domUs in Xen 3.4.0, in the sense of writing to another domain's xenstore
tree? The tool I want to use (a cross-domain Java VM debugger) needs to
be 64-bit, so it can't run in my current dom0, which is 32-bit. In my
previous Solaris xVM dom0/Linux domU world, I used to hack Xen and
remove the xenstore permission checks, but I'd really rather not do that
again.
Mick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-30 2:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 1:11 Help with 3.4.x compilation problem Mick Jordan
2010-04-29 12:26 ` Keir Fraser
2010-04-30 2:58 ` Mick Jordan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).