зеркало из https://github.com/github/ruby.git
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:
Родитель
93f0613753
Коммит
cf03675ce8
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче