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

Error building executable gem: error compiling squash.c #170

Open
soumyaray opened this issue Nov 12, 2022 · 0 comments
Open

Error building executable gem: error compiling squash.c #170

soumyaray opened this issue Nov 12, 2022 · 0 comments

Comments

@soumyaray
Copy link

Trying to build an executable gem. The error message I get when it crashes:

compiling miniprelude.c
compiling autoupdate_autoupdate.c
compiling autoupdate_exepath.c
compiling autoupdate_inflate.c
compiling autoupdate_tmpf.c
compiling autoupdate_utils.c
compiling squash_cache.c
compiling squash_decompress.c
compiling squash_dir.c
squash_dir.c:479:2: error: implicitly declaring library function 'free' with type 'void (void *)' [-Werror,-Wimplicit-function-declaration]
        free(path0);
        ^
squash_dir.c:479:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'free'
1 error generated.
make: *** [squash_dir.o] Error 1
Failed running [{"CI"=>"true", "ENCLOSE_IO_USE_ORIGINAL_RUBY"=>"1", "CFLAGS"=>" -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe  -I/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/zlib  -I/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/openssl/include  -I/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/gdbm/build/include  -I/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/yaml/build/include  -I/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/libffi/build/lib/libffi-3.2.1/include  -I/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/ncurses/build/include  -I/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/readline/build/include ", "LDFLAGS"=>" -L/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/zlib /var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/zlib/libz.a  -L/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/openssl  -L/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/gdbm/build/lib  -L/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/yaml/build/lib  -L/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/libffi/build/lib  -L/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/ncurses/build/lib  -L/var/folders/vn/gm5v6xsn65v5ct5nj1jl3n540000gn/T/rubyc/readline/build/lib ", "ENCLOSE_IO_RUBYC_1ST_PASS"=>"1", "ENCLOSE_IO_RUBYC_2ND_PASS"=>nil}, "make -j4 -j1"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant