rdp / google_hash

wrapper for google's hash functions, for ruby
BSD 3-Clause "New" or "Revised" License
92 stars 16 forks source link

Failing to install in JRuby 9.1.5.0, 9.1.8.0 #43

Open aabes opened 7 years ago

aabes commented 7 years ago

Attempted on both Ubuntu 14.04, with: gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

And on OSX Sierra, with: gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.1.0 (clang-802.0.38) Target: x86_64-apple-darwin16.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Both failures essentially identical:

checking for tr1/functional... RuntimeError: The compiler failed to generate an executable file. You have to install development tools first.

With .rvm/gems/jruby-9.1.8.0/extensions/universal-java-1.8/2.3.0/google_hash-0.9.0/mkmf.log having:


" -o conftest -I/include/universal-java1.8 -I/Users/aabes/.rvm/rubies/jruby-9.1.8.0/lib/ruby/include/ruby/backward -I/Users/aabes/.rvm/rubies/jruby-9.1.8.0/lib/ruby/include -I.  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE    -I./local_installed/include   -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions  -I./local_installed/include  conftest.c  -L. -L/Users/aabes/.rvm/rubies/jruby-9.1.8.0/lib    -arch x86_64      "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ruby.h>
4: int main(int argc, char **argv)
5: {
6:   return 0;
7: }
/* end */

To make things interesting the same setup has no issue installing on MRI on 2.3.1

rdp commented 7 years ago

Do c extensions work in jruby at all these days?

On Sun, Apr 2, 2017 at 12:10 PM, aabes notifications@github.com wrote:

Attempted on both Ubuntu 14.04, with: gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

And on OSX Sierra, with: gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.1.0 (clang-802.0.38) Target: x86_64-apple-darwin16.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain/usr/bin

Both failures essentially identical:

checking for tr1/functional... RuntimeError: The compiler failed to generate an executable file. You have to install development tools first.

With .rvm/gems/jruby-9.1.8.0/extensions/universal-java-1.8/ 2.3.0/google_hash-0.9.0/mkmf.log having:

" -o conftest -I/include/universal-java1.8 -I/Users/aabes/.rvm/rubies/jruby-9.1.8.0/lib/ruby/include/ruby/backward -I/Users/aabes/.rvm/rubies/jruby-9.1.8.0/lib/ruby/include -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I./local_installed/include -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -I./local_installed/include conftest.c -L. -L/Users/aabes/.rvm/rubies/jruby-9.1.8.0/lib -arch x86_64 " checked program was: / begin / 1: #include "ruby.h" 2: 3: #include 4: int main(int argc, char *argv) 5: { 6: return 0; 7: } / end */

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rdp/google_hash/issues/43, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0JHdut6nuDHSz9olD2SuiuPpJSWQks5rr-ShgaJpZM4Mw4X1 .