Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#61255 closed defect (fixed)

ruby @1.8.7-p374_10: eval.c:7288:2: error: implicit declaration of function 'rb_thread_join' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

Reported by: hellhovnd (Jean-Pierre Chauvel) Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: ruby

Description (last modified by kencu (Ken))

ruby fails to build with Xcode 12.

This would be approximately 1,780,902 ports with the same implicit declaration of function issue :>

Attachments (1)

main.log (59.8 KB) - added by hellhovnd (Jean-Pierre Chauvel) 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by hellhovnd (Jean-Pierre Chauvel)

Attachment: main.log added

comment:1 Changed 4 years ago by kencu (Ken)

Description: modified (diff)
Owner: set to kimuraw
Status: newassigned
Summary: ruby fails to buildruby @1.8.7-p374_10: eval.c:7288:2: error: implicit declaration of function 'rb_thread_join' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

comment:2 Changed 4 years ago by kencu (Ken)

Cc: kimuraw@… removed

comment:3 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

As with [d5aee0536e/macports-ports] I suspect there is a change in later Ruby versions which can be backported to fix this issue.

comment:4 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Never mind, rb_thread_join() is being used before but in the same file as its definition.

comment:5 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

The ruby port should probably just be removed; 1.8.7 has been EOL for 6 years. What's stopping me from proposing to remove it is how many dependents it still has.

comment:6 Changed 3 years ago by kimuraw (kimura wataru)

In c4f137d2d1ad757d4dbbb49d139e8a6d1668f252/macports-ports (master):

lang/ruby: stop support of ruby-1.8 with macOS 11 or Xcode 12

too many build errors "implicit declaration" with Xcode 12.
ruby-1.8.7 EOLed at July 2014.

see #61255

comment:7 Changed 3 years ago by kimuraw (kimura wataru)

Resolution: wontfix
Status: assignedclosed

I cannot build port:ruby on macOS 11/Xcode 12 for too many compile errors.

I agree to remove EOLed versions of ruby from macports.

% uname -r
20.2.0
% sudo port install ruby
--->  Computing dependencies for ruby
--->  Fetching archive for ruby
  :
--->  Fetching distfiles for ruby
Error: ruby does not support macOS 11 or later.
Error: Failed to fetch ruby: incompatible macOS version
  :
Error: Processing of port ruby failed

comment:8 Changed 3 years ago by jmroot (Joshua Root)

Resolution: wontfixfixed
Note: See TracTickets for help on using tickets.