[MacPorts] #67838: qtruby: possible to support a modern Ruby?

MacPorts noreply at macports.org
Fri Jul 28 08:12:38 UTC 2023


#67838: qtruby: possible to support a modern Ruby?
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  qtruby        |
---------------------------+--------------------

Comment (by barracuda156):

 Ok, simply swiping in Ruby 3.1 failed:
 {{{
 In file included from
 /opt/local/include/ruby-3.1.3/ruby/internal/config.h:22,
                  from /opt/local/include/ruby-3.1.3/ruby/ruby.h:15,
                  from /opt/local/include/ruby-3.1.3/ruby.h:38,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/src/Qt.cpp:63:
 /opt/local/include/ruby-3.1.3/ppc-darwin10.0.0d2/ruby/config.h:17:1:
 warning: "_GNU_SOURCE" redefined
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/src/Qt.cpp:19:1:
 warning: this is the location of the previous definition
 In file included from /opt/local/include/ruby-3.1.3/ruby/ruby.h:25,
                  from /opt/local/include/ruby-3.1.3/ruby.h:38,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/src/Qt.cpp:63:
 /opt/local/include/ruby-3.1.3/ruby/defines.h:55:23: error: stdalign.h: No
 such file or directory
 [  7%] Building CXX object
 tools/rbuic/CMakeFiles/rbuic4_bin.dir/databaseinfo.cpp.o
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/build/tools/rbuic
 && /usr/bin/g++-4.2  -I/opt/local/include -I/opt/local/include/smoke
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/src
 -I/opt/local/libexec/qt4/include/QtDesigner
 -I/opt/local/libexec/qt4/include/QtDeclarative
 -I/opt/local/libexec/qt4/include/QtScriptTools
 -I/opt/local/libexec/qt4/include/QtDBus
 -I/opt/local/libexec/qt4/include/QtXml
 -I/opt/local/libexec/qt4/include/QtSql
 -I/opt/local/libexec/qt4/include/QtOpenGL
 -I/opt/local/libexec/qt4/include/QtMultimedia
 -I/opt/local/libexec/qt4/include/QtNetwork
 -I/opt/local/libexec/qt4/include/QtXmlPatterns
 -I/opt/local/libexec/qt4/include/QtWebKit
 -I/opt/local/libexec/qt4/include/QtHelp
 -I/opt/local/libexec/qt4/include/QtUiTools
 -I/opt/local/libexec/qt4/include/QtTest
 -I/opt/local/libexec/qt4/include/QtScript
 -I/opt/local/libexec/qt4/include/QtSvg
 -I/opt/local/libexec/qt4/include/Qt3Support
 -I/opt/local/libexec/qt4/include/QtGui
 -I/opt/local/libexec/qt4/include/QtCore
 -I/opt/local/libexec/qt4/share/mkspecs/default
 -I/opt/local/libexec/qt4/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/tools/rbuic
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/tools/rbuic/ruby
 -pipe -Os -DNDEBUG -arch ppc -mmacosx-version-min=10.6
 -DQT_UIC_RB_GENERATOR -MD -MT
 tools/rbuic/CMakeFiles/rbuic4_bin.dir/databaseinfo.cpp.o -MF
 CMakeFiles/rbuic4_bin.dir/databaseinfo.cpp.o.d -o
 CMakeFiles/rbuic4_bin.dir/databaseinfo.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/tools/rbuic/databaseinfo.cpp
 In file included from
 /opt/local/include/ruby-3.1.3/ruby/internal/anyargs.h:83,
                  from /opt/local/include/ruby-3.1.3/ruby/ruby.h:26,
                  from /opt/local/include/ruby-3.1.3/ruby.h:38,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/qtruby-4.14.3/src/Qt.cpp:63:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:98: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*,
 VALUE (*)(ID, VALUE*), int)’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:100: error:
 invalid conversion from ‘int’ to ‘void (*)(VALUE, ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:100: error:
 initializing argument 3 of ‘void rb_define_virtual_variable(const char*,
 VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:105: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*,
 VALUE (*)(...), int)’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:108: error:
 invalid conversion from ‘int’ to ‘void (*)(VALUE, ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:108: error:
 initializing argument 3 of ‘void rb_define_virtual_variable(const char*,
 VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:112: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*,
 int, void (*)(VALUE, ID, VALUE*))’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:114: error:
 invalid conversion from ‘int’ to ‘VALUE (*)(ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:114: error:
 initializing argument 2 of ‘void rb_define_virtual_variable(const char*,
 VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:119: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_virtual_variable(const char*,
 int, void (*)(...))’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:122: error:
 invalid conversion from ‘int’ to ‘VALUE (*)(ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:122: error:
 initializing argument 2 of ‘void rb_define_virtual_variable(const char*,
 VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:161: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_hooked_variable(const char*,
 VALUE*, VALUE (*)(ID, VALUE*), int)’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:163: error:
 invalid conversion from ‘int’ to ‘void (*)(VALUE, ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:163: error:
 initializing argument 4 of ‘void rb_define_hooked_variable(const char*,
 VALUE*, VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:168: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_hooked_variable(const char*,
 VALUE*, VALUE (*)(...), int)’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:171: error:
 invalid conversion from ‘int’ to ‘void (*)(VALUE, ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:171: error:
 initializing argument 4 of ‘void rb_define_hooked_variable(const char*,
 VALUE*, VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:175: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_hooked_variable(const char*,
 VALUE*, int, void (*)(VALUE, ID, VALUE*))’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:177: error:
 invalid conversion from ‘int’ to ‘VALUE (*)(ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:177: error:
 initializing argument 3 of ‘void rb_define_hooked_variable(const char*,
 VALUE*, VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:182: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘void ruby::backward::cxxanyargs::rb_define_hooked_variable(const char*,
 VALUE*, int, void (*)(...))’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:185: error:
 invalid conversion from ‘int’ to ‘VALUE (*)(ID, VALUE*)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:185: error:
 initializing argument 3 of ‘void rb_define_hooked_variable(const char*,
 VALUE*, VALUE (*)(ID, VALUE*), void (*)(VALUE, ID, VALUE*))’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:214: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘VALUE ruby::backward::cxxanyargs::rb_iterate(VALUE (*)(VALUE), VALUE,
 int, VALUE)’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:216: error:
 invalid conversion from ‘int’ to ‘VALUE (*)(VALUE, VALUE, int, const
 VALUE*, VALUE)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:216: error:
 initializing argument 3 of ‘VALUE
 ruby::backward::rb_iterate_deprecated(VALUE (*)(VALUE), VALUE, VALUE
 (*)(VALUE, VALUE, int, const VALUE*, VALUE), VALUE)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:240: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘VALUE ruby::backward::cxxanyargs::rb_block_call(VALUE, ID, int, const
 VALUE*, int, VALUE)’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:242: error:
 invalid conversion from ‘int’ to ‘VALUE (*)(VALUE, VALUE, int, const
 VALUE*, VALUE)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:242: error:
 initializing argument 5 of ‘VALUE rb_block_call(VALUE, ID, int, const
 VALUE*, VALUE (*)(VALUE, VALUE, int, const VALUE*, VALUE), VALUE)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: At global
 scope:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:339: error:
 ‘std::nullptr_t’ has not been declared
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp: In function
 ‘VALUE ruby::backward::cxxanyargs::rb_catch(const char*, int, VALUE)’:
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:341: error:
 invalid conversion from ‘int’ to ‘VALUE (*)(VALUE, VALUE, int, const
 VALUE*, VALUE)’
 /opt/local/include/ruby-3.1.3/ruby/backward/cxxanyargs.hpp:341: error:
 initializing argument 2 of ‘VALUE rb_catch(const char*, VALUE (*)(VALUE,
 VALUE, int, const VALUE*, VALUE), VALUE)’
 make[2]: *** [src/CMakeFiles/qtruby4shared.dir/Qt.cpp.o] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/build'
 make[1]: *** [src/CMakeFiles/qtruby4shared.dir/all] Error 2
 make[1]: *** Waiting for unfinished jobs....
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67838#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list