[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] I met a problem when install rt-xen 4.0.1 on Ubuntu 12.04



Hi, all

I want to install rt-xen on Ubuntu 12.04.
In the install process, I met a question:
make tools
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
-D__XEN_TOOLS__ -MMD -MF .buildpy.d -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -fPIC -I../../tools/libxc -I../../tools/xenstore
-I../../tools/include -Ixen/lowlevel/xc -I/usr/include/python2.7 -c
xen/lowlevel/xc/xc.c -o build/temp.linux-x86_64-2.7/xen/lowlevel/xc/xc.o
-fno-strict-aliasing
gcc: error: : No such file or directory
error: command 'gcc' failed with exit status 1
make[3]: *** [buildpy] Error 1
make[3]: Leaving directory `/home/zhangwei1984/xen-4.0.1/tools/python'
make[2]: *** [subdir-install-python] Error 2
make[2]: Leaving directory `/home/zhangwei1984/xen-4.0.1/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/zhangwei1984/xen-4.0.1/tools'
make: *** [install-tools] Error 2
The following is my install step.
1)make xen
I met the problem,cc1: all warnings being treated as errors
I use the following method to cancel the Werror.
root@nimbnode7:/home/zhangwei1984/xen-4.0.1# sed -i 's/-Werror//g' `grep -l
-R Werror ./*`
make xen, successfully
2)make tools
At first, I met this problem 
PYTHON=python LIBXENAPI_BINDINGS=n ACM_SECURITY=n ./chk build
/bin/sh: 1: ./chk: Permission denied
make[3]: *** [check-build] Error 126
I use the command 
root@nimbnode7:/home/zhangwei1984/xen-4.0.1# chmod 777 -R ./
make tools again
I met this problem.
../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_initialize':
/home/zhangwei1984/xen-4.0.1/tools/memshr/interface.c:116: undefined
reference t                                                                     
                  
o `xc_interface_open'
../../memshr/libmemshr.a(interface.o): In function
`memshr_vbd_issue_ro_request'                                                   
                                    
:
/home/zhangwei1984/xen-4.0.1/tools/memshr/interface.c:165: undefined
reference t                                                                     
                  
o `xc_memshr_nominate_gref'
/home/zhangwei1984/xen-4.0.1/tools/memshr/interface.c:179: undefined
reference t                                                                     
                  
o `xc_memshr_share'
collect2: ld returned 1 exit status
make[5]: *** [blktapctrl] Error 1
make[5]: Leaving directory
`/home/zhangwei1984/xen-4.0.1/tools/blktap/drivers'
According to this link, 
http://xen.1045712.n5.nabble.com/Xen-4-0-1-failed-to-compile-on-Ubuntu-Natty-32-bits-td3301050.html
I modify four parts
diff -Nru xen-4.0.1/tools/blktap/drivers/blk_linux.c
xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c
--- xen-4.0.1/tools/blktap/drivers/blk_linux.c    2010-08-25
07:22:07.000000000 -0300
+++ xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c    2010-12-16
17:42:14.694504013 -0200
@@ -1,6 +1,6 @@
 #include <inttypes.h>
 #include <sys/ioctl.h>
-#include <linux/fs.h>
+#include <sys/mount.h>
 #include "tapdisk.h"
 #include "blk.h"
 
diff -Nru xen-4.0.1/tools/blktap/drivers/Makefile
xen-4.0.1-patched/tools/blktap/drivers/Makefile
--- xen-4.0.1/tools/blktap/drivers/Makefile    2010-08-25 07:22:07.000000000
-0300
+++ xen-4.0.1-patched/tools/blktap/drivers/Makefile    2010-12-16
17:45:06.214503843 -0200
@@ -29,8 +29,9 @@
 MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a
 endif
 
-LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore)
$(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread
-LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz
+LDFLAGS_xen := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore)
+LDFLAGS_blktapctrl := $(LDFLAGS_xen) $(MEMSHRLIBS) -L../lib -lblktap -lrt
-lm -lpthread $(LDFLAGS_xen)
+LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz
$(LDFLAGS_xen)
 
 BLK-OBJS-y  := block-aio.o
 BLK-OBJS-y  += block-sync.o
diff -Nru xen-4.0.1/tools/blktap2/drivers/blk_linux.c
xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c
--- xen-4.0.1/tools/blktap2/drivers/blk_linux.c    2010-08-25
07:22:07.000000000 -0300
+++ xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c    2010-12-16
17:43:12.624504046 -0200
@@ -1,7 +1,7 @@
 #include <inttypes.h>
+#include <errno.h>
 #include <sys/ioctl.h>
-#include <linux/fs.h>
-#include <linux/errno.h>
+#include <sys/mount.h>
 #include "tapdisk.h"
 #include "blk.h"
 
diff -Nru xen-4.0.1/tools/xenpaging/Makefile
xen-4.0.1-patched/tools/xenpaging/Makefile
--- xen-4.0.1/tools/xenpaging/Makefile    2010-08-25 07:22:10.000000000
-0300
+++ xen-4.0.1-patched/tools/xenpaging/Makefile    2010-12-16
17:45:35.264502700 -0200
@@ -27,7 +27,7 @@
 all: $(IBINS)
 
 xenpaging: $(OBJS)
-    $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+    $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
 
 install: all
     $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/xen
creating build/temp.linux-x86_64-2.7/xen/lowlevel
creating build/temp.linux-x86_64-2.7/xen/lowlevel/xc
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
-D__XEN_TOOLS__ -MMD -MF .buildpy.d -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -fPIC -I../../tools/libxc -I../../tools/xenstore
-I../../tools/include -Ixen/lowlevel/xc -I/usr/include/python2.7 -c
xen/lowlevel/xc/xc.c -o build/temp.linux-x86_64-2.7/xen/lowlevel/xc/xc.o
-fno-strict-aliasing
make tools again
I meet this problem
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototy         
             
fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict         
             
es -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD         
             
ldpy.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIC -I../../tools/li         
             
../tools/xenstore -I../../tools/include -Ixen/lowlevel/xc -I/usr/includ         
             
.7 -c xen/lowlevel/xc/xc.c -o build/temp.linux-x86_64-2.7/xen/lowlevel/         
             
fno-strict-aliasing
gcc: error: : No such file or directory
error: command 'gcc' failed with exit status 1
make[3]: *** [buildpy] Error 1
make[3]: Leaving directory `/home/zhangwei1984/xen-4.0.1/tools/python'
make[2]: *** [subdir-install-python] Error 2
make[2]: Leaving directory `/home/zhangwei1984/xen-4.0.1/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/zhangwei1984/xen-4.0.1/tools'
make: *** [install-tools] Error 2

I can not find the solved method from website.

Anybody can give me some advice? 





--
View this message in context: 
http://xen.1045712.n5.nabble.com/I-met-a-problem-when-install-rt-xen-4-0-1-on-Ubuntu-12-04-tp5715053.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.