Bug 234860

Summary: science/afni: fails to build on i386 with lld as system linker
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Individual Port(s)Assignee: Jason W. Bacon <jwb>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (jwb)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 214864    

Description Ed Maste freebsd_committer 2019-01-11 14:07:32 UTC
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/afni-2015.11.13_8.log

ld -shared -o plug_clust.so plug_clust.o
ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in plug_clust.o
>>> referenced by plug_clust.c
>>>               plug_clust.o:(PLUGIN_init)

ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in plug_clust.o
>>> referenced by plug_clust.c
>>>               plug_clust.o:(PLUGIN_init)
...