Re: module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1

From: Sedat Dilek
Date: Fri Jun 01 2018 - 13:57:04 EST


On Fri, Jun 1, 2018 at 6:01 PM, Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote:
> Hi,
>
> can someone tell me what this exactly means?
>
> What is the root cause for this?
> GNU binutils/ld?
> Compiler?
> Curently I test with clang-7.
> VirtualBox and compiler incompatible?
>
> Steps to reproduce the failure...
>
> root# modprobe -v vboxdrv
> insmod /lib/modules/4.14.47-1-iniza-llvmlinux/updates/dkms/vboxdrv.ko
> modprobe: ERROR: could not insert 'vboxdrv': Exec format error
>
> root# dmesg | tail -1
> [13437.021825] module: x86/modules: Skipping invalid relocation
> target, existing value is nonzero for type 1, loc ffffffffc1453360,
> val ffffffffc142f8a2
>
> Tanks in advance.
>

Looks like DKMS kernel-modules were built with gcc-7, unsure how to
force usage of clang-7.

- sed@ -