Bad return status for module build on kernel: 4.13.0-26-generic (i686)

Bug #1742474 reported by la Nube
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned
ndiswrapper (Ubuntu)
New
Undecided
Unassigned

Bug Description

Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia
Linux Asus-1000HE 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 i686 i686 i686 GNU/Linux

Linux Mint 18.3 with HWE Kernel (sudo apt install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04)

I've upgraded linux kernel from 4.10.0-4.10.0-42.46~16.04.1 to 4.13.0-26.29~16.04.2.
I've got errors while upgrade kernel.
And, After rebooting, my linux login screen has been broken.
I cannot log in and my linux screen has gone black.
Restroing kernel 4.10, then works well.

run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
Error! Bad return status for module build on kernel: 4.13.0-26-generic (i686)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.

Belows are /var/lib/dkms/ndiswrapper/1.60/build/make.log.

DKMS make.log for ndiswrapper-1.60 for kernel 4.13.0-26-generic (i686)
2018. 01. 11. (목) 00:16:20 KST
make: 디렉터리 '/usr/src/linux-headers-4.13.0-26-generic' 들어감
  AR /var/lib/dkms/ndiswrapper/1.60/build/built-in.o
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/crt_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/hal_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ndis_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_io_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/rtl_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/usb_exports.h
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/crt.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/hal.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/iw_ndis.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/loader.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/ndis.o
In file included from /var/lib/dkms/ndiswrapper/1.60/build/ndis.h:19:0,
                 from /var/lib/dkms/ndiswrapper/1.60/build/ndis.c:16:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMAllocateSharedMemory’:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: error: ‘__GFP_REPEAT’ undeclared (first use in this function)
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: note: each undeclared identifier is reported only once for each function it appears in
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMIndicateReceivePacket’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2261:15: error: ‘struct net_device’ has no member named ‘last_rx’
   wnd->net_dev->last_rx = jiffies;
               ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘EthRxIndicateHandler’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2349:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMTransferDataComplete’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2464:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
scripts/Makefile.build:308: '/var/lib/dkms/ndiswrapper/1.60/build/ndis.o' 타겟에 대한 명령이 실패했습니다
make[1]: *** [/var/lib/dkms/ndiswrapper/1.60/build/ndis.o] 오류 1
Makefile:1550: '_module_/var/lib/dkms/ndiswrapper/1.60/build' 타겟에 대한 명령이 실패했습니다
make: *** [_module_/var/lib/dkms/ndiswrapper/1.60/build] 오류 2
make: 디렉터리 '/usr/src/linux-headers-4.13.0-26-generic' 나감

la Nube (anselch1011)
affects: linux (Ubuntu) → linux-hwe (Ubuntu)
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.15 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15-rc7

Changed in linux-hwe (Ubuntu):
importance: Undecided → Medium
affects: linux-hwe (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
la Nube (anselch1011) wrote :

Same issue with 4.15-rc7.

I am using UKUU.

https://imgur.com/5FdbORs
https://imgur.com/WEB83ZH

--

System: Host: Asus-1000HE Kernel: 4.10.0-42-generic i686 (32 bit gcc: 5.4.0)
           Console: tty 5 Distro: Linux Mint 18.3 Sylvia
Machine: System: ASUSTeK (portable) product: 1000HE v: x.x
           Mobo: ASUSTeK model: 1000HE v: x.xx
           Bios: American Megatrends v: 1104 date: 10/14/2009
CPU: Single core Intel Atom N270 (-HT-) cache: 512 KB
           flags: (nx pae sse sse2 sse3 ssse3) bmips: 3192
           clock speeds: max: 1600 MHz 1: 1333 MHz 2: 800 MHz
Graphics: Card: Intel Mobile 945GSE Express Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: N/A drivers: intel (unloaded: fbdev,vesa)
           tty size: 80x24 Advanced Data: N/A out of X
Audio: Card Intel NM10/ICH7 Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.10.0-42-generic
Network: Card-1: Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express)
           driver: ath9k bus-ID: 01:00.0
           IF: wlp1s0 state: up mac: 00:15:af:e0:3e:ed
           Card-2: Qualcomm Atheros AR8121/AR8113/AR8114 Gigabit or Fast Ethernet
           driver: ATL1E port: ec00 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: 00:24:8c:29:5e:49
Drives: HDD Total Size: 128.0GB (6.2% used)
           ID-1: /dev/sda model: SanDisk_SD6SB1M1 size: 128.0GB
Partition: ID-1: / size: 47G used: 7.5G (17%) fs: ext4 dev: /dev/sda2
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 50.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info: Processes: 195 Uptime: 1 min Memory: 281.4/2004.7MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35

tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
la Nube (anselch1011) wrote :

There was no ndiswrapper error with 4.15-rc7 kernel.

But, the problem was same.
Same broken screen showed me like Imgur images.

Revision history for this message
la Nube (anselch1011) wrote :

Also, works well with kernel 4.4.0-109.132.

Revision history for this message
KES (kes-kes-j) wrote :
Download full text (3.2 KiB)

When upgrading the kernel from 4.4 to 4.13

Error! Bad return status for module build on kernel: 4.13.0-26-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.

DKMS make.log for ndiswrapper-1.60 for kernel 4.13.0-26-generic (x86_64)
Thu Jan 11 14:23:50 EET 2018
make: Entering directory '/usr/src/linux-headers-4.13.0-26-generic'
  AR /var/lib/dkms/ndiswrapper/1.60/build/built-in.o
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/crt_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/hal_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ndis_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_io_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/rtl_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/usb_exports.h
  MKSTUBS /var/lib/dkms/ndiswrapper/1.60/build/win2lin_stubs.h
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/crt.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/hal.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/iw_ndis.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/loader.o
  CC [M] /var/lib/dkms/ndiswrapper/1.60/build/ndis.o
In file included from /var/lib/dkms/ndiswrapper/1.60/build/ndis.h:19:0,
                 from /var/lib/dkms/ndiswrapper/1.60/build/ndis.c:16:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMAllocateSharedMemory’:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: error: ‘__GFP_REPEAT’ undeclared (first use in this function)
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: note: each undeclared identifier is reported only once for each function it appears in
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMIndicateReceivePacket’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2261:15: error: ‘struct net_device’ has no member named ‘last_rx’
   wnd->net_dev->last_rx = jiffies;
               ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘EthRxIndicateHandler’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2349:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMTransferDataComplete’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2464:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
scripts/Makefile.build:308: recipe for target '/var/lib/dkms/ndiswrapper/1.60/build/ndis.o' failed
make[1]: *** [/var/lib/dkms/ndiswrapper/1.60/build/ndis.o] Error 1
Makefile:1550: recipe for target '_module_/var/lib/dkms/ndiswrapper/1.60/build' failed
make: *** [_module_/...

Read more...

Revision history for this message
KES (kes-kes-j) wrote :

But I have no problems with login screen or something else. Seems all works fine.

Revision history for this message
Brian McCracken (brianinthered) wrote :

I have 6 computers with Mint 18.3 and updated them this last week to 4.13.0-26.29~16.04.2 as well.
The first two either crashed Cinnamon or had the black screen before login.

The one with the Cinnamon crash, I ran and update & upgrade with Terminal then rebooted. Now everything is fine.

The other with black screen I had to boot in "recovery mode" and did the same update & upgrade with Terminal. Now its fine as well.

But my last PC is crashing the Cinnamon Desktop because its not applying the Nvidia drivers.
I've rebooted and ran the update & upgrade but still no drivers.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.