mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93f0613753
commit
cf03675ce8
1 changed files with 6 additions and 4 deletions
|
@ -93,10 +93,12 @@ module MJITHeader
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue