[Bug 222852] archivers/p7zip: armv7 arch needs -fPIC cflags
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Oct 7 19:03:50 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222852
Bug ID: 222852
Summary: archivers/p7zip: armv7 arch needs -fPIC cflags
Product: Ports & Packages
Version: Latest
Hardware: arm
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: rakuco at FreeBSD.org
Reporter: guyyur at gmail.com
CC: freebsd-arm at FreeBSD.org
Flags: maintainer-feedback?(rakuco at FreeBSD.org)
Assignee: rakuco at FreeBSD.org
CC: freebsd-arm at FreeBSD.org
The newly added armv7 arch needs -fPIC when building p7zip.
Without it, it fails with:
/usr/bin/ld: 7zEncode.o(.text+0x2d04): unresolvable R_ARM_MOVW_ABS_NC
relocation against symbol `_ZTIi@@CXXABI_1.3'
/usr/bin/ld: final link failed: Nonrepresentable section on output
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [../../../../bin/7z.so] Error code 1
make[3]: stopped in
/usr/wrkdir/usr/ports/archivers/p7zip/work/p7zip_16.02/CPP/7zip/Bundles/Format7zFree
1 error
Adding the following line to the Makefile resolves the problem
CFLAGS_armv7= -fPIC
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list