Skip to content

Cross compile fails #18

Description

@amsitlab

error at here:

local src = dir.path(target_path, "release", rustlib)
local dst = dir.path(libdir, mod .. "." .. cfg.lib_extension)
local ok, err = fs.copy(src, dst, "exec")
if not ok then
return nil, "Failed installing " .. src .. " in " .. dst .. ": " .. err
end
end
if rockspec.build.include then
local cwd = dir.path(dir.dir_name(rockspec.local_abs_filename), rockspec.name)
local luadir = path.lua_dir(rockspec.name, rockspec.version)
fs.make_dir(dir.dir_name(luadir))
for from, to in pairs(rockspec.build.include) do
if type(from) == "number" then
from = to
end
to = dir.path(luadir, to)
local ok, err = fs.copy(dir.path(cwd, from), to, "exec")
if not ok then
return nil, "Failed copying " .. from .. " in " .. to .. ": " .. err
end
end

because you just search output in target/release
error will produce when user type CARGO_BUILD_TARGET=aarch64-unknown-linux-gnu luarock build --pack-binary-rock --no-install ....
this command will produce output into target/aarch64-unknown-linux-gnu/release, so.. it will fails at line 105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions