lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Jul 21, 2017 at 10:07 PM, jungle boogie <jungleboogie0@gmail.com> wrote:
> Hi Russell,
> On 07/21/2017 08:48 PM, Russell Haley wrote:
>>
>> Hi,
>>
>> I've built lua a bunch of times on TrueOS (aka FreeBSD 12-Current)
>> using the files from git. I usually mangle the Makefile myself to use
>> clang and make it install where I want to.
>>
>> Anyway, I have an arm board with FreeBSD 12-Current on it. I tried
>> building from the tarball provided by the lua.org website. I modified
>> the Makefile to use clang because, well, this is FreeBSD! I added the
>> CC=cc flag from osx target to the freebsd.
>>
>
> Lua 5.3.4 is available as a package/port. Depending on your board, you might
> be able to do pkg install lua53.
>
> If not, here's the makefile on how the port is build, it might give you an
> idea of what to do:
>
> https://svnweb.freebsd.org/ports/head/lang/lua53/Makefile?view=markup&pathrev=435741

Thanks, for some reason there is no lua53 in pkg so I thought I'd give
the "old tar ball" a try. I figured the freebsd build target would
work. I just checked and I get the same error when building from ports
so now I see why it's not in the pkg repository. I'll report it with
FreeBSD.

cc  -Wall -Wextra -DLUA_COMPAT_5_2  -O -pipe  -fPIC -isystem
/usr/local/include -fno-strict-aliasing -I/usr/local/include -isystem
/usr/local/include -DLUA_USE_LINUX -c lua.c -o lua.o
In file included from lua.c:12:
In file included from /usr/include/signal.h:40:
/usr/include/machine/ucontext.h:81:2: error: unknown type name
'size_t'; did you mean '__size_t'?
        size_t          mc_vfp_size;
        ^
/usr/include/machine/_types.h:87:20: note: '__size_t' declared here
typedef __uint32_t      __size_t;               /* sizeof() */
                        ^
1 error generated.
*** [lua.o] Error code 1

make[1]: stopped in /usr/ports/lang/lua53/work/lua-5.3.4/src
1 error

make[1]: stopped in /usr/ports/lang/lua53/work/lua-5.3.4/src
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/lua53


Thanks!
Russ