ruby-changes:50172
From: k0kubun <ko1@a...>
Date: Wed, 7 Feb 2018 23:25:09 +0900 (JST)
Subject: [ruby-changes:50172] k0kubun:r62290 (trunk): transform_mjit_header.rb: very verbose error log
k0kubun 2018-02-07 23:25:03 +0900 (Wed, 07 Feb 2018) New Revision: 62290 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62290 Log: transform_mjit_header.rb: very verbose error log for debugging AIX..... I have no idea why AIX's gcc is failing to transform MJIT header.... Today's CI output: https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20180207T113303Z.log.html.gz#make Modified files: trunk/tool/transform_mjit_header.rb Index: tool/transform_mjit_header.rb =================================================================== --- tool/transform_mjit_header.rb (revision 62289) +++ tool/transform_mjit_header.rb (revision 62290) @@ -93,10 +93,12 @@ module MJITHeader https://github.com/ruby/ruby/blob/trunk/tool/transform_mjit_header.rb#L93 out = IO.popen(cmd, err: [:child, :out], &:read) STDERR.puts "error in #{stage} header file:\n#{out}" - if match = out.match(/error: conflicting types for '(?<name>[^']+)'/) - unless (related_lines = code.lines.grep(/#{match[:name]}/)).empty? - STDERR.puts "possibly related lines:\n#{related_lines.join("\n")}" - end + if match = out.match(/error: conflicting types for '[^']+'/) + STDERR.puts "\nDumping information for debugging:\n"\ + "[ORIGINAL_HEADER_BEGIN]-----------------\n#{File.binread(ARGV[1])}\n"\ + "[ORIGINAL_HEADER_END]-----------------\n\n"\ + "[TRANSFORMED_HEADER_BEGIN]-----------------\n#{code}\n"\ + "[TRANSFORMED_HEADER_END]-----------------\n" end exit false end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/