Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2016 12:38:13 -0800
From:      Russell Haley <russ.haley@gmail.com>
To:        Mark Millard <markmi@dsl-only.net>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: I've submitted 207324 for lang/lua52 needing to use -fPIC (kyua build blocked, clang380-import context)
Message-ID:  <CABx9NuQgdVwrSoBe_rMFYzSW6MHhWdfeQd6N_HmuMnM%2BDE4cwg@mail.gmail.com>
In-Reply-To: <CABx9NuSdJR8aHVyT=tDjVf0wRKACBfVsJYtbN4KHZ-zBKYC%2BVQ@mail.gmail.com>
References:  <F783EBCE-80EA-499C-A760-3E6F3EEBD404@dsl-only.net> <CABx9NuSdJR8aHVyT=tDjVf0wRKACBfVsJYtbN4KHZ-zBKYC%2BVQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 19, 2016 at 12:34 PM, Russell Haley <russ.haley@gmail.com> wrot=
e:
> On Fri, Feb 19, 2016 at 11:43 AM, Mark Millard <markmi@dsl-only.net> wrot=
e:
>> When attempting to build devel/kyua on a rpi2b under projects/clang380-i=
mport -r295601 via portmaster -DK devel/kyua the attempt failed in lang/lua=
52 with:
>>
>> --- 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-gn=
ueabi-freebsd/bin/ -Wall -DLUA_COMPAT_ALL  -pipe -mfloat-abi=3Dsoftfp  -isy=
stem /usr/local/include -g -fno-strict-aliasing -I/usr/local/include -isyst=
em /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; r=
ecompile with -fPIC
>> lapi.o: error adding symbols: Bad value
>> clang: error: linker command failed with exit code 1 (use -v to see invo=
cation)
>> *** [liblua-5.2.so] Error code 1
>>
> I'm not sure about the kyua stuff, but I was getting a "similar error"
> when I built lua5.3 using clang on x64. From memory, I recall adding
> the -fPIC option to the lua5.3 Makefile (as the error indicates) and
> also having to remove a -luab (or something like that) and then it
> worked. Potentially you could just install lua from ports first?

> http://www.freshports.org/lang/lua52/

Sorry, I meant pkg. But it looks like it's not being built for armv6?
http://portsmon.freebsd.org/portoverview.py?category=3Dlang&portname=3Dlua5=
2

Russ



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABx9NuQgdVwrSoBe_rMFYzSW6MHhWdfeQd6N_HmuMnM%2BDE4cwg>