nvidia-* kernel module failed to build with clang [arch_hweight.h:56:7: error: expected absolute expression asm (ALTERNATIVE("call __sw_hweight64", POPCNT64, X86_FEATURE_POPCNT)]

Bug #1564254 reported by Salamandarias on 2016-03-31
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-361-updates (Ubuntu)
High
Unassigned
nvidia-graphics-drivers-375 (Ubuntu)
High
Unassigned

Bug Description

sudo apt-get update && sudo apt-get dist-upgrade brakes nvidia-36* drivers loading.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: nvidia-361-updates 361.28-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-16.32-generic 4.4.6
Uname: Linux 4.4.0-16-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
DKMSKernelVersion: 4.4.0-16-generic
Date: Thu Mar 31 02:21:27 2016
DuplicateSignature: dkms:nvidia-361-updates:361.28-0ubuntu1:./arch/x86/include/asm/arch_hweight.h:56:7: error: expected absolute expression
InstallationDate: Installed on 2016-02-28 (31 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160228)
PackageVersion: 361.28-0ubuntu1
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1
 apt 1.2.9
SourcePackage: nvidia-graphics-drivers-361-updates
Title: nvidia-361-updates 361.28-0ubuntu1: nvidia-361-updates kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Salamandarias (salamanderrake) wrote :
tags: removed: need-duplicate-check
Launchpad Janitor (janitor) wrote :

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

Changed in nvidia-graphics-drivers-361-updates (Ubuntu):
status: New → Confirmed
Salamandarias (salamanderrake) wrote :

The issue is if you switch system wise cc and c++ via update-alternatives to use clang/++ nvidia kernal module compile will fail.

summary: nvidia-361-updates 361.28-0ubuntu1: nvidia-361-updates kernel module
- failed to build
+ failed to build with clang
summary: nvidia-361-updates 361.28-0ubuntu1: nvidia-361-updates kernel module
- failed to build with clang
+ failed to build with clang [error: expected absolute expression]
Changed in nvidia-graphics-drivers-361-updates (Ubuntu):
importance: Undecided → High
summary: nvidia-361-updates 361.28-0ubuntu1: nvidia-361-updates kernel module
- failed to build with clang [error: expected absolute expression]
+ failed to build with clang [arch_hweight.h:56:7: error: expected
+ absolute expression asm (ALTERNATIVE("call __sw_hweight64",
+ POPCNT64, X86_FEATURE_POPCNT)]
summary: - nvidia-361-updates 361.28-0ubuntu1: nvidia-361-updates kernel module
- failed to build with clang [arch_hweight.h:56:7: error: expected
- absolute expression asm (ALTERNATIVE("call __sw_hweight64",
- POPCNT64, X86_FEATURE_POPCNT)]
+ nvidia-* kernel module failed to build with clang [arch_hweight.h:56:7:
+ error: expected absolute expression asm (ALTERNATIVE("call
+ __sw_hweight64", POPCNT64, X86_FEATURE_POPCNT)]
Changed in nvidia-graphics-drivers-375 (Ubuntu):
importance: Undecided → High
Sjors Gielen (sgielen) on 2018-01-09
no longer affects: nvidia-graphics-drivers-384 (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers