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.1 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,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 32ED71F803 for ; Thu, 10 Jan 2019 12:40:11 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 8FE05114DE4; Thu, 10 Jan 2019 21:40:06 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 0CBA4121516 for ; Thu, 10 Jan 2019 21:40:03 +0900 (JST) Received: by filter0027p3iad2.sendgrid.net with SMTP id filter0027p3iad2-1029-5C373D20-21 2019-01-10 12:40:00.332507285 +0000 UTC m=+215516.174628767 Received: from herokuapp.com (ec2-54-196-202-214.compute-1.amazonaws.com [54.196.202.214]) by ismtpd0009p1iad2.sendgrid.net (SG) with ESMTP id MNiXcDY7Qn696yzekLTLnQ Thu, 10 Jan 2019 12:40:00.341 +0000 (UTC) Date: Thu, 10 Jan 2019 12:40:01 +0000 (UTC) From: takashikkbn@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 66428 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15522 X-Redmine-Issue-Author: vo.x X-Redmine-Sender: k0kubun 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: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4QcBM4dECDFwR2mzaLNxswYY/RUBFQ1DRDK1 887QHkfxylJXaPo/+Necy6V0Hv7cY22b/lDsYzmXrkYXs0X0cHSaUmHPdw/BNu8SnxAU50W5JFu5bf Y/nq+RpQeDhu6enGXaBzN6m7bTRNQtgPgpr1xxjNGjUFXyGpkfVqjXjc8g== X-ML-Name: ruby-core X-Mail-Count: 90993 Subject: [ruby-core:90993] [Ruby trunk Bug#15522] TestJIT#test_compile_insn_local fails on aarch64 RHEL7 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 #15522 has been updated by k0kubun (Takashi Kokubun). > Also, it would be nice if the JIT output used different markup, which does not collide with Redmine markup :/ Yeah. I'll change that later. > This should be the C code (although generated on my x86_64, because I don't have aarch64 readily available). How did you get the output in the ticket description? If possible, I want you to upload rb_mjit_min_header-2.6.0.h under install directory and the exact /tmp/_ruby_mjit_p20163u1.c whose so can't be loaded. ---------------------------------------- Bug #15522: TestJIT#test_compile_insn_local fails on aarch64 RHEL7 https://bugs.ruby-lang.org/issues/15522#change-76213 * Author: vo.x (Vit Ondruch) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0p0 (2018-12-25 revision 66547) [aarch64-linux] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- Trying to build Ruby 2.6 on RHEL7, I observe the following test failure on RHEL7, but just on aarch64. The other platforms pass just fine: ~~~ 1) Failure: TestJIT#test_compile_insn_local [/builddir/build/BUILD/ruby-2.6.0/test/ruby/test_jit.rb:64]: Expected 3 times of JIT success, but succeeded 2 times. script: ``` def foo a = 0 [1, 2].each do |i| a += i [3, 4].each do |j| a *= j end end a end print foo ``` stderr: ``` JIT success (276.6ms): foo@-e:2 -> /tmp/_ruby_mjit_p20163u0.c JIT success (347.3ms): block in foo@-e:4 -> /tmp/_ruby_mjit_p20163u1.c MJIT warning: failure in loading code from '/tmp/_ruby_mjit_p20163u2.so': /tmp/_ruby_mjit_p20163u2.so: undefined symbol: __multi3 Successful MJIT finish ``` . <3> expected but was <2>. ~~~ I suspect this must be some combination of architecture/compiler (gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)), because I don't observe similar issues on Fedora. ---Files-------------------------------- _ruby_mjit_p207u2.c (3.48 KB) -- https://bugs.ruby-lang.org/