Skip to content

Linking fails with undefined reference to `__compiletime_assert_191' in DRM_I915 driver #191

Closed
@bulwahn

Description

@bulwahn

On linux-next (next-20181002), linking of the DRM_I915 driver fails when the "64-bit kernel" is deactivated. Here are my observations:

defconfig works.
defconfig - "64-bit kernel":

MODPOST vmlinux.o
ld: drivers/gpu/drm/i915/i915_params.o: in function `i915_params_dump':
i915_params.c:(.text+0x56): undefined reference to `__compiletime_assert_191'
ld: i915_params.c:(.text+0xed): undefined reference to `__compiletime_assert_191'
ld: i915_params.c:(.text+0x188): undefined reference to `__compiletime_assert_191'
ld: i915_params.c:(.text+0x223): undefined reference to `__compiletime_assert_191'
ld: i915_params.c:(.text+0x2be): undefined reference to `__compiletime_assert_191'
ld: drivers/gpu/drm/i915/i915_params.o:i915_params.c:(.text+0x359): more undefined references to `__compiletime_assert_191' follow
make: *** [Makefile:1037: vmlinux] Error 1

defconfig - "64-bit kernel" - DRM_I915 works.
defconfig - DRM_I915 works (no surprise!).

I just tried it yet on linux-next and with clang-8. I will need to check with the current release and rc, and with clang-7.

The issue was discovered by investigating the cause for #186.

Metadata

Metadata

Labels

[ARCH] x86This bug impacts ARCH=i386[BUG] linuxA bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.0This bug was fixed in Linux 5.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions