From: Austin Ziegler Date: 2021-04-21T12:18:09-04:00 Subject: [ruby-core:103542] Re: [Ruby master Bug#17777] 2.6.7 fails to build on macOS: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99 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 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: > -- Austin Ziegler ��� halostatue@gmail.com ��� austin@halostatue.ca http://www.halostatue.ca/ ��� http://twitter.com/halostatue Unsubscribe: