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

Termux build fail #330

Closed
polyzium opened this issue Mar 19, 2017 · 2 comments
Closed

Termux build fail #330

polyzium opened this issue Mar 19, 2017 · 2 comments

Comments

@polyzium
Copy link

Discordrb fails to build on Termux:

@localhost ~ % gem install discordrb
Building native extensions.  This could take a while...
ERROR:  Error installing discordrb:
        ERROR: Failed to build gem native extension.

    current directory: /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/ffi-1.9.18/ext/ffi_c
/data/data/com.termux/files/usr/bin/ruby -r ./siteconf20170319-1465-tybola.rb extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for shlwapi.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/extensions/aarch64-linux/2.4.0/ffi-1.9.18/mkmf.log

current directory: /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/ffi-1.9.18/ext/ffi_c
make "DESTDIR=" clean

current directory: /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/ffi-1.9.18/ext/ffi_c
make "DESTDIR="
Configuring libffi
/data/data/com.termux/files/usr/bin/sh: 4: /usr/bin/env: not found
make: *** [libffi.mk:7: "/data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/ffi-1.9.18/ext/ffi_c/libffi-aarch64-linux-android"/.libs/libffi_convenience.a] Error 127

make failed, exit code 2

Gem files will remain installed in /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/ffi-1.9.18 for inspection.
Results logged to /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/extensions/aarch64-linux/2.4.0/ffi-1.9.18/gem_make.out
gem install discordrb  8.27s user 1.92s system 78% cpu 13.052 total

Unfortunately i don't know where to modify the Makefile. Even with coreutils it fails.

@meew0
Copy link
Collaborator

meew0 commented Apr 9, 2017

This seems like a problem with building FFI. You might want to check at https://github.com/ffi/ffi

@meew0 meew0 closed this as completed Apr 9, 2017
@greenbigfrog
Copy link
Contributor

Should work again when ffi/ffi#528 gets merged

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

3 participants