Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jan 2019 15:19:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 234790] audio/faust-lv2: fails to link on i386 with LLD as system linker
Message-ID:  <bug-234790-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 234790
           Summary: audio/faust-lv2: 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: yuri@freebsd.org
          Reporter: emaste@freebsd.org
            Blocks: 214864
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@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/faust-lv2-1.4.20180118_2.log

ld: error: can't create dynamic relocation R_386_32 against symbol: vtable =
for
LV2UI in readonly segment; recompile object files with -fPIC or pass
'-Wl,-z,notext' to allow text relocations in the output
>>> defined in /tmp/NLFeks-4b81cb.o
>>> referenced by NLFeks.cpp
>>>               /tmp/NLFeks-4b81cb.o:(LV2UI::LV2UI(int))

ld: error: can't create dynamic relocation R_386_32 against symbol: vtable =
for
LV2UI in readonly segment; recompile object files with -fPIC or pass
'-Wl,-z,notext' to allow text relocations in the output
>>> defined in /tmp/NLFeks-4b81cb.o
>>> referenced by NLFeks.cpp
>>>               /tmp/NLFeks-4b81cb.o:(LV2UI::~LV2UI())
...

Need to add -Wl,-z,notext to the compiler driver link invocation; unfortuna=
tely
this port does not honour LDFLAGS.

Adding -Wl,-z,notext to CFLAGS (for i386) appears to work.  Same change
probably solves the BROKEN_aarch64 issue.


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-234790-7788>