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.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 86F741F4C0 for ; Wed, 23 Oct 2019 04:22:04 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 08466120A62; Wed, 23 Oct 2019 13:21:56 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id D2084120A57 for ; Wed, 23 Oct 2019 13:21:53 +0900 (JST) Received: by filter0081p3iad2.sendgrid.net with SMTP id filter0081p3iad2-14327-5DAFD562-51 2019-10-23 04:21:54.706474599 +0000 UTC m=+107529.318201020 Received: from herokuapp.com (unknown [52.91.158.104]) by ismtpd0093p1iad2.sendgrid.net (SG) with ESMTP id dRuMUVtpQumFkle1JQpYFA for ; Wed, 23 Oct 2019 04:21:54.685 +0000 (UTC) Date: Wed, 23 Oct 2019 04:21:54 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 71081 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16271 X-Redmine-Issue-Author: jeremyevans0 X-Redmine-Issue-Assignee: nobu X-Redmine-Sender: jeremyevans0 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?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BIE6965PYMNY0BYgaEx0yPZ7iuDRJnkNHmTM9wz?= =?us-ascii?Q?cQLSQnf=2F7XC0QHhz10+Avy59gK9AMqYMtRE1Nfg?= =?us-ascii?Q?jpVxswIR3Itvn8HvNLD+Q9Quqe11DAIdamMQpNe?= =?us-ascii?Q?bB7=2FY5bbhkHbgBbGIe5VEx1WMKV4EBv+Wwg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95489 Subject: [ruby-core:95489] [Ruby master Bug#16271] Cannot build taglib-ruby gem on ruby-2.7.0-preview2 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 #16271 has been updated by jeremyevans0 (Jeremy Evans). shyouhei (Shyouhei Urabe) wrote: > So yes, the API change _revealed_ an arity mismatch here. `SWIG_ruby_failed` is getting more arguments than it expects, which is dangerous depending on machine ABI. It has to be fixed. I believe it's SWIG, not the gem, wihch has to handle this. @shyouhei , thank you very much for your quick analysis. I have posted this bug upstream (https://github.com/robinst/taglib-ruby/issues/85), though they probably need to wait for a SWIG update to fix it. This can probably be closed unless @shyouhei or @nobu would like it to remain open. ---------------------------------------- Bug #16271: Cannot build taglib-ruby gem on ruby-2.7.0-preview2 https://bugs.ruby-lang.org/issues/16271#change-82260 * Author: jeremyevans0 (Jeremy Evans) * Status: Open * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * Target version: * ruby -v: ruby 2.7.0preview2 (2019-10-22 master 02aadf1032) [x86_64-openbsd] * Backport: 2.5: DONTNEED, 2.6: DONTNEED ---------------------------------------- Attempting to build the taglib-ruby gem on ruby-2.7.0-preview2 fails with error messages such as: ``` taglib_base_wrap.cxx:2101:9: error: no matching function for call to 'rb_rescue' if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { ^~~~~~~~~ /usr/local/include/ruby-2.7/ruby/ruby.h:1989:7: note: candidate function not viable: no known conversion from 'VALUE (VALUE *)' (aka 'unsigned long (unsigned long *)') to 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') for 1st argument VALUE rb_rescue(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE); ``` I believe this is related to the CXX/ANYARGS changes made between ruby-2.7.0-preview1 and preview2. I was not aware these were expected to cause backwards compatibility issues, which is why I'm submitting the bug report here. I believe taglib-ruby uses code generated via SWIG. I'm not sure if SWIG needs to be adjusted, or if the issue is related to the use of SWIG. This may be a problem in the gem and not in our CXX handling. In that case, please let me know and I will post an issue in the gem's tracker. -- https://bugs.ruby-lang.org/