[MacPorts] #62624: ruby30 fails to build on macOS 11.2.3

MacPorts noreply at macports.org
Tue Apr 6 15:37:26 UTC 2021


#62624: ruby30 fails to build on macOS 11.2.3
--------------------------+----------------------------
  Reporter:  josephsacco  |      Owner:  kimuraw
      Type:  defect       |     Status:  accepted
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.4
Resolution:               |   Keywords:  ruby,  Big Sur
      Port:  ruby30       |
--------------------------+----------------------------

Comment (by josephsacco):

 Uninstalling and reinstalling CommandLineTools [yet again... :-)] did not
 solve the problem:

 I checked the tool path:
 {{{
 cavandish:~ jsacco$ xcode-select -p
 /Library/Developer/CommandLineTools
 }}}

 All seems well.  So what is the cause of the problem?

 Examining the code in {{{ bigdecimal.h}}}, I see that the (re)declaration
 of each of those errant functions is protected by an #ifndef MACRO
 directive.  For example:
 {{{
 #ifndef HAVE_RB_ARRAY_CONST_PTR
 static inline const VALUE *
 rb_array_const_ptr(VALUE a)
 {
     return FIX_CONST_VALUE_PTR((RBASIC(a)->flags & RARRAY_EMBED_FLAG) ?
     RARRAY(a)->as.ary : RARRAY(a)->as.heap.ptr);
 }
 #endif
 }}}

 Searching the source code,  I do not see where
 {{{HAVE_RB_ARRAY_CONST_PTR}}}  is previously set.

 {{{
 cavandish:ruby-3.0.0 jsacco$ grep -R HAVE_RB_ARRAY_CONST_PTR *
 ext/bigdecimal/bigdecimal.h:#ifndef HAVE_RB_ARRAY_CONST_PTR
 }}}

 So something is amiss...

 -Joseph

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


More information about the macports-tickets mailing list