[Bug 207324] lang/lua52: on arm (rpi2), lapi.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' . . . recompile with -fPIC

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 19 05:50:58 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207324

            Bug ID: 207324
           Summary: lang/lua52: on arm (rpi2), lapi.o: relocation
                    R_ARM_MOVW_ABS_NC against `a local symbol' . . .
                    recompile with -fPIC
           Product: Ports & Packages
           Version: Latest
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: markmi at dsl-only.net

When attempting to build devel/kyua on a rpi2b under projects/clang380-import
-r295601 via portmaster -DK devel/kyua the attempt failed in lang/lua52 with:

--- lapi.o ---
/usr/bin/clang -target armv6--freebsd11.0-gnueabi -march=armv7-a
-mcpu=cortex-a7 -mfloat-abi=softfp -mno-unaligned-access
-B/usr/local/arm-gnueabi-freebsd/bin/ -Wall -DLUA_COMPAT_ALL  -pipe
-mfloat-abi=softfp  -isystem /usr/local/include -g -fno-strict-aliasing
-I/usr/local/include -isystem /usr/local/include -DLUA_USE_LINUX -c lapi.c -o
lapi.o
. . .
--- liblua-5.2.so ---
/usr/local/arm-gnueabi-freebsd/bin/ld: lapi.o: relocation R_ARM_MOVW_ABS_NC
against `a local symbol' can not be used when making a shared object; recompile
with -fPIC
lapi.o: error adding symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [liblua-5.2.so] Error code 1



(Side note: Even buildworld/buildkernel used: -target
armv6--freebsd11.0-gnueabi -march=armv7-a -mcpu=cortex-a7 -mfloat-abi=softfp
-mno-unaligned-access based on my src.conf for the rpi2.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list