Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing LUV via Luarocks under Cygwin x86 #523

Open
osadchij opened this issue Jan 6, 2021 · 4 comments
Open

Installing LUV via Luarocks under Cygwin x86 #523

osadchij opened this issue Jan 6, 2021 · 4 comments
Labels

Comments

@osadchij
Copy link

osadchij commented Jan 6, 2021

I've successfully installed lpeg,mpack and bit via luarocks, but when calling Install LUV it stops on linking lua.dll.

PKG-CONFIG --LIST-ALL

$ pkg-config --list-all
libuv libuv - multi-platform support library with a focus on asynchronous I/O.
lua Lua - An Extensible Extension Language
luajit LuaJIT - Just-in-time compiler for Lua
netcdf-fortran netcdf-fortran - NetCDF Client Library for Fortran
netcdf netcdf-c - NetCDF Client Library for C
uuid uuid - Universally unique id library

LUAROCKS CONFIG

$ luarocks config
accept_unknown_fields = false
arch = "cygwin-x86"
cache = {
luajit_version = "2.0.4",
luajit_version_checked = true
}
cache_fail_timeout = 86400
cache_timeout = 60
check_certificates = false
cmake_generator = "Unix Makefiles"
config_files = {
nearest = "/home/user/.luarocks/config-5.1.lua",
system = {
file = "/usr/local/etc/luarocks/config-5.1.lua",
found = true
},
user = {
file = "/home/user/.luarocks/config-5.1.lua",
found = true
}
}
connection_timeout = 30
deploy_bin_dir = "/usr/local/bin"
deploy_lib_dir = "/usr/local/lib/lua/5.1"
deploy_lua_dir = "/usr/local/share/lua/5.1"
deps_mode = "one"
disabled_servers = {}
export_path_separator = ":"
external_deps_dirs = {
"/usr/local",
"/usr",
"/"
}
external_deps_patterns = {
bin = {
"?.exe",
"?.bat"
},
include = {
"?.h"
},
lib = {
"?.lib",
"?.dll",
"lib?.dll",
"lib?.dll.a",
"lib?.a"
}
}
external_deps_subdirs = {
bin = "bin",
include = "include",
lib = "lib"
}
external_lib_extension = "so"
fs_use_modules = true
gcc_rpath = true
home = "/home/user"
home_tree = "/home/user/.luarocks"
homeconfdir = "/home/user/.luarocks"
hooks_enabled = true
lib_extension = "dll"
lib_modules_path = "/lib/lua/5.1"
link_lua_explicitly = true
local_by_default = false
local_cache = "/home/user/.cache/luarocks"
lua_extension = "lua"
lua_found = {
lua_bindir = "/usr/bin",
lua_dir = "/usr",
lua_interpreter = "luajit",
lua_version = "5.1"
}
lua_interpreter = "luajit"
lua_modules_path = "/share/lua/5.1"
lua_version = "5.1"
major_version = "3.5"
no_manifest = false
obj_extension = "o"
processor = "x86"
program_series = "3.5"
program_version = "3.5.0"
rocks_dir = "/usr/local/lib/luarocks/rocks-5.1"
rocks_servers = {
{
"https://luarocks.org",
"https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/",
"https://luafr.org/luarocks/",
"http://luarocks.logiceditor.com/rocks"
}
}
rocks_subdir = "/lib/luarocks/rocks-5.1"
rocks_trees = {
{
name = "user",
root = "/home/user/.luarocks"
},
{
name = "system",
root = "/usr/local"
}
}
runtime_external_deps_patterns = {
bin = {
"?"
},
include = {
"?.h"
},
lib = {
"lib?.dll",
"lib?.dll.*"
}
}
runtime_external_deps_subdirs = {
bin = "bin",
include = "include",
lib = "lib"
}
static_lib_extension = "a"
sysconfdir = "/usr/local/etc/luarocks"
target_cpu = "x86"
upload = {
api_version = "1",
server = "https://luarocks.org",
tool_version = "1.0.0"
}
user_agent = "LuaRocks/3.5.0 cygwin-x86"
variables = {
AR = "ar",
BUNZIP2 = "bunzip2",
CC = "echo -llua | xargs gcc",
CFLAGS = "-O2 -fPIC",
CHMOD = "chmod",
CMAKE = "cmake",
CP = "cp",
CURL = "curl",
CURLNOCERTFLAG = "-k",
CVS = "cvs",
FIND = "find",
GIT = "git",
GPG = "gpg",
GUNZIP = "gunzip",
HG = "hg",
ICACLS = "icacls",
LD = "echo -llua | xargs gcc",
LIBFLAG = "-shared",
LIB_EXTENSION = "dll.a",
LS = "ls",
LUA = "/usr/bin/luajit",
LUALIB = "liblua.dll.a",
LUA_BINDIR = "/usr/bin",
LUA_DIR = "/usr",
LUA_INCDIR = "/usr/include",
LUA_LIBDIR = "/usr/lib",
LUA_LIBDIR_FILE = "liblua.dll.a",
MAKE = "make",
MD5 = "md5",
MD5SUM = "md5sum",
MKDIR = "mkdir",
MKTEMP = "mktemp",
OBJ_EXTENSION = "o",
OPENSSL = "openssl",
PWD = "pwd",
RANLIB = "ranlib",
RM = "rm",
RMDIR = "rmdir",
ROCKS_TREE = "/usr/local/lib/luarocks/rocks-5.1",
RSYNC = "rsync",
RSYNCFLAGS = "--exclude=.git -Oavz",
SCP = "scp",
SCRIPTS_DIR = "/usr/local/bin",
SEVENZ = "7z",
SSCM = "sscm",
SVN = "svn",
TAR = "tar",
TEST = "test",
TOUCH = "touch",
UNZIP = "unzip -n",
WGET = "wget",
WGETNOCERTFLAG = "--no-check-certificate",
ZIP = "zip",
external_lib_extension = "dll"
}
web_browser = "xdg-open"
wrapper_suffix = ""

INSTALL LOGS

$ luarocks install luv
Installing https://luarocks.org/luv-1.36.0-0.src.rock

luv 1.36.0-0 depends on lua >= 5.1 (5.1-1 provided by VM)
-- The C compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Warning at /usr/share/cmake-3.17.3/Modules/Platform/CYGWIN.cmake:15 (message):
CMake no longer defines WIN32 on Cygwin!

(1) If you are just trying to build this project, ignore this warning or
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
the CMake cache. If later configuration or build errors occur then this
project may have been written under the assumption that Cygwin is WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

(2) If you are developing this project, add the line

set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

at the top of your top-level CMakeLists.txt file or set the minimum
required version of CMake to 2.8.4 or higher. Then teach your project to
build on Cygwin without WIN32.
Call Stack (most recent call first):
/usr/share/cmake-3.17.3/Modules/CMakeSystemSpecificInformation.cmake:26 (include)
CMakeLists.txt:7 (project)

-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test UV_LINT_W4
-- Performing Test UV_LINT_W4 - Failed
-- Performing Test UV_LINT_WALL
-- Performing Test UV_LINT_WALL - Success
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER - Success
-- Performing Test UV_LINT_STRICT_PROTOTYPES
-- Performing Test UV_LINT_STRICT_PROTOTYPES - Success
-- Performing Test UV_LINT_EXTRA
-- Performing Test UV_LINT_EXTRA - Success
-- Lua: using information from luarocks
-- LUA_LIBDIR: /usr/lib
-- LUA_INCDIR: /usr/include
-- LUA: /usr/bin/luajit
-- Lua library: LUA_LIBRARIES-NOTFOUND
CMake Warning (dev) at CMakeLists.txt:187 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "CYGWIN" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_luv-1.36.0-0-XgFxFk/luv-1.36.0-0/build.luarocks
Scanning dependencies of target uv_a
[ 3%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/fs-poll.c.o
[ 6%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/idna.c.o
[ 9%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/inet.c.o
[ 12%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/random.c.o
[ 16%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/strscpy.c.o
[ 19%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/threadpool.c.o
[ 22%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/timer.c.o
[ 25%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/uv-common.c.o
[ 29%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/uv-data-getter-setters.c.o
[ 32%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/version.c.o
[ 35%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/async.c.o
[ 38%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/core.c.o
[ 41%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/dl.c.o
[ 45%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/fs.c.o
[ 48%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/getaddrinfo.c.o
[ 51%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/getnameinfo.c.o
[ 54%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/loop-watcher.c.o
[ 58%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/loop.c.o
[ 61%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/pipe.c.o
[ 64%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/poll.c.o
[ 67%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/process.c.o
[ 70%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/random-devurandom.c.o
[ 74%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/signal.c.o
[ 77%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/stream.c.o
[ 80%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/tcp.c.o
[ 83%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/thread.c.o
[ 87%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/tty.c.o
/tmp/luarocks_luv-1.36.0-0-XgFxFk/luv-1.36.0-0/deps/libuv/src/unix/tty.c: In function ‘uv__tty_is_slave’:
/tmp/luarocks_luv-1.36.0-0-XgFxFk/luv-1.36.0-0/deps/libuv/src/unix/tty.c:118:12: warning: implicit declaration of function ‘ptsname’; did you mean ‘ttyname’? [-Wimplicit-function-declaration]
118 | result = ptsname(fd) == NULL;
| ^~~~~~~
| ttyname
/tmp/luarocks_luv-1.36.0-0-XgFxFk/luv-1.36.0-0/deps/libuv/src/unix/tty.c:118:24: warning: comparison between pointer and integer
118 | result = ptsname(fd) == NULL;
| ^~
[ 90%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/udp.c.o
[ 93%] Linking C static library libuv_a.a
[ 93%] Built target uv_a
Scanning dependencies of target luv
[ 96%] Building C object CMakeFiles/luv.dir/src/luv.c.o
[100%] Linking C shared module luv.dll
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x4b): undefined reference to luaL_checkoption' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x82): undefined reference to lua_pushnil'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0xac): undefined reference to lua_pushfstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0xc0): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0xd8): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d): undefined reference to lua_pushlstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x165): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x188): undefined reference to luaL_error'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x230): undefined reference to lua_newuserdata' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x26f): undefined reference to lua_replace'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x29c): undefined reference to luaL_error' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x2cc): undefined reference to lua_gettop'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x2f0): undefined reference to lua_pcall' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x323): undefined reference to lua_settop'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x37a): undefined reference to lua_settop' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x393): undefined reference to lua_remove'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x3bc): undefined reference to lua_pushcclosure' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x3c4): undefined reference to lua_gettop'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x3db): undefined reference to lua_insert' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x3ec): undefined reference to lua_gettop'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x40c): undefined reference to lua_pcall' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x422): undefined reference to lua_remove'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x444): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x48c): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x4c4): undefined reference to lua_remove' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x4dc): undefined reference to lua_gettop'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x51d): undefined reference to lua_createtable' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x52b): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x543): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x552): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x56a): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x59d): undefined reference to lua_createtable'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x5ab): undefined reference to lua_pushinteger' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x5c3): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x5d2): undefined reference to lua_pushinteger' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x5ea): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x61d): undefined reference to lua_createtable' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x62b): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x643): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x652): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x66a): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x679): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x691): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x6a0): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x6b8): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x6c7): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x6df): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x6ee): undefined reference to lua_pushinteger'

...

/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14920): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14930): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14948): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14958): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14970): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14980): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14998): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x149a8): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x149c0): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x149d0): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x149e8): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x149f8): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a10): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a20): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a38): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a48): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a60): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a70): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a88): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14a98): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ab0): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ac0): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ad8): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ae8): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b00): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b10): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b28): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b38): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b50): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b60): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b78): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14b88): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ba0): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14bb0): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14bc8): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14bd8): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14bf0): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c00): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c18): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c28): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c40): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c50): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c68): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c78): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14c90): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ca0): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14cb8): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14cc8): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ce0): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14cf0): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d08): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d18): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d30): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d40): undefined reference to lua_pushinteger'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d58): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d70): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14d8c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14da4): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14dbc): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14dd4): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14dec): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14e04): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14e1c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14e34): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14e4c): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14e64): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14e7c): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14e94): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14eac): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ec4): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14edc): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ef4): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14f0c): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14f24): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14f3c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14f54): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14f6c): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14f84): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14f9c): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14fb4): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14fcc): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14fe4): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x14ffc): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15014): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1502c): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15044): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1505c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15074): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1508c): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x150a4): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x150bc): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x150d4): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x150ec): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15104): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1511c): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15134): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1514c): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15164): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1517c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15194): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x151ac): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x151c4): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x151dc): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x151f4): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1520c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15224): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1523c): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15254): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1526c): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15284): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1529c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x152b4): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x152cc): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x152e4): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x152fc): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15314): undefined reference to lua_setfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1535c): undefined reference to luaL_newmetatable' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15374): undefined reference to lua_pushstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1538c): undefined reference to lua_tolstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x153a4): undefined reference to lua_pushcclosure'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x153b4): undefined reference to lua_settable' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x153c4): undefined reference to lua_settop'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x153d4): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x153ec): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x153fc): undefined reference to lua_newuserdata' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15416): undefined reference to lua_getfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15426): undefined reference to lua_type' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15436): undefined reference to lua_setmetatable'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15446): undefined reference to lua_rawset' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15487): undefined reference to luaL_error'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1549c): undefined reference to lua_pushstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x154b4): undefined reference to lua_tolstring'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x154cc): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x154e5): undefined reference to luaL_newstate'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x154ef): undefined reference to luaL_openlibs' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15507): undefined reference to lua_getfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x15517): undefined reference to lua_type' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1552f): undefined reference to lua_getfield'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1553f): undefined reference to lua_type' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1554f): undefined reference to lua_remove'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1556f): undefined reference to lua_setfield' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x1557f): undefined reference to lua_settop'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x4b31): undefined reference to lua_close' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x3b): undefined reference to uv__hrtime'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x224): undefined reference to uv__fs_event_close' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x450): undefined reference to uv__hrtime'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x50d): undefined reference to uv__io_poll' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x6a8): undefined reference to uv__hrtime'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x707): undefined reference to uv__hrtime' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x7bb): undefined reference to uv__hrtime'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(core.c.o):core.c:(.text+0x132e): undefined reference to uv__platform_invalidate_fd' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(loop.c.o):loop.c:(.text+0xa4): undefined reference to uv__hrtime'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(loop.c.o):loop.c:(.text+0x128): undefined reference to uv__platform_loop_init' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(loop.c.o):loop.c:(.text+0x1c3): undefined reference to uv__platform_loop_delete'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(loop.c.o):loop.c:(.text+0x27f): undefined reference to uv__io_fork' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(loop.c.o):loop.c:(.text+0x315): undefined reference to uv__platform_loop_delete'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(poll.c.o):poll.c:(.text+0xe5): undefined reference to uv__platform_invalidate_fd' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(poll.c.o):poll.c:(.text+0x13e): undefined reference to uv__io_check_fd'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(poll.c.o):poll.c:(.text+0x377): undefined reference to uv__platform_invalidate_fd' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(thread.c.o):thread.c:(.text+0x6e5): undefined reference to uv__hrtime'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/luv.dir/build.make:105: luv.dll] Error 1
make[1]: *** [CMakeFiles/Makefile2:145: CMakeFiles/luv.dir/all] Error 2
make: *** [Makefile:150: all] Error 2

Error: Build error: Failed building.

@squeek502
Copy link
Member

LUA_LIBDIR_FILE = "liblua.dll.a",

Looks like we should probably be using this instead of having CMake try to guess the name of the intended lib when using Luarocks. Relevant code:

luv/CMakeLists.txt

Lines 89 to 101 in 464b735

GET_FILENAME_COMPONENT(LUA_EXEC_NAME ${LUA_EXECUTABLE} NAME_WE)
IF(LUA_EXEC_NAME STREQUAL "luajit")
FIND_LIBRARY(LUA_LIBRARIES
NAMES luajit libluajit
PATHS ${LUA_LIBDIR}
NO_DEFAULT_PATH)
ELSEIF(LUA_EXEC_NAME MATCHES "lua.*")
FIND_LIBRARY(LUA_LIBRARIES
NAMES lua lua54 lua53 lua52 lua51 liblua liblua54 liblua53 liblua52 liblua51
PATHS ${LUA_LIBDIR}
NO_DEFAULT_PATH)
ENDIF()
MESSAGE(STATUS "Lua library: ${LUA_LIBRARIES}")

luv/luv-scm-0.rockspec

Lines 25 to 33 in 464b735

variables = {
CMAKE_C_FLAGS="$(CFLAGS)",
CMAKE_MODULE_LINKER_FLAGS="$(LIBFLAG)",
LUA_LIBDIR="$(LUA_LIBDIR)",
LUA_INCDIR="$(LUA_INCDIR)",
LUA="$(LUA)",
LIBDIR="$(LIBDIR)",
LUADIR="$(LUADIR)",
},

@osadchij
Copy link
Author

osadchij commented Jan 6, 2021

LUA_LIBDIR_FILE = "liblua.dll.a",

Looks like we should probably be using this instead of having CMake try to guess the name of the intended lib when using Luarocks. Relevant code:

luv/CMakeLists.txt

Lines 89 to 101 in 464b735

GET_FILENAME_COMPONENT(LUA_EXEC_NAME ${LUA_EXECUTABLE} NAME_WE)
IF(LUA_EXEC_NAME STREQUAL "luajit")
FIND_LIBRARY(LUA_LIBRARIES
NAMES luajit libluajit
PATHS ${LUA_LIBDIR}
NO_DEFAULT_PATH)
ELSEIF(LUA_EXEC_NAME MATCHES "lua.*")
FIND_LIBRARY(LUA_LIBRARIES
NAMES lua lua54 lua53 lua52 lua51 liblua liblua54 liblua53 liblua52 liblua51
PATHS ${LUA_LIBDIR}
NO_DEFAULT_PATH)
ENDIF()
MESSAGE(STATUS "Lua library: ${LUA_LIBRARIES}")

luv/luv-scm-0.rockspec

Lines 25 to 33 in 464b735

variables = {
CMAKE_C_FLAGS="$(CFLAGS)",
CMAKE_MODULE_LINKER_FLAGS="$(LIBFLAG)",
LUA_LIBDIR="$(LUA_LIBDIR)",
LUA_INCDIR="$(LUA_INCDIR)",
LUA="$(LUA)",
LIBDIR="$(LIBDIR)",
LUADIR="$(LUADIR)",
},

GET_FILENAME_COMPONENT(LUA_EXEC_NAME ${LUA_EXECUTABLE} NAME_WE)
IF(LUA_EXEC_NAME STREQUAL "luajit")
FIND_LIBRARY(LUA_LIBRARIES
NAMES luajit libluajit
PATHS ${LUA_LIBDIR}
NO_DEFAULT_PATH)
ELSEIF(LUA_EXEC_NAME MATCHES "lua.*")
FIND_LIBRARY(LUA_LIBRARIES
NAMES lua lua53 lua52 lua51 liblua liblua53 liblua52 liblua51
PATHS ${LUA_LIBDIR}
NO_DEFAULT_PATH)
ENDIF()
SET(LUA_LIBRARIES ${LUA_LIBDIR_FILE})
MESSAGE(STATUS "Lua library: ${LUA_LIBRARIES}")

I've tried force SET(LUA_LIBRARIES ${LUA_LIBDIR_FILE}), but got the same result.

/tmp/luarocks_luv-1.36.0-0-64qLmY/luv-1.36.0-0
$ luarocks make

luv 1.36.0-0 depends on lua >= 5.1 (5.1-1 provided by VM)
-- The C compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Warning at /usr/share/cmake-3.17.3/Modules/Platform/CYGWIN.cmake:15 (message):
CMake no longer defines WIN32 on Cygwin!

(1) If you are just trying to build this project, ignore this warning or
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
the CMake cache. If later configuration or build errors occur then this
project may have been written under the assumption that Cygwin is WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

(2) If you are developing this project, add the line

set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

at the top of your top-level CMakeLists.txt file or set the minimum
required version of CMake to 2.8.4 or higher. Then teach your project to
build on Cygwin without WIN32.
Call Stack (most recent call first):
/usr/share/cmake-3.17.3/Modules/CMakeSystemSpecificInformation.cmake:26 (include)
CMakeLists.txt:7 (project)

-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test UV_LINT_W4
-- Performing Test UV_LINT_W4 - Failed
-- Performing Test UV_LINT_WALL
-- Performing Test UV_LINT_WALL - Success
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER - Success
-- Performing Test UV_LINT_STRICT_PROTOTYPES
-- Performing Test UV_LINT_STRICT_PROTOTYPES - Success
-- Performing Test UV_LINT_EXTRA
-- Performing Test UV_LINT_EXTRA - Success
-- Lua: using information from luarocks
-- LUA_LIBDIR: /usr/lib
-- LUA_INCDIR: /usr/include
-- LUA: /usr/bin/luajit
-- Lua library: liblua.dll.a
CMake Warning (dev) at CMakeLists.txt:188 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "CYGWIN" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_luv-1.36.0-0-64qLmY/luv-1.36.0-0/build.luarocks
Scanning dependencies of target uv_a
[ 93%] Built target uv_a
Scanning dependencies of target luv
[ 96%] Building C object CMakeFiles/luv.dir/src/luv.c.o
[100%] Linking C shared module luv.dll
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x4b): undefined reference to luaL_checkoption' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0x82): undefined reference to lua_pushnil'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0xac): undefined reference to lua_pushfstring' /usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: CMakeFiles/luv.dir/src/luv.c.o:luv.c:(.text+0xc0): undefined reference to lua_pushstring'
....................................
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: deps/libuv/libuv_a.a(thread.c.o):thread.c:(.text+0x6e5): undefined reference to `uv__hrtime'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/luv.dir/build.make:105: luv.dll] Error 1
make[1]: *** [CMakeFiles/Makefile2:145: CMakeFiles/luv.dir/all] Error 2
make: *** [Makefile:150: all] Error 2

Error: Build error: Failed building.

@osadchij
Copy link
Author

osadchij commented Jan 6, 2021

Am I a great coder or something now? ^_^
Sorry if marked something wrong, started learning cygwin and github past week.

Just changed target_link_libraries args

foreach(TARGET_NAME ${ACTIVE_TARGETS})
if(WIN32)
if (LUA)
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} ${LUA_LIBRARIES})
else (LUA)
if (USE_LUAJIT)
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} ${LUAJIT_LIBRARIES})
else (USE_LUAJIT)
if (LUA_BUILD_TYPE STREQUAL System)
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} ${LUA_LIBRARIES})
else (LUA_BUILD_TYPE STREQUAL System)
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} lualib)
endif (LUA_BUILD_TYPE STREQUAL System)
endif (USE_LUAJIT)
endif (LUA)
elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES} rt)
else()
> target_link_libraries(luv "/usr/lib/libuv.dll.a" lua "/usr/lib/liblua.dll.a")
#message("IM HEEEEEERRRRREEEEE")
#target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES})

endif()

$ luarocks make

luv 1.36.0-0 depends on lua >= 5.1 (5.1-1 provided by VM)
CMake Warning at /usr/share/cmake-3.17.3/Modules/Platform/CYGWIN.cmake:15 (message):
CMake no longer defines WIN32 on Cygwin!

(1) If you are just trying to build this project, ignore this warning or
quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
the CMake cache. If later configuration or build errors occur then this
project may have been written under the assumption that Cygwin is WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

(2) If you are developing this project, add the line

set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

at the top of your top-level CMakeLists.txt file or set the minimum
required version of CMake to 2.8.4 or higher. Then teach your project to
build on Cygwin without WIN32.
Call Stack (most recent call first):
/usr/share/cmake-3.17.3/Modules/CMakeSystemSpecificInformation.cmake:26 (include)
CMakeLists.txt:7 (project)

-- Lua: using information from luarocks
-- LUA_LIBDIR: /usr/lib
-- LUA_INCDIR: /usr/include
-- LUA: /usr/bin/luajit
-- Lua library: libluajit-5.1.dll.a
CMake Warning (dev) at CMakeLists.txt:188 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "CYGWIN" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_luv-1.36.0-0-64qLmY/luv-1.36.0-0/build.luarocks
Scanning dependencies of target luv
[ 50%] Linking C shared module luv.dll
[100%] Built target luv
[100%] Built target luv
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/luarocks/rocks-5.1/luv/1.36.0-0/lib/luv.dll
luv 1.36.0-0 is now installed in /usr/local (license: Apache 2.0)

squeek502 added a commit to squeek502/luv that referenced this issue May 12, 2021
…d it ourselves

LuaRocks can provide LUALIB and LUA_LIBDIR variables which should be better than trying to find the right library file ourselves.

Note: it does not provide them if the LuaRocks config setting `link_lua_explicitly` is false, so LuaRocks will give the following warnings in that case:

    Warning: unmatched variable LUALIB
    Warning: unmatched variable LUA_LIBDIR

These warnings happens on Linux and Mac, since they don't link against the Lua libraries. I'm not sure if there's a clean way to avoid the warnings.

Attempts to address luvit#523.
squeek502 added a commit that referenced this issue May 12, 2021
…d it ourselves (#545)

LuaRocks can provide LUALIB and LUA_LIBDIR variables which should be better than trying to find the right library file ourselves.

Note: it does not provide them if the LuaRocks config setting `link_lua_explicitly` is false, so LuaRocks will give the following warnings in that case:

    Warning: unmatched variable LUALIB
    Warning: unmatched variable LUA_LIBDIR

These warnings happens on Linux and Mac, since they don't link against the Lua libraries. I'm not sure if there's a clean way to avoid the warnings.

Attempts to address #523.
@squeek502
Copy link
Member

squeek502 commented May 12, 2021

@osadchij I think #545 might solve this. Could you try with latest master?

git clone https://github.com/luvit/luv.git
cd luv
luarocks make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants