Skip to content

Cannot load module #1

@sllt

Description

@sllt

env: Janet 1.33.0-f91e5994 macos/x64/clang

I'm encountering an error when trying to execute jpm build

> jpm build --verbose
cc -std=c99 -I/usr/local/include/janet -I/usr/local/lib/janet -O2 -o build/template.so -shared -undefined dynamic_lookup -lpthread
ar rcs build/template.a
generating meta file build/template.meta.janet...
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
	ar -m [-TLsv] archive file ...
	ar -m [-abiTLsv] position archive file ...
	ar -p [-TLsv] archive [file ...]
	ar -q [-cTLsv] archive file ...
	ar -r [-cuTLsv] archive file ...
	ar -r [-abciuTLsv] position archive file ...
	ar -t [-TLsv] archive [file ...]
	ar -x [-ouTLsv] archive [file ...]
error: error: command failed with non-zero exit code 1
  in os/execute [src/core/os.c] on line 1375
  in shell [/usr/local/lib/janet/jpm/shutil.janet] (tailcall) on line 143, column 5
  in <anonymous> [/usr/local/lib/janet/jpm/rules.janet] on line 20, column 22
error: build fail
  in pdag [/usr/local/lib/janet/jpm/dagbuild.janet] (tailcall) on line 79, column 23
  in run [/usr/local/lib/janet/jpm/cli.janet] (tailcall) on line 88, column 9
  in run-main [boot.janet] on line 3951, column 16
  in cli-main [boot.janet] on line 4104, column 17

afterwards, I ran cargo build --release to generate the dylib and replaced the template.so with it.

> janet
Janet 1.33.0-f91e5994 macos/x64/clang - '(doc)' for help
repl:1:> (import /build/template)
janet interpreter runtime error at line 525 in file src/core/gc.c: please initialize janet before use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions