Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Building Xen 4.2 on NetBSD (was Re: block-attach/detach device oddness)
On 11/29/12 1:30 AM, Roger Pau Monné wrote:
On 28/11/12 19:33, Jeff Rizzo wrote:
I had some trouble getting 4.2 built last time I tried;  I'll see what I
can do.  I was kind of hoping it would magically appear in pkgsrc.  :-}
It should be pretty straightforward to get 4.2 working on NetBSD 6.0,
see the following guide:
http://wiki.xen.org/wiki/Compiling_Xen_From_Source_on_NetBSD
OK, I've tried this again, on a 6.0 stock system, starting from that 
wiki page.
Everything looked good until the 'build tools' phase:
hackbook:riz  ~/xen-4.2.0> gmake tools
<lots of build output elided>
gcc    -o xen-hptool xen-hptool.o 
/home/riz/xen-4.2.0/tools/misc/../../tools/libxc/libxenctrl.so 
/home/riz/xen-4.2.0/tools/misc/../../tools/libxc/libxenguest.so 
/home/riz/xen-4.2.0/tools/misc/../../tools/xenstore/libxenstore.so 
-L/usr/pkg/lib
ld: warning: liblzo2.so.2, needed by 
/home/riz/xen-4.2.0/tools/misc/../../tools/libxc/libxenguest.so, not 
found (try using -rpath or -rpath-link)
/home/riz/xen-4.2.0/tools/misc/../../tools/libxc/libxenguest.so: 
undefined reference to `__lzo_init_v2'
/home/riz/xen-4.2.0/tools/misc/../../tools/libxc/libxenguest.so: 
undefined reference to `lzo1x_decompress_safe'
gmake[3]: *** [xen-hptool] Error 1
gmake[3]: Leaving directory `/home/riz/xen-4.2.0/tools/misc'
gmake[2]: *** [subdir-install-misc] Error 2
gmake[2]: Leaving directory `/home/riz/xen-4.2.0/tools'
gmake[1]: *** [subdirs-install] Error 2
gmake[1]: Leaving directory `/home/riz/xen-4.2.0/tools'
gmake: *** [install-tools] Error 2
I got past this by setting LD_LIBRARY_PATH=/usr/pkg/lib (I shouldn't 
have to; some rpath must be missing).
It built farther next time, getting into qemu:
<lots of output trimmed>
qemu successfuly configured for Xen qemu-dm build
-msse2: not found
gmake[3]: Entering directory 
`/home/riz/xen-4.2.0/tools/qemu-xen-traditional-dir'
/home/riz/xen-4.2.0/tools/../tools/qemu-xen-traditional/xen-hooks.mak:61: === 
pciutils-dev package not found - missing /usr/include/pci
/home/riz/xen-4.2.0/tools/../tools/qemu-xen-traditional/xen-hooks.mak:62: === 
PCI passthrough capability has been disabled
  CC    qemu-img.o
<snip>
  LINK  qemu-img-xen
/usr/lib/libc.so: warning: multiple common of `environ'
/usr/lib/crt0.o: warning: previous common is here
  CC    readline.o
<snip>
  CC    wm8750.o
In file included from 
/home/riz/xen-4.2.0/tools/qemu-xen-traditional/hw/wm8750.c:12:0:
/home/riz/xen-4.2.0/tools/qemu-xen-traditional/audio/audio.h:153:10: 
warning: redundant redeclaration of 'popcount'
/usr/include/strings.h:57:14: note: previous declaration of 'popcount' 
was here
  CC    ssd0303.o
 <snip>
In file included from 
/home/riz/xen-4.2.0/tools/qemu-xen-traditional/net.c:30:0:
/home/riz/xen-4.2.0/tools/qemu-xen-traditional/audio/audio.h:153:10: 
warning: redundant redeclaration of 'popcount'
/usr/include/strings.h:57:14: note: previous declaration of 'popcount' 
was here
  CC    qemu-sockets.o
<snip>
  CC    sdl.o
In file included from 
/home/riz/xen-4.2.0/tools/qemu-xen-traditional/sdl.c:30:0:
/usr/pkg/include/SDL/SDL_syswm.h:58:22: fatal error: X11/Xlib.h: No such 
file or directory
compilation terminated.
gmake[3]: *** [sdl.o] Error 1
gmake[3]: Leaving directory 
`/home/riz/xen-4.2.0/tools/qemu-xen-traditional-dir'
gmake[2]: *** [subdir-install-qemu-xen-traditional-dir] Error 2
gmake[2]: Leaving directory `/home/riz/xen-4.2.0/tools'
gmake[1]: *** [subdirs-install] Error 2
gmake[1]: Leaving directory `/home/riz/xen-4.2.0/tools'
gmake: *** [install-tools] Error 2
Clearly, the include path isn't set right. (X11/Xlib.h is in 
/usr/X11R7/include)  I don't grok gmake enough to know the right place 
to set it.
Thoughts?  How was your environment set up that you didn't hit these issues?
+j
Home |
Main Index |
Thread Index |
Old Index