[Bug 231451] devel/llvm70 - produces broken kernel modules when used as a port compiler

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 18 13:57:51 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231451

            Bug ID: 231451
           Summary: devel/llvm70 - produces broken kernel modules when
                    used as a port compiler
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks at FreeBSD.org
          Reporter: arcade at b1t.name
          Assignee: brooks at FreeBSD.org
             Flags: maintainer-feedback?(brooks at FreeBSD.org)

Hello.

Not really a problem but might become an issue when updating system compiler.

Trying to compile emulators/virtualbox-ose-kmod I found out that produced
binaries can't be loaded as a kernel modules:

Sep 18 16:36:31 limbo kernel: kldload: unexpected relocation type 4
Sep 18 16:36:31 limbo kernel: kldload: unexpected relocation type 4
Sep 18 16:36:31 limbo kernel: kldload: unexpected relocation type 4
Sep 18 16:36:31 limbo kernel: kldload: unexpected relocation type 4
...
Sep 18 16:36:31 limbo kernel: kldload: unexpected relocation type 4
Sep 18 16:36:31 limbo kernel: kldload: unexpected relocation type 4
Sep 18 16:36:31 limbo kernel: kldload: unexpected relocation type 4
Sep 18 16:36:31 limbo kernel: link_elf_obj: symbol bzero undefined
Sep 18 16:36:31 limbo kernel: linker_load_file: Unsupported file type

Compiling said modules with system compiler or clang60 results in a working
kernel module.

Thank you.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list