Bug 234871 - comms/libfec: fails to build on i386 with lld as system linker
Summary: comms/libfec: fails to build on i386 with lld as system linker
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Diane Bruce
URL:
Keywords:
Depends on:
Blocks: 214864
  Show dependency treegraph
 
Reported: 2019-01-11 14:18 UTC by Ed Maste
Modified: 2019-01-23 03:13 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (hamradio)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2019-01-11 14:18:59 UTC
ld: error: can't create dynamic relocation R_386_32 against symbol: Mettab27_1 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in viterbi27_mmx.o
>>> referenced by mmxbfly27.o:(.text+0x59)

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 mmxbfly27.o
>>> referenced by mmxbfly27.o:(.text+0x60)

ld: error: can't create dynamic relocation R_386_32 against symbol: Mettab27_2 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in viterbi27_mmx.o
>>> referenced by mmxbfly27.o:(.text+0x67)
...
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-01-23 03:11:51 UTC
A commit references this bug:

Author: db
Date: Wed Jan 23 03:10:52 UTC 2019
New revision: 491018
URL: https://svnweb.freebsd.org/changeset/ports/491018

Log:
  Bug reported only with ld.lld as system ld on i386 solved using
  suggested -Wl,-z,notext

  PR:		ports/234871
  Reported by:	@emaste

Changes:
  head/comms/libfec/files/patch-makefile.in