Skip to content

Instantly share code, notes, and snippets.

@rtyler
Created July 15, 2015 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtyler/aa4b08946b4e01edc777 to your computer and use it in GitHub Desktop.
Save rtyler/aa4b08946b4e01edc777 to your computer and use it in GitHub Desktop.
➜ thrift-native-extension git:(master) ✗ rm -rf build; ./gradlew -PjrubyVersion=1.7.20.1 -i jrubyPrepare
Starting Build
Settings evaluated using settings file '/master/settings.gradle'.
Projects loaded. Root project using build file '/home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build.gradle'.
Included projects: [root project 'thrift-native-extension']
Evaluating root project 'thrift-native-extension' using build file '/home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build.gradle'.
The 'JRubyPrepareJars' task type is deprecated and will be removed in a future version. Please use 'JRubyPrepare' tasl type instead.
Obsolete tasks - does nothing anymore.
All projects evaluated.
Selected primary task 'jrubyPrepare' from project :
Tasks to be executed: [task ':jrubyPrepare']
:jrubyPrepare (Thread[main,5,main]) started.
:jrubyPrepare
Executing task ':jrubyPrepare' (up-to-date check took 0.168 secs) due to:
Output file /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems has changed.
Output file /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems/gems/thrift-0.9.1/spec/socket_spec_shared.rb has been removed.
Output file /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems/gems/thrift-0.9.1/spec/binary_protocol_spec_shared.rb has been removed.
Download https://jcenter.bintray.com/org/jruby/jruby-complete/1.7.20.1/jruby-complete-1.7.20.1.pom
Download https://jcenter.bintray.com/org/jruby/jruby-artifacts/1.7.20.1/jruby-artifacts-1.7.20.1.pom
Found locally available resource with matching checksum: [https://jcenter.bintray.com/org/jruby/jruby-parent/1.7.20.1/jruby-parent-1.7.20.1.pom, /home/tyler/.m2/repository/org/jruby/jruby-parent/1.7.20.1/jruby-parent-1.7.20.1.pom]
Download https://jcenter.bintray.com/org/jruby/jruby-complete/1.7.20.1/jruby-complete-1.7.20.1.jar
Installing thrift-0.9.1.gem
Starting process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java''. Working directory: /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension Command: /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Dfile.encoding=utf-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/tyler/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.20.1/fc508c6fde26c65b4328f72a0370eff34aba3e73/jruby-complete-1.7.20.1.jar org.jruby.Main -S gem install /home/tyler/.gradle/caches/modules-2/files-2.1/rubygems/thrift/0.9.1/6b2ebcbd1c83f0cd0efe62cad6334f186114ffa7/thrift-0.9.1.gem --ignore-dependencies --install-dir=/home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems --no-user-install --wrappers --no-document --local
Successfully started process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java''
Building native extensions. This could take a while...
Successfully installed thrift-0.9.1
1 gem installed
Starting process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java''. Working directory: /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension Command: /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/tyler/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.20.1/fc508c6fde26c65b4328f72a0370eff34aba3e73/jruby-complete-1.7.20.1.jar org.jruby.Main -r jruby/commands -e JRuby::Commands.generate_dir_info( '/home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems' )
Successfully started process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java''
:jrubyPrepare (Thread[main,5,main]) completed. Took 1 mins 2.055 secs.
BUILD SUCCESSFUL
Total time: 1 mins 5.062 secs
This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.4/userguide/gradle_daemon.html
➜ thrift-native-extension git:(master) ✗ rm -rf build; ./gradlew -PjrubyVersion=1.7.21 -i jrubyPrepare
Starting Build
Settings evaluated using settings file '/master/settings.gradle'.
Projects loaded. Root project using build file '/home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build.gradle'.
Included projects: [root project 'thrift-native-extension']
Evaluating root project 'thrift-native-extension' using build file '/home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build.gradle'.
The 'JRubyPrepareJars' task type is deprecated and will be removed in a future version. Please use 'JRubyPrepare' tasl type instead.
Obsolete tasks - does nothing anymore.
All projects evaluated.
Selected primary task 'jrubyPrepare' from project :
Tasks to be executed: [task ':jrubyPrepare']
:jrubyPrepare (Thread[main,5,main]) started.
:jrubyPrepare
Executing task ':jrubyPrepare' (up-to-date check took 0.151 secs) due to:
Output file /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems has changed.
Output file /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems/gems/thrift-0.9.1/spec/socket_spec_shared.rb has been removed.
Output file /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems/gems/thrift-0.9.1/spec/binary_protocol_spec_shared.rb has been removed.
Installing thrift-0.9.1.gem
Starting process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java''. Working directory: /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension Command: /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Dfile.encoding=utf-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/tyler/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.21/e061b9f399a5e8d5cfcca84d4a6baf879111e83c/jruby-complete-1.7.21.jar org.jruby.Main -S gem install /home/tyler/.gradle/caches/modules-2/files-2.1/rubygems/thrift/0.9.1/6b2ebcbd1c83f0cd0efe62cad6334f186114ffa7/thrift-0.9.1.gem --ignore-dependencies --install-dir=/home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems --no-user-install --wrappers --no-document --local
Successfully started process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java''
Building native extensions. This could take a while...
ERROR: Error installing /home/tyler/.gradle/caches/modules-2/files-2.1/rubygems/thrift/0.9.1/6b2ebcbd1c83f0cd0efe62cad6334f186114ffa7/thrift-0.9.1.gem:
ERROR: Failed to build gem native extension.
"java -cp :/home/tyler/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.21/e061b9f399a5e8d5cfcca84d4a6baf879111e83c/jruby-complete-1.7.21.jar org.jruby.Main" -r ./siteconf20150715-4659-1w9o9rt.rb extconf.rb
/bin/sh: 1: java -cp :/home/tyler/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.21/e061b9f399a5e8d5cfcca84d4a6baf879111e83c/jruby-complete-1.7.21.jar org.jruby.Main: not found
extconf failed, uncaught signal 127
Gem files will remain installed in /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems/gems/thrift-0.9.1 for inspection.
Results logged to /home/tyler/source/github/jruby-gradle/experiments/thrift-native-extension/build/gems/extensions/universal-java-1.7/1.9/thrift-0.9.1/gem_make.out
:jrubyPrepare FAILED
:jrubyPrepare (Thread[main,5,main]) completed. Took 10.443 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jrubyPrepare'.
> Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 13.296 secs
➜ thrift-native-extension git:(master) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment