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.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, 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 4786D1F4B4 for ; Tue, 6 Apr 2021 06:20:21 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 3F9F6120F74; Tue, 6 Apr 2021 15:19:16 +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 1E5CA120F73 for ; Tue, 6 Apr 2021 15:19:13 +0900 (JST) Received: by filterdrecv-p3las1-699f5f7ff5-r8pnn with SMTP id filterdrecv-p3las1-699f5f7ff5-r8pnn-19-606BFD98-50 2021-04-06 06:20:08.602892331 +0000 UTC m=+1165628.936401545 Received: from herokuapp.com (unknown) by geopod-ismtpd-6-0 (SG) with ESMTP id tuGD8ruBRZqVssy1RVSNnA for ; Tue, 06 Apr 2021 06:20:08.417 +0000 (UTC) Date: Tue, 06 Apr 2021 06:20:08 +0000 (UTC) From: udzura@udzura.jp Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 79294 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17777 X-Redmine-Issue-Author: Eregon X-Redmine-Sender: udzura 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-SG-EID: =?us-ascii?Q?mq3Q2=2Ff8+s+Xq+8T+sc=2FZjcOZxKveGn=2FUIk=2Fd6cnM9fcK77Eh3rfKEgxbJcjU0?= =?us-ascii?Q?Tnem8xANqP94gjp+a08DWrV6NKsroYarW5Qlk+S?= =?us-ascii?Q?45QJ5U2a1hX3EKjUkUEb+xhsVwMi1U2RgCMhbej?= =?us-ascii?Q?6fwIS809KTlr6jRyKEbydFG+V3tTMPHJY0hCMu1?= =?us-ascii?Q?1NYJMUVbmj=2FRSeU39oN=2F5n2UHSXuFaYORb63GwE?= =?us-ascii?Q?3Jm25wI1JX0Dujl4k=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103249 Subject: [ruby-core:103249] [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 udzura (Uchio KONDO). Hi, Using MacOS 10.15.7 / Apple clang version 11.0.3 (clang-1103.0.32.62), building ruby 2.6.7 will be sccessful. Using MacOS 10.15.7 / Apple clang version 12.0.0 (clang-1200.0.32.28), it is broken (reported by @ima1zumi). I hope this will be of some help. ---------------------------------------- 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-91331 * Author: Eregon (Benoit Daloze) * Status: Open * 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/