[Bug 234857] cad/qcad: fails to build on i386 with lld as system linker
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 11 13:58:24 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234857
Bug ID: 234857
Summary: cad/qcad: 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: mr at FreeBSD.org
Reporter: emaste at freebsd.org
Blocks: 214864
Flags: maintainer-feedback?(mr at FreeBSD.org)
Assignee: mr 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/qcad-3.21.3.11.log
ld: error: relocation R_386_PC32 cannot be used against symbol
ON_GetPointListBoundingBox(int, int, int, int, double const*, ON_BoundingBox&,
int, ON_Xform const*); recompile with -fPIC
>>> defined in /usr/local/lib/libopenNURBS.a(opennurbs_bounding_box.o)
>>> referenced by opennurbs_bezier.cpp:30
>>> opennurbs_bezier.o:(ON_BezierCurve::GetTightBoundingBox(ON_BoundingBox&, int, ON_Xform const*) const) in archive /usr/local/lib/libopenNURBS.a
ld: error: relocation R_386_PC32 cannot be used against symbol
ON_4dPointArray::ON_4dPointArray(); recompile with -fPIC
>>> defined in /usr/local/lib/libopenNURBS.a(opennurbs_array.o)
>>> referenced by opennurbs_bezier.cpp:44
>>> opennurbs_bezier.o:(ON_PolynomialCurve::ON_PolynomialCurve()) in archive /usr/local/lib/libopenNURBS.a
ld: error: relocation R_386_PC32 cannot be used against symbol
ON_Interval::ON_Interval(double, double); recompile with -fPIC
>>> defined in /usr/local/lib/libopenNURBS.a(opennurbs_point.o)
>>> referenced by opennurbs_bezier.cpp:45
>>> opennurbs_bezier.o:(ON_PolynomialCurve::ON_PolynomialCurve()) in archive /usr/local/lib/libopenNURBS.a
...
It may be as simple as adding LDFLAGS_i386=-Wl,-z,notext to the port's Makefile
or adding -fPIC to CFLAGS for the associated objects. (I haven't yet been able
to build it locally to try.)
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