All of lore.kernel.org
 help / color / mirror / Atom feed
* I met a problem when install rt-xen 4.0.1 on Ubuntu 12.04
@ 2013-03-29  5:36 zhangwqh
  2013-03-29 11:51 ` Wei Liu
  0 siblings, 1 reply; 2+ messages in thread
From: zhangwqh @ 2013-03-29  5:36 UTC (permalink / raw)
  To: xen-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: I met a problem when install rt-xen 4.0.1 on Ubuntu 12.04
  2013-03-29  5:36 I met a problem when install rt-xen 4.0.1 on Ubuntu 12.04 zhangwqh
@ 2013-03-29 11:51 ` Wei Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2013-03-29 11:51 UTC (permalink / raw)
  To: zhangwqh; +Cc: xen-devel

On Fri, Mar 29, 2013 at 05:36:16AM +0000, zhangwqh wrote:
> Hi, all
> 
> I want to install rt-xen on Ubuntu 12.04.

You should probably contact author of RT-Xen for this kind of question.

> 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

Gcc cannot find source file.

> 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

In general you should fix those warnings instead of removing -Werror,
otherwise you might end up with strange bugs.


Wei.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-29 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-29  5:36 I met a problem when install rt-xen 4.0.1 on Ubuntu 12.04 zhangwqh
2013-03-29 11:51 ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.