[Bug 234858] security/veracrypt: fails to build on i386 with lld as system linker
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 11 14:02:20 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234858
Bug ID: 234858
Summary: security/veracrypt: fails to build 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: acm at FreeBSD.org
Reporter: emaste at freebsd.org
Blocks: 214864
Assignee: acm at FreeBSD.org
Flags: maintainer-feedback?(acm at FreeBSD.org)
http://package18.nyi.freebsd.org/build.html?mastername=headi386PR214864-default&build=2019-01-05_21h00m02s
http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_21h00m02s/logs/errors/veracrypt-1.23_1.log
Linking veracrypt
ld: error: can't create dynamic relocation R_386_32 against symbol: t_fn in
readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to
allow text relocations in the output
>>> defined in /wrkdirs/usr/ports/security/veracrypt/work/veracrypt-1.23_1/src/Volume/Volume.a(Aestab.o)
>>> referenced by ../Crypto/Aes_x86.asm
>>> Aes_x86.o:(.text+0x78) in archive /wrkdirs/usr/ports/security/veracrypt/work/veracrypt-1.23_1/src/Volume/Volume.a
ld: error: can't create dynamic relocation R_386_32 against symbol: t_fn in
readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to
allow text relocations in the output
>>> defined in /wrkdirs/usr/ports/security/veracrypt/work/veracrypt-1.23_1/src/Volume/Volume.a(Aestab.o)
>>> referenced by ../Crypto/Aes_x86.asm
>>> Aes_x86.o:(.text+0x82) in archive /wrkdirs/usr/ports/security/veracrypt/work/veracrypt-1.23_1/src/Volume/Volume.a
...
Presumably Aes_x86.asm is non-PIC code, and linking with -znotext will be a
suitable workaround. This can be accomplished by adding
LDFLAGS_i386=-Wl,-z,notext to the port's Makefile, if it honours LDFLAGS.
Referenced Bugs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214864
[Bug 214864] [exp-run] test build with lld as /usr/bin/ld
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list