Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2016 05:50:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207324] lang/lua52: on arm (rpi2), lapi.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' . . . recompile with -fPIC
Message-ID:  <bug-207324-13@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: markmi@dsl-only.net

When attempting to build devel/kyua on a rpi2b under projects/clang380-impo=
rt
-r295601 via portmaster -DK devel/kyua the attempt failed in lang/lua52 wit=
h:

--- lapi.o ---
/usr/bin/clang -target armv6--freebsd11.0-gnueabi -march=3Darmv7-a
-mcpu=3Dcortex-a7 -mfloat-abi=3Dsoftfp -mno-unaligned-access
-B/usr/local/arm-gnueabi-freebsd/bin/ -Wall -DLUA_COMPAT_ALL  -pipe
-mfloat-abi=3Dsoftfp  -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; recom=
pile
with -fPIC
lapi.o: error adding symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocat=
ion)
*** [liblua-5.2.so] Error code 1



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

--=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-207324-13>