nvidia-* kernel module failed to build [error: code model ‘kernel’ not supported in the 32 bit mode]

Bug #1366925 reported by Bernhard Cygan
132
This bug affects 20 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-304 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-331 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-340 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-346 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-352 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-361-updates (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-367 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-384 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.16.2-031602-generic /boot/vmlinuz-3.16.2-031602-generic
Error! Bad return status for module build on kernel: 3.16.2-031602-generic (x86_64)
Consult /var/lib/dkms/nvidia-331/331.38/build/make.log for more information.

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: nvidia-331 331.38-0ubuntu7.1
Uname: Linux 3.16.0-031600-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
DKMSKernelVersion: 3.16.2-031602-generic
Date: Mon Sep 8 20:19:51 2014
DuplicateSignature: dkms:nvidia-331:331.38-0ubuntu7.1:/var/lib/dkms/nvidia-331/331.38/build/nv.c:1:0: error: code model ‘kernel’ not supported in the 32 bit mode
InstallationDate: Installed on 2014-04-25 (136 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
PackageVersion: 331.38-0ubuntu7.1
SourcePackage: nvidia-graphics-drivers-331
Title: nvidia-331 331.38-0ubuntu7.1: nvidia-331 kernel module failed to build
UpgradeStatus: Upgraded to trusty on 2014-04-25 (136 days ago)

Revision history for this message
Bernhard Cygan (bcygan) wrote :
tags: removed: need-duplicate-check
summary: nvidia-331 331.38-0ubuntu7.1: nvidia-331 kernel module failed to build
- for kenel 3.16.2
+ for kenel 3.16.2 [error: code model ‘kernel’ not supported in the 32 bit
+ mode]
Revision history for this message
Brian Norris (computersforpeace) wrote : Re: nvidia-331 331.38-0ubuntu7.1: nvidia-331 kernel module failed to build for kenel 3.16.2 [error: code model ‘kernel’ not supported in the 32 bit mode]

I'm not sure how this happens, exactly, but your build log shows dkms trying to build with 32-bit options (-m32 -march=i686) but using -mcmodel=kernel, which gives the complaint you saw.

Revision history for this message
Bernhard Cygan (bcygan) wrote :

Apparently, I was trying to generate a 32-bit kernel on a 64-bit machine (this was by accident). Is this the expected behaviour in this case ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-331 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-304 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-346 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-361-updates (Ubuntu):
status: New → Confirmed
Revision history for this message
insaner (insaner) wrote :
Changed in nvidia-graphics-drivers-352 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-367 (Ubuntu):
status: New → Confirmed
summary: - nvidia-331 331.38-0ubuntu7.1: nvidia-331 kernel module failed to build
- for kenel 3.16.2 [error: code model ‘kernel’ not supported in the 32 bit
- mode]
+ nvidia-* kernel module failed to build [error: code model ‘kernel’ not
+ supported in the 32 bit mode]
Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-384 (Ubuntu):
status: New → Confirmed
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.