Patent ID: 9378014
Filing Date: 2016-06-28
CPC Classification: G06F

Claim Text:
1. A computer-executed method of porting source code for use in a runtime environment including a tool chain with a compiler for building the source code, the method comprising: obtaining a source code fragment associated with a build error during a source code build in the runtime environment; creating a signature of the source code fragment; automatically comparing the signature with entries in an error database constructed from a history of previous build errors in the runtime environment and fixes in a form of one of source code and tool chain modifications to produce a comparison; using the comparison to find one or more similar previous build errors to the build error and identify one or more of the source code and tool chain modifications as candidate solutions to the build error; compiling the source code with each of candidate source code and tool chain modifications in turn until the source code compiles without reproducing the build error; and storing the build error in the error database and storing the modification with which the source code compiles without reproducing the build error as a fix, wherein candidate solutions are prioritized according to one of an effectiveness of the fix in the current run time environment and relevancy of the error, and wherein the relevancy of the error is based on a degree to which the signature in the previous build error matches the signature of the source code fragment.