Building kernel modules failed!

543 views
Skip to first unread message

Duh

unread,
Mar 6, 2017, 7:42:20 AM3/6/17
to QUADStor Storage Virtualization
Hello, module build failed on proxmox-ve host based on debian jessie

root@b11:~# cat /etc/debian_version  
8.7 
root@b11:~# uname -a
Linux b11 4.4.44-1-pve #1 SMP PVE 4.4.44-83 (Wed, 1 Mar 2017 09:22:35 +0100) x86_64 GNU/Linux
root@b11:~# dpkg -l | grep pve-headers
ii  pve-headers-4.4.44-1-pve             4.4.44-83                      amd64        The Proxmox PVE Kernel Headers
root@b11:~# dpkg -l | grep pve-kernel
ii  pve-firmware                         1.1-11                         all          Binary firmware code for the pve-kernel
ii  pve-kernel-4.4.44-1-pve              4.4.44-83                      amd64        The Proxmox PVE Kernel Image
root@b11:~# dpkg -l | grep quadstor
ii  quadstor-virt                        3.2.11                         amd64        QUADStor storage virtualization enterprise edition

pve-kernel and headers are based on Ubuntu-4.4.0-63.84 packages
 
build log follows...

+ [ ! -f /quadstor/lib/modules/corelib.o ]
+ uname
+ os=Linux
+ cd /quadstor/src/export
+ make clean
rm -rf *.o *.ko .*.cmd *.mod.c .tmp_versions Module.symvers .*.o.d Module.*
+ make
cp /quadstor/lib/modules/corelib.o /quadstor/src/export
make -C /lib/modules/4.4.44-1-pve/build SUBDIRS=/quadstor/src/export modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.44-1-pve'
 CC [M]  /quadstor/src/export/ldev_linux.o
 CC [M]  /quadstor/src/export/devq.o
 LD [M]  /quadstor/src/export/ldev.o
 CC [M]  /quadstor/src/export/core_linux.o
In file included from include/scsi/scsi_cmnd.h:10:0,
                from /quadstor/src/export/core_linux.c:26:
include/scsi/scsi_device.h:223:3: warning: ‘printk’ is an unrecognized format function type [-Wformat=]
  const char *, ...);
  ^
include/scsi/scsi_device.h:229:40: warning: ‘printk’ is an unrecognized format function type [-Wformat=]
scmd_printk(const char *, const struct scsi_cmnd *, const char *, ...);
                                       ^
In file included from include/uapi/linux/in.h:23:0,
                from include/linux/in.h:23,
                from /quadstor/src/export/linuxdefs.h:18,
                from /quadstor/src/export/core_linux.c:19:
/quadstor/src/export/core_linux.c: In function ‘sys_sock_create’:
include/linux/socket.h:163:18: warning: passing argument 1 of ‘sock_create_kern’ makes pointer from integer without a cast
#define AF_INET  2 /* Internet IP Protocol  */
                 ^
/quadstor/src/export/core_linux.c:174:28: note: in expansion of macro ‘AF_INET’
 retval = sock_create_kern(AF_INET, SOCK_STREAM, IPPROTO_TCP, &sys_sock->sock);
                           ^
In file included from include/linux/skbuff.h:29:0,
                from include/linux/tcp.h:21,
                from /quadstor/src/export/linuxdefs.h:19,
                from /quadstor/src/export/core_linux.c:19:
include/linux/net.h:216:5: note: expected ‘struct net *’ but argument is of type ‘int’
int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
    ^
/quadstor/src/export/core_linux.c:174:63: warning: passing argument 4 of ‘sock_create_kern’ makes integer from pointer without a cast
 retval = sock_create_kern(AF_INET, SOCK_STREAM, IPPROTO_TCP, &sys_sock->sock);
                                                              ^
In file included from include/linux/skbuff.h:29:0,
                from include/linux/tcp.h:21,
                from /quadstor/src/export/linuxdefs.h:19,
                 from /quadstor/src/export/core_linux.c:19:
include/linux/net.h:216:5: note: expected ‘int’ but argument is of type ‘struct socket **’
int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
    ^
/quadstor/src/export/core_linux.c:174:11: error: too few arguments to function ‘sock_create_kern’
 retval = sock_create_kern(AF_INET, SOCK_STREAM, IPPROTO_TCP, &sys_sock->sock);
          ^
In file included from include/linux/skbuff.h:29:0,
                from include/linux/tcp.h:21,
                from /quadstor/src/export/linuxdefs.h:19,
                from /quadstor/src/export/core_linux.c:19:
include/linux/net.h:216:5: note: declared here
int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
    ^
/quadstor/src/export/core_linux.c: In function ‘g_new_bio’:
/quadstor/src/export/core_linux.c:1127:17: warning: assignment from incompatible pointer type
 bio->bi_end_io = bio_end_bio;
                ^
/quadstor/src/export/core_linux.c: In function ‘bio_get_max_pages’:
/quadstor/src/export/core_linux.c:1220:2: error: implicit declaration of function ‘bio_get_nr_vecs’ [-Werror=implicit-function-declaration]
 return bio_get_nr_vecs(iodev);
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/quadstor/src/export/core_linux.o' failed
make[2]: *** [/quadstor/src/export/core_linux.o] Error 1
Makefile:1420: recipe for target '_module_/quadstor/src/export' failed
make[1]: *** [_module_/quadstor/src/export] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.44-1-pve'
Makefile:28: recipe for target 'default' failed
make: *** [default] Error 2
+ checkerror
+ [ 2 != 0 ]
+ echo ERROR: Building kernel modules failed!
ERROR: Building kernel modules failed!
+ exit 1

QUADStor Support

unread,
Mar 7, 2017, 8:26:10 AM3/7/17
to quadstor-virt
Kernel version > 4.0 isn't yet supported. We hope to have this ready
in a week or two.
> --
> You received this message because you are subscribed to the Google Groups
> "QUADStor Storage Virtualization" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to quadstor-vir...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Gregory Motruk

unread,
Mar 28, 2017, 5:56:54 AM3/28/17
to QUADStor Storage Virtualization
hi, got same problem, any update?
thanks!

вторник, 7 марта 2017 г., 15:26:10 UTC+2 пользователь quadstor написал:

QUADStor Support

unread,
Mar 28, 2017, 5:57:31 AM3/28/17
to quadstor-virt
The next release is early next week. This should be fixed in that.

QUADStor Support

unread,
Apr 10, 2017, 4:37:20 PM4/10/17
to quadstor-virt
Sorry, the release has been delayed slightly. We expect the release to
be ready by the end of this week.

Dmitry Polezhaev

unread,
Apr 11, 2017, 6:07:17 AM4/11/17
to QUADStor Storage Virtualization
I'm using Debian Jessie also, but without PROXMOX. And my versions are completely older:
# cat /etc/debian_version
8.7
# uname -a
Linux labstor01.lab.local 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux




QUADStor Support

unread,
Apr 19, 2017, 3:13:39 PM4/19/17
to quadstor-virt
The build error should now be fixed. The software can be built against
4.9.x kernels

The next release can be downloaded from
http://www.quadstor.com/storage-virtualization-enterprise-edition-downloads.html

Mark Syms

unread,
Aug 13, 2017, 10:54:48 AM8/13/17
to QUADStor Storage Virtualization
Doesn't appear to be fixed, on Debian 9 (stretch) with either the distro binary kernel and headers or a locally built 4.9.41 from the kernel.org git repo.

Using quadstor-virt-3.2.12.1 the following occurs

#> /quadstor/bin/builditf
rm -rf *.o *.ko .*.cmd *.mod.c .tmp_versions Module.symvers .*.o.d Module.*
cp /quadstor/lib/modules/corelib.o /quadstor/src/export
make -C /lib/modules/4.9.41/build SUBDIRS=/quadstor/src/export modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.41'
  CC [M]  /quadstor/src/export/ldev_linux.o
  CC [M]  /quadstor/src/export/devq.o
  LD [M]  /quadstor/src/export/ldev.o
  CC [M]  /quadstor/src/export/core_linux.o
/quadstor/src/export/core_linux.c:1172:1: error: static declaration of ‘bio_free_pages’ follows non-static decln
 bio_free_pages(bio_t *bio)
 ^~~~~~~~~~~~~~
In file included from ./include/linux/blkdev.h:19:0,
                 from /quadstor/src/export/linuxdefs.h:5,
                 from /quadstor/src/export/core_linux.c:19:
./include/linux/bio.h:462:13: note: previous declaration of ‘bio_free_pages’ was here
 extern void bio_free_pages(struct bio *bio);
             ^~~~~~~~~~~~~~
scripts/Makefile.build:293: recipe for target '/quadstor/src/export/core_linux.o' failed
make[2]: *** [/quadstor/src/export/core_linux.o] Error 1
Makefile:1493: recipe for target '_module_/quadstor/src/export' failed
make[1]: *** [_module_/quadstor/src/export] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.41'
Makefile:28: recipe for target 'default' failed
make: *** [default] Error 2
ERROR: Building kernel modules failed!

So, there appears to be a header mismatch somewhere.

Thanks,

QUADStor Support

unread,
Aug 13, 2017, 1:42:59 PM8/13/17
to quadstor-virt
There was a name clash with one of the kernel functions. Try
http://www.quadstor.com/virtentdub3z/quadstor-virt-3.2.12.2-debian7-x86_64.deb

Mark Syms

unread,
Aug 14, 2017, 6:13:11 AM8/14/17
to QUADStor Storage Virtualization
That builds, I am seeing errors like this on startup though -

kernel:[  322.168862] NMI watchdog: BUG: soft lockup - CPU#24 stuck for 23s! [ddloadt:10673]

Hopefully this doesn't indicate a serious issue.

QUADStor Support

unread,
Aug 14, 2017, 6:14:11 AM8/14/17
to quadstor-virt
The soft lockup needs to be looked into. Can you send us the diagnostics logs.

Mark Syms

unread,
Aug 14, 2017, 8:45:11 AM8/14/17
to QUADStor Storage Virtualization
Attached.
quadstordiag-2017-08-14.tgz

QUADStor Support

unread,
Aug 14, 2017, 8:46:17 AM8/14/17
to quadstor-virt
Thanks. Do you remember the previous version that was installed ?

Mark Syms

unread,
Aug 14, 2017, 2:37:26 PM8/14/17
to QUADStor Storage Virtualization
3.2.12.1.

HTH,

Mark.

QUADStor Support

unread,
Aug 15, 2017, 4:34:47 AM8/15/17
to quadstor-virt
Seems like a false positive. The soft lock is reported for a crc
function which calculates the crc for the metadata stored on disk.
This function can be called for many blocks on startup. Also the
thread which does the metadata load does complete.
Its seeks ok for now, but we will look into this further.

Louise Li

unread,
Jun 5, 2019, 1:19:52 PM6/5/19
to QUADStor Storage Virtualization
This is the year ago message. but I got the same problem now. My OS version is ubuntu 18.04.2.  What I need to update ?

The contents of this email message and any attachments are intended solely for the addressee(s).  This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments.  Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited. 

QUADStor Support

unread,
Jun 5, 2019, 5:02:24 PM6/5/19
to quadstor-virt
Hi,

We need to fix a few build issues for kernels >= 4.14.x. It might
take us a day or two.
> --
> You received this message because you are subscribed to the Google Groups "QUADStor Storage Virtualization" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to quadstor-vir...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/quadstor-virt/8e9b4e93-2a80-4616-9054-a959b7110c42%40googlegroups.com.

QUADStor Support

unread,
Jun 10, 2019, 4:36:06 PM6/10/19
to quadstor-virt
Hi,

This might take longer than we initially thought. The number of build
failures are quite high across modules. Its probably better to go with
Ubuntu 16.04 for now
Reply all
Reply to author
Forward
0 new messages