Date: Sat, 07 Oct 2017 19:03:48 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 222852] archivers/p7zip: armv7 arch needs -fPIC cflags Message-ID: <bug-222852-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222852 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@FreeBSD.org Reporter: guyyur@gmail.com CC: freebsd-arm@FreeBSD.org Flags: maintainer-feedback?(rakuco@FreeBSD.org) Assignee: rakuco@FreeBSD.org CC: freebsd-arm@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 invocatio= n) *** [../../../../bin/7z.so] Error code 1 make[3]: stopped in /usr/wrkdir/usr/ports/archivers/p7zip/work/p7zip_16.02/CPP/7zip/Bundles/For= mat7zFree 1 error Adding the following line to the Makefile resolves the problem CFLAGS_armv7=3D -fPIC --=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-222852-13>