Skip to content

building error at lua.unwrap().include_paths[0] #114

Closed
@ildar

Description

@ildar

having (ALTLinux) installation with

$ pkg-config --libs --cflags "lua" "lua >= 5.3" "lua < 5.4"
-llua -lm -ldl

building fails:

$ cd /tmp/remote-builds/mlua/ ; strace -fto /tmp/1.stra cargo b --features lua53
   Compiling mlua v0.7.0 (/tmp/remote-builds/mlua)
   Compiling serde v1.0.132
error: failed to run custom build command for `mlua v0.7.0 (/tmp/remote-builds/mlua)`

Caused by:
  process didn't exit successfully: `/tmp/remote-builds/mlua/target/debug/build/mlua-69c0ca88b62928dc/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=LUA_INC
...
  --- stderr
  thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', build/find_normal.rs:75:9

Plz add the corresponding check. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions