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

fail to compile ezstd #3067

Open
max-tern opened this issue Apr 29, 2024 · 3 comments
Open

fail to compile ezstd #3067

max-tern opened this issue Apr 29, 2024 · 3 comments
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium

Comments

@max-tern
Copy link

platfrom: max m1
gleam: v 1.1.0, installed with brew

gleam add ezstd & gleam run

LINK obj/conf_713d974d1b5639d588bafad52bd377d1/zstd
zstd build completed
~/WebstormProjects/gleam/e/build/dev/erlang/ezstd/_build/deps ~/WebstormProjects/gleam/e/build/dev/erlang/ezstd
~/WebstormProjects/gleam/e/build/dev/erlang/ezstd
 CPP    ezstd_nif.cc
 CPP    nif_utils.cc
 LD     ezstd_nif.so
===> Analyzing applications...
===> Compiling ezstd
===> Missing artifact priv/ezstd_nif.so
error: Shell command failure

if I clone repo: https://github.com/silviucpp/ezstd and rebar3 compile
same working if try rebar3 lib with rebar3 new lib myapp & rebar3 compile after adding ezstd as dep

try same with mix also looks like working

@max-tern max-tern added the bug Something isn't working label Apr 29, 2024
@Nicd
Copy link

Nicd commented Apr 29, 2024

Checking with watchexec, the ezstd_nif.so seems to be very briefly created into build/dev/erlang/ezstd/c_src/priv/ezstd_nif.so, before all the build output is removed. So maybe it's looking for it in the wrong directory, such as with elixir-lang/elixir#11530 (comment) (just something I found)

@Nicd
Copy link

Nicd commented Apr 29, 2024

Similar issue in another package: silviucpp/erlkaf#42

@lpil
Copy link
Member

lpil commented Apr 30, 2024

Thank you

@lpil lpil added help wanted Contributions encouraged priority:medium labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

3 participants