This hasn”Ēt yet been backported. When it has been, there will be a
release that includes the fixes to permit building with Xcode 12.

-a

On Wed, Apr 21, 2021 at 1:10 AM <tdehnke / me.com> wrote:
>
> Issue #17777 has been updated by tdehnke (Tony Dehnke).
>
>
> Newbie here,  I jsut ran into this today on my Mac running MacOS 11.2.3 (Intel)
>
> ``` shell
> tdehnke@Tonys-MacBook-Pro-15 12vBiz % rbenv install 2.6.7
> Downloading ruby-2.6.7.tar.bz2...
> -> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.7.tar.bz2
> Installing ruby-2.6.7...
> ruby-build: using readline from homebrew
>
> BUILD FAILED (macOS 11.2.3 using ruby-build 20210420)
>
> Inspect or clean up the working tree at /var/folders/r0/vw984xf56318dq54dzjk26wm0000gn/T/ruby-build.20210421115228.39383.OiFuid
> Results logged to /var/folders/r0/vw984xf56318dq54dzjk26wm0000gn/T/ruby-build.20210421115228.39383.log
>
> Last 10 log lines:
> vm.c:2295:9: error: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>         rb_native_mutex_destroy(&vm->waitpid_lock);
>         ^
> vm.c:2489:34: warning: expression does not compute the number of elements in this array; element type is 'const int', not 'VALUE' (aka 'unsigned long') [-Wsizeof-array-div]
>                              sizeof(ec->machine.regs) / sizeof(VALUE));
>                                     ~~~~~~~~~~~~~~~~  ^
> vm.c:2489:34: note: place parentheses around the 'sizeof(VALUE)' expression to silence this warning
> 1 warning and 1 error generated.
> make: *** [vm.o] Error 1
> make: *** Waiting for unfinished jobs....
> ```
>
>
> ----------------------------------------
> Bug #17777: 2.6.7 fails to build on macOS: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99
> https://bugs.ruby-lang.org/issues/17777#change-91638
>
> * Author: Eregon (Benoit Daloze)
> * Status: Closed
> * Priority: Normal
> * ruby -v: 2.6.7
> * Backport: 2.6: REQUIRED, 2.7: DONTNEED, 3.0: DONTNEED
> ----------------------------------------
> https://github.com/ruby/ruby-builder/runs/2271346109?check_suite_focus=true#step:14:11253
> ```
> vm.c:2295:9: error: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99
> ```
>
> There is also a warning below that might be worth solving:
> ```
> vm.c:2489:34: warning: expression does not compute the number of elements in this array; element type is 'const int', not 'VALUE' (aka 'unsigned long') [-Wsizeof-array-div]
>                              sizeof(ec->machine.regs) / sizeof(VALUE));
>                                     ~~~~~~~~~~~~~~~~  ^
> vm.c:2489:34: note: place parentheses around the 'sizeof(VALUE)' expression to silence this warning
> ```
>
>
>
> --
> https://bugs.ruby-lang.org/
>
> Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>



-- 
Austin Ziegler  halostatue / gmail.com  austin / halostatue.ca
http://www.halostatue.ca/  http://twitter.com/halostatue

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>