[Bug 285076] lang/emilua: Update to 0.11.1
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 285076] lang/emilua: Update to 0.11.1"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Mar 2025 11:55:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285076
--- Comment #8 from Gleb Popov <arrowd@FreeBSD.org> ---
The patch now applied and build passes on FreeBSD 13 and 14 for amd64. However,
it fails on i386:
../tool/genmain.cpp:264:52: error: non-constant-expression cannot be narrowed
from type 'streamoff' (aka 'long long') to 'lua_Integer' (aka 'int') in
initializer list [-Wc++11-narrowing]
264 | new (bs) byte_span_handle{std::move(contents), sz, sz};
| ^~
../tool/genmain.cpp:264:52: note: insert an explicit cast to silence this issue
264 | new (bs) byte_span_handle{std::move(contents), sz, sz};
| ^~
|
static_cast<lua_Integer>( )
../tool/genmain.cpp:264:56: error: non-constant-expression cannot be narrowed
from type 'streamoff' (aka 'long long') to 'lua_Integer' (aka 'int') in
initializer list [-Wc++11-narrowing]
264 | new (bs) byte_span_handle{std::move(contents), sz, sz};
| ^~
../tool/genmain.cpp:264:56: note: insert an explicit cast to silence this issue
264 | new (bs) byte_span_handle{std::move(contents), sz, sz};
| ^~
|
static_cast<lua_Integer>( )
2 errors generated.
We can mark the port as
ONLY_FOR_ARCHS= amd64 aarch64
as a workaround.
--
You are receiving this mail because:
You are the assignee for the bug.