All of lore.kernel.org
 help / color / mirror / Atom feed
* [lustre-devel] Failed to build a Lustre Storage Client on OpenVZ Kernel ! Is this a bug?
@ 2016-11-01  2:15 W. Zhang
  2016-11-07  2:03 ` James Simmons
  0 siblings, 1 reply; 5+ messages in thread
From: W. Zhang @ 2016-11-01  2:15 UTC (permalink / raw)
  To: lustre-devel

Hello,

I'm trying to build a Lustre client on OpenVZ kernel (version:
042stab120.5, based on RHEL 6.8 kernel 2.6.32-642.6.1.el6), and some bugs
occured:

(1) When build version v2_8_59_0 in git tag repo of Lustre, I encountered
the following errors:
"
LD [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/fld/ fld.o
CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/lloop.o
In file included from
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/lloop.c:109:
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/llite_internal.h:1469: error: conflicting types for 'iov_iter_iovec'
include/linux/fs.h:765: note: previous definition of 'iov_iter_iovec' was
here
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/llite_internal.h: In function 'iov_iter_iovec':
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/llite_internal.h:1472: error: 'const struct iov_iter' has no member named
'iov'
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/llite_internal.h:1473: error: 'const struct iov_iter' has no member named
'iov'
cc1: warnings being treated as errors
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/llite_internal.h:1473: error: type defaults to 'int' in declaration of
'_min2'
...
"

(2) When build old version v2_8_50_0 in git tag repo of Lustre, the
following errors display:
"
CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/vvp_lock.o
CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/vvp_io.o
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_io.c: In
function 'vvp_mmap_locks':
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/vvp_io.c:423: error: 'struct iov_iter' has no member named 'iov'
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_io.c: In
function 'vvp_io_advance':
/opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
e/vvp_io.c:514: error: 'struct iov_iter' has no member named 'iov'
...
"

Files with full error context are attached.

So, How can I fix the problem? Is this a bug which need to be fixed?

Thanks! Any suggestion is appreciated!

Best Wishes!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20161101/790a900f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.zip
Type: application/zip
Size: 13180 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20161101/790a900f/attachment.zip>

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

* [lustre-devel] Failed to build a Lustre Storage Client on OpenVZ Kernel ! Is this a bug?
  2016-11-01  2:15 [lustre-devel] Failed to build a Lustre Storage Client on OpenVZ Kernel ! Is this a bug? W. Zhang
@ 2016-11-07  2:03 ` James Simmons
  2016-11-23  8:35   ` W. Zhang
  0 siblings, 1 reply; 5+ messages in thread
From: James Simmons @ 2016-11-07  2:03 UTC (permalink / raw)
  To: lustre-devel


> Hello,
> 
> I'm trying to build a Lustre client on OpenVZ kernel (version: 042stab120.5, based on RHEL 6.8 kernel
> 2.6.32-642.6.1.el6), and some bugs occured:?
> 
> (1) When build version v2_8_59_0 in git tag repo of Lustre, I encountered the following errors:
> "
> LD [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/fld/ fld.o
> CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/lloop.o
> In file included from /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/lloop.c:109:
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/llite_internal.h:1469: error: conflicting types for
> 'iov_iter_iovec'
> include/linux/fs.h:765: note: previous definition of 'iov_iter_iovec' was here
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/llite_internal.h: In function 'iov_iter_iovec':
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/llite_internal.h:1472: error: 'const struct
> iov_iter' has no member named 'iov'
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/llite_internal.h:1473: error: 'const struct
> iov_iter' has no member named 'iov'
> cc1: warnings being treated as errors
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/llite_internal.h:1473: error: type defaults to 'int'
> in declaration of '_min2'
> ...
> "
> 
> (2) When build old version v2_8_50_0 in git tag repo of Lustre, the following errors display:?
> "
> CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_lock.o
> CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_io.o
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_io.c: In function 'vvp_mmap_locks':
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_io.c:423: error: 'struct iov_iter' has no member
> named 'iov'
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_io.c: In function 'vvp_io_advance':
> /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit e/vvp_io.c:514: error: 'struct iov_iter' has no member
> named 'iov'
> ...
> "
> 
> Files with full error context are attached.
> 
> So, How can I fix the problem? Is this a bug which need to be fixed?

Can you post your config.log.

 
> Thanks! Any suggestion is appreciated!
> 
> Best Wishes!
> 
> 

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

* [lustre-devel] Failed to build a Lustre Storage Client on OpenVZ Kernel ! Is this a bug?
  2016-11-07  2:03 ` James Simmons
@ 2016-11-23  8:35   ` W. Zhang
       [not found]     ` <CAAXb9Mvz-i0iCFsVJQ-Jv=F8eQHsxqLWfbK1ZHs3dTJSoMUAXw@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: W. Zhang @ 2016-11-23  8:35 UTC (permalink / raw)
  To: lustre-devel

Dear James and All,

Attached is the file 'config.log'!

Thanks very much for previous attention!

Best Wishes!

2016-11-07 10:03 GMT+08:00 James Simmons <jsimmons@infradead.org>:

>
> > Hello,
> >
> > I'm trying to build a Lustre client on OpenVZ kernel (version:
> 042stab120.5, based on RHEL 6.8 kernel
> > 2.6.32-642.6.1.el6), and some bugs occured:
> >
> > (1) When build version v2_8_59_0 in git tag repo of Lustre, I
> encountered the following errors:
> > "
> > LD [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/fld/
> fld.o
> > CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/lloop.o
> > In file included from /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/lloop.c:109:
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/llite_internal.h:1469: error: conflicting types for
> > 'iov_iter_iovec'
> > include/linux/fs.h:765: note: previous definition of 'iov_iter_iovec'
> was here
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/llite_internal.h: In function 'iov_iter_iovec':
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/llite_internal.h:1472: error: 'const struct
> > iov_iter' has no member named 'iov'
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/llite_internal.h:1473: error: 'const struct
> > iov_iter' has no member named 'iov'
> > cc1: warnings being treated as errors
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/llite_internal.h:1473: error: type defaults to 'int'
> > in declaration of '_min2'
> > ...
> > "
> >
> > (2) When build old version v2_8_50_0 in git tag repo of Lustre, the
> following errors display:
> > "
> > CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/vvp_lock.o
> > CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/vvp_io.o
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/vvp_io.c: In function 'vvp_mmap_locks':
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/vvp_io.c:423: error: 'struct iov_iter' has no member
> > named 'iov'
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/vvp_io.c: In function 'vvp_io_advance':
> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
> e/vvp_io.c:514: error: 'struct iov_iter' has no member
> > named 'iov'
> > ...
> > "
> >
> > Files with full error context are attached.
> >
> > So, How can I fix the problem? Is this a bug which need to be fixed?
>
> Can you post your config.log.
>
>
> > Thanks! Any suggestion is appreciated!
> >
> > Best Wishes!
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20161123/01ef82f9/attachment.htm>

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

* [lustre-devel] Failed to build a Lustre Storage Client on OpenVZ Kernel ! Is this a bug?
       [not found]     ` <CAAXb9Mvz-i0iCFsVJQ-Jv=F8eQHsxqLWfbK1ZHs3dTJSoMUAXw@mail.gmail.com>
@ 2016-11-23  9:05       ` W. Zhang
  2016-11-28 22:01         ` James Simmons
  0 siblings, 1 reply; 5+ messages in thread
From: W. Zhang @ 2016-11-23  9:05 UTC (permalink / raw)
  To: lustre-devel

Dear James and All,

Zipped file "*config.log*" is attached, file in the former is too big
(beyond the limit of 150 KB).

Thanks very much and sorry for the redundancy!

Best Wishes!




2016-11-23 16:46 GMT+08:00 W. Zhang <wszhang159@gmail.com>:

> Sorry to All!
>
> I prepared the file '*config.log*' but forgot to attach it in the former!
>  (T-T)
>
> Here it is!
>
> Best Wishes!
>
>
>
>
>
> 2016-11-23 16:35 GMT+08:00 W. Zhang <wszhang159@gmail.com>:
>
>> Dear James and All,
>>
>> Attached is the file 'config.log'!
>>
>> Thanks very much for previous attention!
>>
>> Best Wishes!
>>
>> 2016-11-07 10:03 GMT+08:00 James Simmons <jsimmons@infradead.org>:
>>
>>>
>>> > Hello,
>>> >
>>> > I'm trying to build a Lustre client on OpenVZ kernel (version:
>>> 042stab120.5, based on RHEL 6.8 kernel
>>> > 2.6.32-642.6.1.el6), and some bugs occured:
>>> >
>>> > (1) When build version v2_8_59_0 in git tag repo of Lustre, I
>>> encountered the following errors:
>>> > "
>>> > LD [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/fld/
>>> fld.o
>>> > CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/lloop.o
>>> > In file included from /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/lloop.c:109:
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/llite_internal.h:1469: error: conflicting types for
>>> > 'iov_iter_iovec'
>>> > include/linux/fs.h:765: note: previous definition of 'iov_iter_iovec'
>>> was here
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/llite_internal.h: In function 'iov_iter_iovec':
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/llite_internal.h:1472: error: 'const struct
>>> > iov_iter' has no member named 'iov'
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/llite_internal.h:1473: error: 'const struct
>>> > iov_iter' has no member named 'iov'
>>> > cc1: warnings being treated as errors
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/llite_internal.h:1473: error: type defaults to 'int'
>>> > in declaration of '_min2'
>>> > ...
>>> > "
>>> >
>>> > (2) When build old version v2_8_50_0 in git tag repo of Lustre, the
>>> following errors display:
>>> > "
>>> > CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/vvp_lock.o
>>> > CC [M] /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/vvp_io.o
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/vvp_io.c: In function 'vvp_mmap_locks':
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/vvp_io.c:423: error: 'struct iov_iter' has no member
>>> > named 'iov'
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/vvp_io.c: In function 'vvp_io_advance':
>>> > /opt/src/lustre_testvz/lustre_new/lustre-r161012/lustre/llit
>>> e/vvp_io.c:514: error: 'struct iov_iter' has no member
>>> > named 'iov'
>>> > ...
>>> > "
>>> >
>>> > Files with full error context are attached.
>>> >
>>> > So, How can I fix the problem? Is this a bug which need to be fixed?
>>>
>>> Can you post your config.log.
>>>
>>>
>>> > Thanks! Any suggestion is appreciated!
>>> >
>>> > Best Wishes!
>>> >
>>> >
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20161123/b3b58d1a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.zip
Type: application/zip
Size: 33503 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20161123/b3b58d1a/attachment-0001.zip>

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

* [lustre-devel] Failed to build a Lustre Storage Client on OpenVZ Kernel ! Is this a bug?
  2016-11-23  9:05       ` W. Zhang
@ 2016-11-28 22:01         ` James Simmons
  0 siblings, 0 replies; 5+ messages in thread
From: James Simmons @ 2016-11-28 22:01 UTC (permalink / raw)
  To: lustre-devel


> Dear James and?All,
> 
> Zipped file "config.log" is attached,?file in the former is too big (beyond the limit of 150 KB).
> 
> Thanks very much and sorry for the?redundancy!
> 
> Best Wishes!

I was on vacation last week so sorry for the delay. I think I know what 
the problem is. Can you try the attached patch and see if it works.
-------------- next part --------------
diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4
index 0578325..aac8dbd 100644
--- a/lustre/autoconf/lustre-core.m4
+++ b/lustre/autoconf/lustre-core.m4
@@ -1717,6 +1717,26 @@ vfs_rename_6args, [
 ]) # LC_VFS_RENAME_6ARGS
 
 #
+# LC_IOV_ITER_IOVEC
+#
+# 3.16 introduced iov_iter_iovec
+#
+AC_DEFUN([LC_IOV_ITER_IOVEC], [
+LB_CHECK_COMPILE([if Linux kernel has 'iov_iter_iovec'],
+iov_iter_iovec, [
+	#include <linux/uio.h>
+	#include <linux/fs.h>
+],[
+	struct iovec vec;
+
+	vec = iov_iter_iovec(NULL);
+], [
+	AC_DEFINE(HAVE_IOV_ITER_IOVEC, 1,
+		[kernel has iov_iter_iovec])
+])
+]) # LC_IOV_ITER_IOVEC
+
+#
 # LC_DIRECTIO_USE_ITER
 #
 # 3.16 kernel changes direct IO to use iov_iter
@@ -2356,6 +2376,7 @@ AC_DEFUN([LC_PROG_LINUX], [
 	LC_HAVE_TRUNCATE_IPAGES_FINAL
 
 	# 3.15
+	LC_IOV_ITER_IOVEC
 	LC_VFS_RENAME_6ARGS
 
 	# 3.16
diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h
index 3f7dfed..0e1252b 100644
--- a/lustre/llite/llite_internal.h
+++ b/lustre/llite/llite_internal.h
@@ -1463,6 +1463,7 @@ static inline void iov_iter_reexpand(struct iov_iter *i, size_t count)
 	i->count = count;
 }
 
+#ifndef HAVE_IOV_ITER_IOVEC
 static inline struct iovec iov_iter_iovec(const struct iov_iter *iter)
 {
 	return (struct iovec) {
@@ -1471,6 +1472,7 @@ static inline struct iovec iov_iter_iovec(const struct iov_iter *iter)
 			       iter->iov->iov_len - iter->iov_offset),
 	};
 }
+#endif
 
 #define iov_for_each(iov, iter, start)					\
 	for (iter = (start);						\

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

end of thread, other threads:[~2016-11-28 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-01  2:15 [lustre-devel] Failed to build a Lustre Storage Client on OpenVZ Kernel ! Is this a bug? W. Zhang
2016-11-07  2:03 ` James Simmons
2016-11-23  8:35   ` W. Zhang
     [not found]     ` <CAAXb9Mvz-i0iCFsVJQ-Jv=F8eQHsxqLWfbK1ZHs3dTJSoMUAXw@mail.gmail.com>
2016-11-23  9:05       ` W. Zhang
2016-11-28 22:01         ` James Simmons

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.