From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 26E031F4B4 for ; Wed, 21 Apr 2021 05:10:32 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id AA683120D58; Wed, 21 Apr 2021 14:09:25 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 5996E120AF9 for ; Wed, 21 Apr 2021 14:09:23 +0900 (JST) Received: by filterdrecv-7cd54bd647-k2qxz with SMTP id filterdrecv-7cd54bd647-k2qxz-14-607FB3BE-37 2021-04-21 05:10:22.836716839 +0000 UTC m=+463744.570185315 Received: from herokuapp.com (unknown) by ismtpd0158p1mdw1.sendgrid.net (SG) with ESMTP id Qi1M4R8PRYuw3gEXeF9tgg for ; Wed, 21 Apr 2021 05:10:22.728 +0000 (UTC) Date: Wed, 21 Apr 2021 05:10:22 +0000 (UTC) From: tdehnke@me.com Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17777 X-Redmine-Issue-Author: Eregon X-Redmine-Sender: tdehnke X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 79585 X-SG-EID: =?us-ascii?Q?R10X=2FB6dNw9HqtuW9v8h8jdQ73MfIL0MNHrUhYsJxTZT=2FkkeZGoNZnnjWKEDUf?= =?us-ascii?Q?DDQn5CG3ln9HZuBuOOtAFefcXaKlYXU0ubvSClZ?= =?us-ascii?Q?BWM3usFozhha2RoARyUIpljqhx0WxQ4JZZnd=2Frp?= =?us-ascii?Q?3UOqTckt0w2vP4yT9aP0+CFgoaL6Et741=2FAPWbx?= =?us-ascii?Q?JwVAFIPud10ZK5v=2FUzIJZbvbPdQ4GmzIWcA=3D=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103536 Subject: [ruby-core:103536] [Ruby master Bug#17777] 2.6.7 fails to build on macOS: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/