Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jan 2019 14:41:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 234789] emulators/virtualbox-ose: fails to link on i386 with lld as system linker
Message-ID:  <bug-234789-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234789

            Bug ID: 234789
           Summary: emulators/virtualbox-ose: fails to link on i386 with
                    lld as system linker
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: vbox@FreeBSD.org
          Reporter: emaste@freebsd.org
            Blocks: 214864
          Assignee: vbox@FreeBSD.org
             Flags: maintainer-feedback?(vbox@FreeBSD.org)

http://package18.nyi.freebsd.org/build.html?mastername=3Dheadi386PR214864-d=
efault&build=3D2019-01-05_21h00m02s
http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2=
1h00m02s/logs/errors/virtualbox-ose-5.2.22_2.log

kBuild: Linking VBoxRT
ld: error: relocation R_386_PC32 cannot be used against symbol RTMemAllocTa=
g;
recompile with -fPIC
>>> defined in /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-=
5.2.22/out/freebsd.x86/release/obj/VBoxRT/r3/alloc.o
>>> referenced by alloc.cpp:44 (/wrkdirs/usr/ports/emulators/virtualbox-ose=
/work/VirtualBox-5.2.22/src/VBox/Runtime/common/alloc/alloc.cpp:44)
>>>               /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualB=
ox-5.2.22/out/freebsd.x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDup=
Tag)

ld: error: relocation R_386_PC32 cannot be used against symbol memcpy;
recompile with -fPIC
>>> defined in /lib/libc.so.7
>>> referenced by alloc.cpp:46 (/wrkdirs/usr/ports/emulators/virtualbox-ose=
/work/VirtualBox-5.2.22/src/VBox/Runtime/common/alloc/alloc.cpp:46)
>>>               /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualB=
ox-5.2.22/out/freebsd.x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDup=
Tag)

ld: error: relocation R_386_PC32 cannot be used against symbol RTMemAllocTa=
g;
recompile with -fPIC
>>> defined in /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-=
5.2.22/out/freebsd.x86/release/obj/VBoxRT/r3/alloc.o
>>> referenced by alloc.cpp:54 (/wrkdirs/usr/ports/emulators/virtualbox-ose=
/work/VirtualBox-5.2.22/src/VBox/Runtime/common/alloc/alloc.cpp:54)
>>>               /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualB=
ox-5.2.22/out/freebsd.x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDup=
ExTag)
...

Similar issues in:
emulators/virtualbox-ose-additions
http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2=
1h00m02s/logs/errors/virtualbox-ose-additions-5.2.22_2.log

emulators/virtualbox-ose-additions-nox11
http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2=
1h00m02s/logs/errors/virtualbox-ose-additions-nox11-5.2.22_2.log

emulators/virtualbox-ose-nox11
http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2=
1h00m02s/logs/errors/virtualbox-ose-nox11-5.2.22_2.log

Most likely the link stage needs -z notext (e.g. -Wl,-z,notext in LDFLAGS).


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214864
[Bug 214864] [exp-run] test build with lld as /usr/bin/ld
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234789-7788>