Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9193

Broken Ruby bindings result in compile-time errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.12/04
    • Fix Version/s: 6.16/00
    • Component/s: Other
    • Labels:
      None
    • Environment:

      Debian 9.3

      Description

      Switching on Ruby bindings (-D ruby=on), I obtain the following compile-time error:

      [...]
      Scanning dependencies of target Ruby
      [ 98%] Building CXX object bindings/ruby/CMakeFiles/Ruby.dir/G__Ruby.cxx.o
      [ 98%] Building CXX object bindings/ruby/CMakeFiles/Ruby.dir/src/TRuby.cxx.o
      In file included from /usr/include/ruby-2.3.0/ruby.h:33:0,
                       from /home/wiene/tmp/root/bindings/ruby/src/TRuby.cxx:15:
      /usr/include/ruby-2.3.0/ruby/ruby.h:1705:31: warning: ‘void rb_global_variable(VALUE*)’ hides constructor for ‘struct rb_global_variable’ [-Wshadow]
       void rb_global_variable(VALUE*);
                                     ^
      [ 98%] Building CXX object bindings/ruby/CMakeFiles/Ruby.dir/src/drr.cxx.o
      /home/wiene/tmp/root/bindings/ruby/src/drr.cxx:22:22: fatal error: CallFunc.h: No such file or directory
       #include "CallFunc.h"
                            ^
      compilation terminated.
      bindings/ruby/CMakeFiles/Ruby.dir/build.make:126: recipe for target 'bindings/ruby/CMakeFiles/Ruby.dir/src/drr.cxx.o' failed
      make[2]: *** [bindings/ruby/CMakeFiles/Ruby.dir/src/drr.cxx.o] Error 1
      CMakeFiles/Makefile2:28756: recipe for target 'bindings/ruby/CMakeFiles/Ruby.dir/all' failed
      make[1]: *** [bindings/ruby/CMakeFiles/Ruby.dir/all] Error 2
      Makefile:149: recipe for target 'all' failed
      make: *** [all] Error 2
      

      Reading ROOT-6369 it seems that it is known that the Ruby bindings are broken. If this cannot be fixed easily, it would be nice to catch the "ruby=on" case with a meaningful error message already at the configure stage to avoid stumbling across the above error after a lengthy compilation phase.

        Attachments

          Activity

            People

            • Assignee:
              axel Axel Naumann
              Reporter:
              wieneman Peter Wienemann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: