Sha256: ca7c81accc246ef8d6fbe1b616d7c237af3ad56e221a44e2fcfa3bbb4cc014e8

Contents?: true

Size: 1.16 KB

Versions: 48

Compression:

Stored size: 1.16 KB

Contents

require_relative 'error_parser'

module Bake
  class GreenHillsLinkerErrorParser < ErrorParser

#    detect this:

#    C++ prelinker: recompiling "x/y.z"
#    "blah.h", line 1: warning #123-D: expression has no effect
#                    uiuiui
#                    ^
#              detected during:
#                instantiation of ...

#   dblink: WARNING: 10 problems were encountered while processing debug information, see "Debug/xy.dle" for details.

    def initialize()
      @error_expression = /ld: (.+)/
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      error_severity = 255
      consoleOutput[0].each_line do |l|
        l.rstrip!
        d = ErrorDesc.new
        scan_res = l.scan(@error_expression)
        if scan_res.length == 0 # msg will end with the beginning of the next message
          d.severity = error_severity
          d.message = l
        elsif scan_res.length > 0
          d.file_name = proj_dir
          d.line_number = 0
          d.message = scan_res[0][0]
          d.severity = SEVERITY_ERROR
          error_severity = d.severity
        end
        res << d
      end
      [res, consoleOutput[0]]
    end

  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
bake-toolkit-2.72.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.71.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.70.1 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.70.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.69.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.68.1 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.68.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.67.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.66.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.65.2 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.65.1 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.65.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.64.4 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.64.3 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.64.2 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.64.1 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.64.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.63.2 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.63.1 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb
bake-toolkit-2.63.0 lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb