Giter VIP home page Giter VIP logo

Comments (8)

eregon avatar eregon commented on July 29, 2024

Hello,
I think you made a typo in the command (there is test 2 times):

/home/mencio/.rvm/rubies/ruby-2.4.1/bin/ruby ../truffleruby/tool/jt.rb test test :capi

It should be:

/home/mencio/.rvm/rubies/ruby-2.4.1/bin/ruby ../truffleruby/tool/jt.rb test :capi

from truffleruby.

mensfeld avatar mensfeld commented on July 29, 2024

Hello @eregon, thank you for your help. Unfortunately it doesn't help. I probably did a typo when copying stuff.

Here's a single "test" example:

/home/mencio/.rvm/rubies/ruby-2.4.1/bin/ruby ../truffleruby/tool/jt.rb test :capi
$ /home/mencio/.graalvm/truffleruby/bin/truffleruby -Xcore.load_path=/home/mencio/.graalvm/truffleruby/src/main/ruby -Xgraal.warn_unless=false spec/mspec/bin/mspec run --config spec/truffle.mspec --excl-tag fails :capi
/home/mencio/.graalvm/truffleruby/src/main/ruby/post-boot/post-boot.rb:17:in `method_missing': undefined method `print_time_metric' for Truffle::Boot:Module (NoMethodError)
	from /home/mencio/.graalvm/truffleruby/src/main/ruby/post-boot/post-boot.rb:17:in `<top (required)>'
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.oracle.graalvm.launcher.LegacyLauncher.main(stripped:20)
Caused by: org.graalvm.polyglot.PolyglotException: org.truffleruby.language.control.TruffleFatalException: couldn't load the post-boot code

from truffleruby.

eregon avatar eregon commented on July 29, 2024

Did you rebuild after cloning or pulling?
You can do it with:

tool/jt.rb build

This looks like it's using an old compiled version of TruffleRuby.
You might also want to run tests from truffleruby's directory if not already the case:

/home/mencio/.rvm/rubies/ruby-2.4.1/bin/ruby /tool/jt.rb test :capi

from truffleruby.

eregon avatar eregon commented on July 29, 2024

Actually the backtrace shows you are using GraalVM somehow (com.oracle.graalvm.launcher.LegacyLauncher).
Make sure GRAALVM_BIN and RUBY_BIN and GRAAL_HOME are all unset in your environment.

If you just want to use GraalVM's bin/ruby, there is no need for cloning truffleruby.

from truffleruby.

mensfeld avatar mensfeld commented on July 29, 2024

@eregon thank you for your help. I will close that one as it seems it is not truffleruby related but more about mine setup and mistakes I did during the installation and compilation process. Thank you once again for your help.

from truffleruby.

eregon avatar eregon commented on July 29, 2024

@mensfeld Glad I could help. Was it just the missing jt build?

from truffleruby.

mensfeld avatar mensfeld commented on July 29, 2024

@eregon yeah. I still have some problems with the native extensions (some like hitimes), but it's an early stage, so I don't expect everything to work :-)

Great job btw!

from truffleruby.

eregon avatar eregon commented on July 29, 2024

Right, we only tried a couple C-exts so far (openssl, syslog, zlib, puma, some db drivers, etc).
However, please report issues you run into, it's always good to know what users want to run and there might be an easy fix.

from truffleruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.