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

can not build on debian 9 #79

Open
bill-auger opened this issue Jun 17, 2016 · 10 comments
Open

can not build on debian 9 #79

bill-auger opened this issue Jun 17, 2016 · 10 comments

Comments

@bill-auger
Copy link

bill-auger commented Jun 17, 2016

i have been trying to get some version of rubinuis on my debian 9 system that will allow fancy to compile - i have tried several different versions old and new with various combinations of rubinius (2.2.6, 2.2.10, 2.4.1, 2.5.8, 3.12, 3.29) and llvm (3.4, 3.5, and 3.6) - the folks in the rubinius gitter chat advise that i am probably wasting my time and the best way forward would be to request that the fancy developers update to be compatible with their latest VM

i could post issues for the compile errors but they vary depending on which rubinuis version i use so im not sure which would be more helpful

i have not been able to compile any version of rubinius directly from git but with rvm i was able to install these two versions:

  • rbx-3.12 (using llvm-3.5 clang-3.5)
  • the current git HEAD (using llvm-3.6 clang-3.6)

i am willing to help any way i can with the disclaimer that i do not know the first thing about llvm or rubinius (other than that it is very difficult to build)

@bakkdoor
Copy link
Owner

Have you tried Rubinius v2.2.7? I think that's the last version that I successfully had Fancy working with.
Try getting that version working and let me know of any build issues with Fancy you run into with that version, if any.

It will be a pretty big effort to get Fancy running on the latest Rubinius version. A lot of internals have changed in Rubinius since the last time Fancy has been running successfully and I unfortunately won't have time to fix it any time soon.

Feel free to post any build errors here that you run into with that Rubinius version and I'll see if I can help.

@bill-auger
Copy link
Author

bill-auger commented Jun 17, 2016

this is the result with mounted binary rubinius 2.7

$ rvm list
rvm rubies
=* ruby-2.3.0 [ x86_64 ]


$ rvm mount -r https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/12.04/x86_64/rubinius-2.7.tar.bz2
https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/12.04/x86_64/rubinius-2.7.tar.bz2 - #configure
rubinius-2.7 - #download
** Resuming transfer from byte position 2609152
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17.3M  100 17.3M    0     0   794k      0  0:00:22  0:00:22 --:--:--  979k
No checksum for downloaded archive, recording checksum in user configuration.
rubinius-2.7 - #validate archive
rubinius-2.7 - #extract
rubinius-2.7 - #validate binary
rubinius-2.7 - #setup
rubinius-2.7 - #gemset created /home/bill/.rvm/gems/rubinius-2.7@global
rubinius-2.7 - #importing gemset /home/bill/.rvm/gemsets/global.gems........................................^[[B.......
rubinius-2.7 - #generating global wrappers........
rubinius-2.7 - #gemset created /home/bill/.rvm/gems/rubinius-2.7
rubinius-2.7 - #importing gemsetfile /home/bill/.rvm/gemsets/default.gems evaluated to empty gem list
rubinius-2.7 - #generating default wrappers........


$ rvm list
rvm rubies
   rubinius-2.7 [ x86_64 ]
=* ruby-2.3.0 [ x86_64 ]


$ rvm use rubinius-2.7
Using /home/bill/.rvm/gems/rubinius-2.7


$ rbx -v
rubinius 2.7 (2.1.0 ae84cf93 2015-12-20 3.4.2 JI) [x86_64-linux-gnu]
$ ruby -v
rubinius 2.7 (2.1.0 ae84cf93 2015-12-20 3.4.2 JI) [x86_64-linux-gnu]


$ bundle
Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.........
Installing rake 11.2.2
Installing addressable 2.4.0
Installing coderay 1.1.1
Installing unf_ext 0.0.7.2 with native extensions
Using ffi2-generators 0.1.1
Installing http-form_data 1.0.1
Installing http_parser.rb 0.6.0 with native extensions
Installing rainbow 2.1.0
Using rubinius-core-api 0.0.1
Installing rubinius-compiler 3.4
Installing rubinius-toolset 3.0
Using rubysl-abbrev 2.0.4
Using rubysl-base64 2.0.0
Using rubysl-benchmark 2.0.1
Using rubysl-bigdecimal 2.0.2
Using rubysl-cgi 2.0.1
Using rubysl-cgi-session 2.1.0
Using rubysl-cmath 2.0.0
Using rubysl-complex 2.0.0
Using rubysl-continuation 2.0.0
Installing rubysl-coverage 2.1
Using rubysl-english 2.0.0
Using rubysl-curses 2.0.1
Using rubysl-date 2.0.9
Using rubysl-delegate 2.0.1
Using rubysl-digest 2.0.8
Using rubysl-drb 2.0.1
Using rubysl-e2mmap 2.0.0
Using rubysl-enumerator 2.0.0
Using rubysl-erb 2.0.2
Using rubysl-expect 2.0.0
Using rubysl-fiber 2.0.0
Using rubysl-fileutils 2.0.3
Using rubysl-find 2.0.1
Using rubysl-forwardable 2.0.1
Using rubysl-getoptlong 2.0.0
Using rubysl-thread 2.0.3
Using rubysl-io-console 2.0.0
Using rubysl-io-nonblock 2.0.0
Using rubysl-io-wait 2.0.0
Using rubysl-ipaddr 2.0.0
Using rubysl-mathn 2.0.0
Using rubysl-logger 2.1.0
Using rubysl-shellwords 2.0.0
Using rubysl-monitor 2.0.0
Using rubysl-mutex_m 2.0.0
Using rubysl-net-ftp 2.0.1
Using rubysl-singleton 2.0.0
Using rubysl-net-imap 2.0.1
Using rubysl-net-pop 2.0.1
Using rubysl-net-protocol 2.0.1
Using rubysl-net-smtp 2.0.1
Using rubysl-net-telnet 2.0.0
Using rubysl-nkf 2.0.1
Using rubysl-observer 2.0.0
Using rubysl-open-uri 2.0.0
Using rubysl-open3 2.0.0
Installing rubysl-openssl 2.8.0 with native extensions
Using rubysl-ostruct 2.1.0
Installing rubysl-pathname 2.3
Using rubysl-prettyprint 2.0.3
Using rubysl-prime 2.0.1
Using rubysl-profile 2.0.0
Installing rubysl-profiler 2.1
Using rubysl-pstore 2.0.0
Using rubysl-pty 2.0.3
Using rubysl-rational 2.0.1
Using rubysl-resolv 2.1.2
Using rubysl-rexml 2.0.4
Using rubysl-rinda 2.0.1
Using rubysl-rss 2.0.0
Using rubysl-scanf 2.0.0
Using rubysl-securerandom 2.0.0
Using rubysl-set 2.0.1
Installing rubysl-stringio 2.1.0
Using rubysl-strscan 2.0.0
Using rubysl-sync 2.0.0
Using rubysl-tempfile 2.0.1
Using rubysl-thwait 2.0.0
Using rubysl-time 2.0.3
Using rubysl-timeout 2.0.0
Using rubysl-tmpdir 2.0.1
Using rubysl-tsort 2.0.1
Installing rubysl-unicode_normalize 2.0
Using rubysl-uri 2.0.0
Using rubysl-weakref 2.0.0
Using rubysl-webrick 2.0.0
Using rubysl-xmlrpc 2.0.0
Using rubysl-yaml 2.1.0
Using rubysl-zlib 2.0.1
Using bundler 1.11.2
Installing unf 0.1.4
Using rubysl-etc 2.0.3
Using rubysl-fcntl 2.0.4
Using rubysl-syslog 2.1.0
Using rubinius-actor 0.0.2
Using rubysl-csv 2.0.2
Using rubysl-matrix 2.1.0
Using rubysl-irb 2.1.1
Installing rubysl-mkmf 2.1
Using rubysl-optparse 2.0.1
Using rubysl-net-http 2.0.4
Installing domain_name 0.5.20160615
Installing rubysl-socket 2.1.1
Using rubysl-un 2.0.0
Installing http-cookie 1.0.2
Using rubysl-gserver 2.0.0
Installing http 2.0.1
Installing rubysl 2.2.0
Bundle complete! 8 Gemfile dependencies, 109 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.


$ bundle exec rake
rbx /mnt/data/code/fancy/boot/load.rb /mnt/data/code/fancy/lib/boot.fyc /mnt/data/code/fancy/lib/compiler.fyc /mnt/data/code/fancy/lib/compiler/command.fyc /mnt/data/code/fancy/boot/compile.fyc -- /mnt/data/code/fancy/lib/stack.fy
An exception occurred running /mnt/data/code/fancy/boot/load.rb

File not found /mnt/data/code/fancy/lib/boot.fyc (RuntimeError)

Backtrace:

  Fancy::BootstrapCodeLoader.load_compiled_file at boot/load.rb:36
                       { } in Object#__script__ at boot/load.rb:72
                                     Array#each at kernel/bootstrap/array.rb:76
                              Object#__script__ at boot/load.rb:72
               Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66
               Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:152
                        Rubinius::Loader#script at kernel/loader.rb:656
                          Rubinius::Loader#main at kernel/loader.rb:842
rake aborted!
Command failed with status (1): [rbx /mnt/data/code/fancy/boot/load.rb /mnt...]
kernel/bootstrap/proc.rb:20:in `call'
/mnt/data/code/fancy/Rakefile:27:in `sh!'
/mnt/data/code/fancy/Rakefile:228:in `compile'
/mnt/data/code/fancy/Rakefile:232:in `__script__'
kernel/bootstrap/proc.rb:20:in `call'
kernel/bootstrap/array.rb:76:in `each'
/home/bill/.rvm/rubies/rubinius-2.7/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
kernel/bootstrap/array.rb:76:in `each'
/home/bill/.rvm/rubies/rubinius-2.7/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
kernel/bootstrap/array.rb:76:in `each'
/home/bill/.rvm/rubies/rubinius-2.7/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
kernel/bootstrap/array.rb:76:in `each'
/home/bill/.rvm/gems/rubinius-2.7/gems/rake-11.2.2/exe/rake:27:in `__script__'
kernel/common/kernel.rb:498:in `load'
kernel/common/block_environment.rb:53:in `call_on_instance'
kernel/common/eval.rb:176:in `eval'
/home/bill/.rvm/gems/rubinius-2.7/bin/ruby_executable_hooks:15:in `__script__'
kernel/delta/code_loader.rb:66:in `load_script'
kernel/delta/code_loader.rb:152:in `load_script'
kernel/loader.rb:656:in `script'
kernel/loader.rb:842:in `main'
Tasks: TOP => default => compile => /mnt/data/code/fancy/lib/stack.fyc
(See full trace by running task with --trace)


$ ls /mnt/data/code/fancy/lib/
argv.fy       documentation.fy        fdoc_hook.fy  main.fy           parser      stringio.fy
array.fy      dynamic_slot_object.fy  fiber.fy      matchers.fy       parser.fy   struct.fy
block.fy      enumerable.fy           file.fy       message_sink.fy   proxies.fy  symbol.fy
boot.fy       enumerator.fy           future.fy     nil_class.fy      range.fy    system.fy
class.fy      eval.fy                 hash.fy       number.fy         rbx         time.fy
compiler      exception.fy            html.fy       object.fy         rbx.fy      true_class.fy
compiler.fy   false_class.fy          integer.fy    option_parser.fy  set.fy      tuple.fy
contracts.fy  fancy_spec.fy           iteration.fy  package           stack.fy    vars.fy
directory.fy  fdoc.fy                 kvo.fy        package.fy        string.fy   version.fy

@bill-auger
Copy link
Author

bill-auger commented Jun 17, 2016

different error with rvm compiled rbx-head (3.40)

$ rvm install rbx-head
rbx-head - #removing src/rbx-head..
For rbx (Rubinius) more than 500MB of free RAM might be required.
Checking requirements for debian.
Requirements installation successful.
ruby-2.3.0@rubinius - #regenerating binstubs...........
HEAD is now at 2f04021 Slightly relax logger semaphore threshold.
From https://github.com/rubinius/rubinius
 * branch            master     -> FETCH_HEAD
Already up-to-date.
git checkout master
Copying from repo to src path...
ruby-2.3.0@rubinius - #bundle install..
rbx-head - #configuring....................................
rbx-head - #compiling..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
rbx-head - #making binaries executable..
Installed rubygems 2.6.2 is newer than 2.4.8 provided with installed ruby, skipping installation, use --force to force installation.
rbx-head - #gemset created /home/bill/.rvm/gems/rbx-head@global
rbx-head - #importing gemset /home/bill/.rvm/gemsets/global.gems...............................................
rbx-head - #generating global wrappers........
rbx-head - #gemset created /home/bill/.rvm/gems/rbx-head
rbx-head - #importing gemsetfile /home/bill/.rvm/gemsets/default.gems evaluated to empty gem list
rbx-head - #generating default wrappers........


$ rvm list
rvm rubies
=> rbx-head [ x86_64 ]
   rubinius-2.7 [ x86_64 ]
 * ruby-2.3.0 [ x86_64 ]


$ rbx -v
rubinius 3.40.c3 (2.2.2 2f040211 2016-06-12 3.6.2) [x86_64-linux-gnu]
$ ruby -v
rubinius 3.40.c3 (2.2.2 2f040211 2016-06-12 3.6.2) [x86_64-linux-gnu]


$ bundle
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Installing rake 11.2.2
Installing addressable 2.4.0
Installing coderay 1.1.1
Installing unf_ext 0.0.7.2 with native extensions
Using ffi2-generators 0.1.1
Installing http-form_data 1.0.1
Installing http_parser.rb 0.6.0 with native extensions
Installing rainbow 2.1.0
Using rubinius-core-api 0.0.1
Using rubinius-compiler 3.4
Using rubinius-toolset 3.0
Using rubysl-abbrev 2.0.4
Using rubysl-base64 2.0.0
Using rubysl-benchmark 2.0.1
Using rubysl-bigdecimal 2.0.2
Using rubysl-cgi 2.0.1
Using rubysl-cgi-session 2.1.0
Using rubysl-cmath 2.0.0
Using rubysl-complex 2.0.0
Using rubysl-continuation 2.0.0
Using rubysl-coverage 2.1
Using rubysl-english 2.0.0
Using rubysl-curses 2.0.1
Using rubysl-date 2.0.9
Using rubysl-delegate 2.0.1
Using rubysl-digest 2.0.8
Using rubysl-drb 2.0.1
Using rubysl-e2mmap 2.0.0
Using rubysl-enumerator 2.0.0
Using rubysl-erb 2.0.2
Using rubysl-expect 2.0.0
Using rubysl-fiber 2.0.0
Using rubysl-fileutils 2.0.3
Using rubysl-find 2.0.1
Using rubysl-forwardable 2.0.1
Using rubysl-getoptlong 2.0.0
Using rubysl-thread 2.0.3
Using rubysl-io-console 2.0.0
Using rubysl-io-nonblock 2.0.0
Using rubysl-io-wait 2.0.0
Using rubysl-ipaddr 2.0.0
Using rubysl-mathn 2.0.0
Using rubysl-logger 2.1.0
Using rubysl-shellwords 2.0.0
Using rubysl-monitor 2.0.0
Using rubysl-mutex_m 2.0.0
Using rubysl-net-ftp 2.0.1
Using rubysl-singleton 2.0.0
Using rubysl-net-imap 2.0.1
Using rubysl-net-pop 2.0.1
Using rubysl-net-protocol 2.0.1
Using rubysl-net-smtp 2.0.1
Using rubysl-net-telnet 2.0.0
Using rubysl-nkf 2.0.1
Using rubysl-observer 2.0.0
Using rubysl-open-uri 2.0.0
Using rubysl-open3 2.0.0
Using rubysl-openssl 2.8.0
Using rubysl-ostruct 2.1.0
Using rubysl-pathname 2.3
Using rubysl-prettyprint 2.0.3
Using rubysl-prime 2.0.1
Using rubysl-profile 2.0.0
Using rubysl-profiler 2.1
Using rubysl-pstore 2.0.0
Using rubysl-pty 2.0.3
Using rubysl-rational 2.0.1
Using rubysl-resolv 2.1.2
Using rubysl-rexml 2.0.4
Using rubysl-rinda 2.0.1
Using rubysl-rss 2.0.0
Using rubysl-scanf 2.0.0
Using rubysl-securerandom 2.0.0
Using rubysl-set 2.0.1
Using rubysl-stringio 2.1.0
Using rubysl-strscan 2.0.0
Using rubysl-sync 2.0.0
Using rubysl-tempfile 2.0.1
Using rubysl-thwait 2.0.0
Using rubysl-time 2.0.3
Using rubysl-timeout 2.0.0
Using rubysl-tmpdir 2.0.1
Using rubysl-tsort 2.0.1
Using rubysl-unicode_normalize 2.0
Using rubysl-uri 2.0.0
Using rubysl-weakref 2.0.0
Using rubysl-webrick 2.0.0
Using rubysl-xmlrpc 2.0.0
Using rubysl-yaml 2.1.0
Using rubysl-zlib 2.0.1
Using bundler 1.12.5
Installing unf 0.1.4
Using rubysl-etc 2.0.3
Using rubysl-fcntl 2.0.4
Using rubysl-syslog 2.1.0
Using rubinius-actor 0.0.2
Using rubysl-csv 2.0.2
Using rubysl-matrix 2.1.0
Using rubysl-irb 2.1.1
Using rubysl-mkmf 2.1
Using rubysl-optparse 2.0.1
Using rubysl-net-http 2.0.4
Installing domain_name 0.5.20160615
Using rubysl-socket 2.1.1
Using rubysl-un 2.0.0
Installing http-cookie 1.0.2
Using rubysl-gserver 2.0.0
Installing http 2.0.1
Using rubysl 2.2.0
Bundle complete! 8 Gemfile dependencies, 109 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.


$ bundle exec rake
rbx /mnt/data/code/fancy/boot/load.rb /mnt/data/code/fancy/lib/boot.fyc /mnt/data/code/fancy/lib/compiler.fyc /mnt/data/code/fancy/lib/compiler/command.fyc /mnt/data/code/fancy/boot/compile.fyc -- /mnt/data/code/fancy/lib/stack.fy
An exception occurred running /mnt/data/code/fancy/boot/load.rb

no such file to load -- rubinius/toolset (LoadError)

Backtrace:

            Rubinius::CodeLoader#load_error at core/code_loader.rb:431
  Rubinius::CodeLoader#resolve_require_path at core/code_loader.rb:415
        { } in Rubinius::CodeLoader#require at core/code_loader.rb:103
                       Rubinius.synchronize at core/rubinius.rb:186
               Rubinius::CodeLoader#require at core/code_loader.rb:102
               Rubinius::CodeLoader.require at core/code_loader.rb:227
                     Kernel(Object)#require at core/kernel.rb:856
                          Object#__script__ at boot/fancy_ext.rb:23
               Rubinius::CodeLoader.require at core/code_loader.rb:233
                     Kernel(Object)#require at core/kernel.rb:856
                          Object#__script__ at boot/load.rb:63
           Rubinius::CodeLoader#load_script at core/code_loader.rb:505
           Rubinius::CodeLoader.load_script at core/code_loader.rb:590
                    Rubinius::Loader#script at core/loader.rb:679
                      Rubinius::Loader#main at core/loader.rb:862
rake aborted!
Command failed with status (1): [rbx /mnt/data/code/fancy/boot/load.rb /mnt...]
core/proc.rb:20:in `call'
/mnt/data/code/fancy/Rakefile:27:in `sh!'
/mnt/data/code/fancy/Rakefile:228:in `compile'
/mnt/data/code/fancy/Rakefile:232:in `__script__'
core/proc.rb:20:in `call'
core/array.rb:72:in `each'
/home/bill/.rvm/rubies/rbx-head/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
core/array.rb:72:in `each'
/home/bill/.rvm/rubies/rbx-head/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
core/array.rb:72:in `each'
/home/bill/.rvm/rubies/rbx-head/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
core/array.rb:72:in `each'
/home/bill/.rvm/gems/rbx-head/gems/rake-11.2.2/exe/rake:27:in `__script__'
core/kernel.rb:577:in `load'
core/block_environment.rb:147:in `call_on_instance'
core/kernel.rb:1135:in `eval'
/home/bill/.rvm/gems/rbx-head/bin/ruby_executable_hooks:15:in `__script__'
core/code_loader.rb:505:in `load_script'
core/code_loader.rb:590:in `load_script'
core/loader.rb:679:in `script'
core/loader.rb:862:in `main'
Tasks: TOP => default => compile => /mnt/data/code/fancy/lib/stack.fyc
(See full trace by running task with --trace)


$ bundle show rubinius-toolset
/home/bill/.rvm/gems/rbx-head@global/gems/rubinius-toolset-3.0
$ tree `bundle show rubinius-toolset`
/home/bill/.rvm/gems/rbx-head@global/gems/rubinius-toolset-3.0
└── lib
    └── rubinius
        └── code
            ├── toolset
            │   └── version.rb
            └── toolset.rb

4 directories, 2 files

@bill-auger
Copy link
Author

bill-auger commented Jun 17, 2016

another yet different error with mounted rubinius 3.29 binary (uninitialized constant OPENSSL_VERSION_NUMBER - perhaps not as interesting)

this is the result using the URL as i copied from the last fancy travis build - is apparently returning a different version now tho - after seeing this OPENSSL_VERSION_NUMBER error i tried adding ssl support with rvm pkg install openssl but i think this is problematic because the recommended rvm reinstall all --force seemed to complain about the mounted binary set - so im not sure if this had any effect as the next run through the error was the same

$ rvm mount -r http://binaries.rubini.us/ubuntu/12.04/x86_64/rubinius.tar.bz2
http://binaries.rubini.us/ubuntu/12.04/x86_64/rubinius.tar.bz2 - #configure
rubinius - #download
rubinius - #validate archive
rubinius - #extract
rubinius - #validate binary
rubinius - #setup
grep: /home/bill/.rvm/rubies/rubinius/core/rbconfig.rb
/home/bill/.rvm/rubies/rubinius/library/rbconfig.rb: No such file or directory
grep: /home/bill/.rvm/rubies/rubinius/core/rbconfig.rb
/home/bill/.rvm/rubies/rubinius/library/rbconfig.rb: No such file or directory
Installed ruby contains path to non existing compiler 'install -c', compiling native gems might be impossible.
rubinius - #gemset created /home/bill/.rvm/gems/rubinius@global
rubinius - #importing gemset /home/bill/.rvm/gemsets/global.gems...................................................
rubinius - #generating global wrappers..............
rubinius - #gemset created /home/bill/.rvm/gems/rubinius
rubinius - #importing gemsetfile /home/bill/.rvm/gemsets/default.gems evaluated to empty gem list
rubinius - #generating default wrappers..............


$ rvm list
rvm rubies
   rbx-3.12 [ x86_64 ]
   rbx-head [ x86_64 ]
   rubinius [ x86_64 ]
   rubinius-2.7 [ x86_64 ]
=* ruby-2.3.0 [ x86_64 ]


$ rvm use rubinius
Using /home/bill/.rvm/gems/rubinius


$ rbx -v
rubinius 3.29 (2.2.2 0b306fbe 2016-04-30 3.4) [x86_64-linux-gnu]
$ ruby -v
rubinius 3.29 (2.2.2 0b306fbe 2016-04-30 3.4) [x86_64-linux-gnu]


$ bundle
--- ERROR REPORT TEMPLATE -------------------------------------------------------
- What did you do?

  I ran the command `/home/bill/.rvm/gems/rubinius@global/bin/bundle `

- What did you expect to happen?

  I expected Bundler to...

- What happened instead?

  Instead, what actually happened was...


Error details

    NameError: Missing or uninitialized constant: OpenSSL::Digest::OPENSSL_VERSION_NUMBER
      core/module.rb:548:in `const_missing'
      /home/bill/.rvm/rubies/rubinius/gems/gems/rubysl-openssl-2.8.0/lib/openssl/digest.rb:19:in `__script__'
      /home/bill/.rvm/rubies/rubinius/gems/gems/rubysl-openssl-2.8.0/lib/openssl/digest.rb:16:in `__script__'
      /home/bill/.rvm/rubies/rubinius/gems/gems/rubysl-openssl-2.8.0/lib/openssl/digest.rb:15:in `__script__'
      core/code_loader.rb:233:in `require'
      core/kernel.rb:856:in `gem_original_require (require)'
      /home/bill/.rvm/rubies/rubinius/library/rubygems/core_ext/kernel_require.rb:55:in `require'
      /home/bill/.rvm/rubies/rubinius/gems/gems/rubysl-openssl-2.8.0/lib/rubysl/openssl.rb:20:in `__script__'
      core/code_loader.rb:233:in `require'
      core/kernel.rb:856:in `gem_original_require (require)'
      /home/bill/.rvm/rubies/rubinius/library/rubygems/core_ext/kernel_require.rb:55:in `require'
      /home/bill/.rvm/rubies/rubinius/gems/gems/rubysl-openssl-2.8.0/lib/openssl.rb:1:in `__script__'
      core/code_loader.rb:233:in `require'
      core/kernel.rb:856:in `gem_original_require (require)'
      /home/bill/.rvm/rubies/rubinius/library/rubygems/core_ext/kernel_require.rb:55:in `require'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/vendored_persistent.rb:4:in `__script__'
      core/code_loader.rb:233:in `require'
      core/kernel.rb:856:in `gem_original_require (require)'
      /home/bill/.rvm/rubies/rubinius/library/rubygems/core_ext/kernel_require.rb:55:in `require'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/fetcher.rb:1:in `__script__'
      core/code_loader.rb:233:in `require'
      core/autoload.rb:56:in `resolve'
      core/rubinius.rb:186:in `synchronize'
      core/autoload.rb:52:in `resolve'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/cli/install.rb:96:in `run'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/cli.rb:172:in `install'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/cli.rb:10:in `start'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/exe/bundle:19:in `__script__'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
      /home/bill/.rvm/gems/rubinius@global/gems/bundler-1.11.2/exe/bundle:17:in `__script__'
      core/kernel.rb:577:in `load'
      /home/bill/.rvm/gems/rubinius@global/bin/bundle:22:in `__script__'
      core/code_loader.rb:505:in `load_script'
      core/code_loader.rb:590:in `load_script'
      core/loader.rb:680:in `script'
      core/loader.rb:867:in `main'

Environment

    Bundler   1.11.2
    Rubygems  2.6.2
    Ruby      2.2.2p0 (2016-04-30 revision 0) [x86_64-linux-gnu]
    GEM_HOME  /home/bill/.rvm/gems/rubinius
    GEM_PATH  /home/bill/.rvm/gems/rubinius:/home/bill/.rvm/gems/rubinius@global
    RVM       1.27.0 (latest)
    Git       2.8.1
--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=Missing+or+uninitialized+constant%3A+OpenSSL%3A%3ADigest%3A%3AOPENSSL_VERSION_NUMBER&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new

@bakkdoor
Copy link
Owner

bakkdoor commented Jul 7, 2016

Sorry for the late reply. Have you tried running it with the version I mentioned?
You mentioned 2.7 but I recommended trying out rbx 2.2.7. Note the difference.
That it doesn't work with the versions you mentioned doesn't surprise me since the Rubinius internals have changed quite drastically since then.

@bill-auger
Copy link
Author

bill-auger commented Jul 8, 2016

not unless you know where i can get that version - the peeps in the gitter chat showed me this list with all the binaries they are hosting and they only go back to 2.6 - i saw 2.7 there and i must have assumed that is what you meant

http://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/index.txt

there is a git tag at rubinius v2.2.7 - i will try but i have not been able to compile the more recent versions - also these seem to be particular to a specific version of llvm with the newer versions requiring 3.5 and 3.6 - the earliest version of llvm in debian is 3.4 so i dont have much confidence this will work

@bakkdoor
Copy link
Owner

bakkdoor commented Jul 8, 2016

You can find them here on github, on Rubinius' releases page: https://github.com/rubinius/rubinius/releases?after=v2.2.9

@bill-auger
Copy link
Author

bill-auger commented Jul 8, 2016

no go :(

$ rvm list
rvm rubies
   rbx-head [ x86_64 ]
=* ruby-2.3.0 [ x86_64 ]

$ rvm mount -r https://github.com/rubinius/rubinius/releases/download/v2.2.7/rubinius-2.2.7.tar.bz2
https://github.com/rubinius/rubinius/releases/download/v2.2.7/rubinius-2.2.7.tar.bz2 - #configure
rubinius-2.2.7 - #download
rubinius-2.2.7 - #validate archive
rubinius-2.2.7 - #extract
rubinius-2.2.7 - #validate binary
rubinius-2.2.7 - #setup
Missing 'ruby' in 'rubygems_detect_ruby_lib_gem_path'.
rubinius-2.2.7 - #gemset created /home/bill/.rvm/gems/rubinius-2.2.7@global
rubinius-2.2.7 - #importing gemset /home/bill/.rvm/gemsets/global.gems........................................................
rubinius-2.2.7 - #generating global wrappers........
rubinius-2.2.7 - #gemset created /home/bill/.rvm/gems/rubinius-2.2.7
rubinius-2.2.7 - #importing gemsetfile /home/bill/.rvm/gemsets/default.gems evaluated to empty gem list
rubinius-2.2.7 - #generating default wrappers..............

$ rvm use rubinius-2.2.7
Using /home/bill/.rvm/gems/rubinius-2.2.7
Warning! Executable 'ruby' missing, something went wrong with this ruby installation!
Warning! Executable 'gem' missing, something went wrong with this ruby installation!
Warning! Executable 'irb' missing, something went wrong with this ruby installation!

$ rvm list
rvm rubies
   rbx-head [ x86_64 ]
=> rubinius-2.2.7 [ missing bin/ruby ]
 * ruby-2.3.0 [ x86_64 ]

$ rbx -v
bash: rbx: command not found
$ ruby -v
ruby 2.3.0p7 (2016-01-21 revision 53608) [x86_64-linux]
$ which ruby
/usr/local/bin/ruby

$ echo $PATH
/home/bill/.rvm/gems/rubinius-2.2.7/bin:/home/bill/.rvm/gems/rubinius-2.2.7@global/bin:/home/bill/.rvm/rubies/rubinius-2.2.7/bin:/home/bill/.rvm/bin:/home/bill/dl/rubinius-3.40/bin:.....and so on

$ tree /home/bill/.rvm/bin
/home/bill/.rvm/bin
├── ruby-rvm-env -> rvm-shell
├── rvm
├── rvm-auto-ruby
├── rvm-exec
├── rvm-prompt
├── rvm-shebang-ruby -> rvm-auto-ruby
├── rvm-shell
├── rvm-smile
└── rvmsudo
0 directories, 9 files

$ tree /home/bill/.rvm/rubies/rubinius-2.2.7/bin
/home/bill/.rvm/rubies/rubinius-2.2.7/bin
├── benchmark
├── laces.rb
├── mkspec
├── mspec
└── testrb
0 directories, 5 files

$ tree /home/bill/.rvm/gems/rubinius-2.2.7@global/bin
/home/bill/.rvm/gems/rubinius-2.2.7@global/bin
├── rake
└── ruby_executable_hooks
0 directories, 2 files

$ tree /home/bill/.rvm/gems/rubinius-2.2.7/bin
/home/bill/.rvm/gems/rubinius-2.2.7/bin
0 directories, 0 files

@bakkdoor
Copy link
Owner

bakkdoor commented Jul 8, 2016

Have you tried building the 2.2.7 release from source yourself?

@bill-auger
Copy link
Author

bill-auger commented Jul 8, 2016

oh so close this time .... will some more tomorrow maybe

Building /mnt/data/code/rubinius-2.2.7/bootstrap/gems/rubysl-openssl-2.1.0...
/mnt/data/code/rubinius-2.2.7/staging/bin/rbx extconf.rb
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
checking for openssl/ssl.h... yes
checking for openssl/conf_api.h... yes
checking for ERR_peek_last_error()... yes
checking for ASN1_put_eoc()... yes
checking for BN_mod_add()... yes
checking for BN_mod_sqr()... yes
checking for BN_mod_sub()... yes
checking for BN_pseudo_rand_range()... yes
checking for BN_rand_range()... yes
checking for CONF_get1_default_config_file()... yes
checking for EVP_CIPHER_CTX_copy()... yes
checking for EVP_CIPHER_CTX_set_padding()... yes
checking for EVP_CipherFinal_ex()... yes
checking for EVP_CipherInit_ex()... yes
checking for EVP_DigestFinal_ex()... yes
checking for EVP_DigestInit_ex()... yes
checking for EVP_MD_CTX_cleanup()... yes
checking for EVP_MD_CTX_create()... yes
checking for EVP_MD_CTX_destroy()... yes
checking for EVP_MD_CTX_init()... yes
checking for HMAC_CTX_cleanup()... yes
checking for HMAC_CTX_copy()... yes
checking for HMAC_CTX_init()... yes
checking for PEM_def_callback()... yes
checking for PKCS5_PBKDF2_HMAC()... yes
checking for PKCS5_PBKDF2_HMAC_SHA1()... yes
checking for X509V3_set_nconf()... yes
checking for X509V3_EXT_nconf_nid()... yes
checking for X509_CRL_add0_revoked()... yes
checking for X509_CRL_set_issuer_name()... yes
checking for X509_CRL_set_version()... yes
checking for X509_CRL_sort()... yes
checking for X509_NAME_hash_old()... yes
checking for X509_STORE_get_ex_data()... no
checking for X509_STORE_set_ex_data()... no
checking for OBJ_NAME_do_all_sorted()... yes
checking for SSL_SESSION_get_id()... yes
checking for SSL_SESSION_cmp()... no
checking for OPENSSL_cleanse()... yes
checking for SSLv2_method()... yes
checking for SSLv2_server_method()... yes
checking for SSLv2_client_method()... yes
checking for TLSv1_1_method()... yes
checking for TLSv1_1_server_method()... yes
checking for TLSv1_1_client_method()... yes
checking for TLSv1_2_method()... yes
checking for TLSv1_2_server_method()... yes
checking for TLSv1_2_client_method()... yes
checking for OPENSSL_NPN_NEGOTIATED in openssl/ssl.h... yes
checking for SSL_set_tlsext_host_name() in openssl/ssl.h... no
checking for SSL_set_tlsext_host_name in openssl/ssl.h... yes
checking for openssl/engine.h... yes
checking for ENGINE_add()... yes
checking for ENGINE_load_builtin_engines()... yes
checking for ENGINE_load_openbsd_dev_crypto()... no
checking for ENGINE_get_digest()... yes
checking for ENGINE_get_cipher()... yes
checking for ENGINE_cleanup()... yes
checking for ENGINE_load_dynamic()... yes
checking for ENGINE_load_4758cca()... no
checking for ENGINE_load_aep()... no
checking for ENGINE_load_atalla()... no
checking for ENGINE_load_chil()... no
checking for ENGINE_load_cswift()... no
checking for ENGINE_load_nuron()... no
checking for ENGINE_load_sureware()... no
checking for ENGINE_load_ubsec()... no
checking for ENGINE_load_padlock()... no
checking for ENGINE_load_capi()... no
checking for ENGINE_load_gmp()... no
checking for ENGINE_load_gost()... no
checking for ENGINE_load_cryptodev()... yes
checking for ENGINE_load_aesni()... no
checking for DH_generate_parameters_ex()... yes
checking for DSA_generate_parameters_ex()... yes
checking for RSA_generate_key_ex()... yes
checking for OpenSSL version is 0.9.7 or later... yes
checking for openssl/ocsp.h... yes
checking for EVP_CIPHER_CTX.flags in openssl/evp.h... yes
checking for EVP_CIPHER_CTX.engine in openssl/evp.h... yes
checking for X509_ATTRIBUTE.single in openssl/x509.h... yes
checking for OPENSSL_FIPS in openssl/opensslconf.h... no
checking for EVP_CTRL_GCM_GET_TAG in openssl/evp.h... yes
creating extconf.h
creating Makefile
compiling ossl_pkcs5.c
compiling ossl_x509name.c
compiling ossl_x509.c
compiling ossl_ocsp.c
compiling ossl_engine.c
compiling ossl_pkcs12.c
compiling ossl_asn1.c
compiling ossl_x509ext.c
compiling ossl_pkey_rsa.c
compiling ossl_pkey_ec.c
compiling ossl_config.c
compiling ossl_pkey.c
compiling ossl_x509revoked.c
compiling ossl_bn.c
compiling ossl_x509crl.c
compiling ossl.c
compiling ossl_ssl.c
ossl_ssl.c:132:27: error: ‘SSLv3_method’ undeclared here (not in a function)
     OSSL_SSL_METHOD_ENTRY(SSLv3),
                           ^
ossl_ssl.c:110:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
 #define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
                                                                     ^
ossl_ssl.c:133:27: error: ‘SSLv3_server_method’ undeclared here (not in a function)
     OSSL_SSL_METHOD_ENTRY(SSLv3_server),
                           ^
ossl_ssl.c:110:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
 #define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
                                                                     ^
ossl_ssl.c:134:27: error: ‘SSLv3_client_method’ undeclared here (not in a function)
     OSSL_SSL_METHOD_ENTRY(SSLv3_client),
                           ^
ossl_ssl.c:110:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
 #define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
                                                                     ^
Makefile:205: recipe for target 'ossl_ssl.o' failed
make: *** [ossl_ssl.o] Error 1
rake aborted!
Command failed with status (2): [make...]
core/proc.rb:20:in `call'
core/dir.rb:173:in `chdir'
core/array.rb:72:in `each'
core/proc.rb:20:in `call'
core/array.rb:72:in `each'
core/array.rb:72:in `each'
core/array.rb:72:in `each'
core/array.rb:72:in `each'
core/array.rb:72:in `each'
core/array.rb:72:in `each'
core/kernel.rb:577:in `load'
core/block_environment.rb:147:in `call_on_instance'
core/kernel.rb:1135:in `eval'
/home/bill/.rvm/gems/rbx-head/bin/ruby_executable_hooks:15:in `__script__'
core/code_loader.rb:505:in `load_script'
core/code_loader.rb:590:in `load_script'
core/loader.rb:679:in `script'
core/loader.rb:862:in `main'
Tasks: TOP => default => spec => build => build:build => gems:extensions
(See full trace by running task with --trace)

Repository owner deleted a comment from willianfcamara Feb 23, 2024
Repository owner deleted a comment from demmorou Mar 4, 2024
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

2 participants