• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "0000": {
3        "code": "0000",
4        "solution": "Unknown solution"
5    },
6    "0001": {
7        "code": "0001",
8        "solution": "Please execute build/prebuilts_download.sh"
9    },
10    "0002": {
11        "code": "0002",
12        "solution": "Using '--test' option like this format --test xts test/xts/acts/startup_lite/bootstrap_hal:ActsBootstrapTest "
13    },
14    "0003": {
15        "code": "0003",
16        "solution": "Args must be declare as 'bool', 'str', 'list' in arg_type attribute. Please check your corresponding arg"
17    },
18    "0004": {
19        "code": "0004",
20        "solution": "build/hb/util/device_util.py"
21    },
22    "0005": {
23        "code": "0005",
24        "solution": "build/hb/util/device_util.py"
25    },
26    "0006": {
27        "code": "0006",
28        "solution": "build/hb/util/device_util.py"
29    },
30    "0007": {
31        "code": "0007",
32        "solution": "build/hb/util/device_util.py"
33    },
34    "0008": {
35        "code": "0008",
36        "solution": "build/hb/util/io_util.py"
37    },
38    "0009": {
39        "code": "0009",
40        "solution": "build/hb/util/io_util.py"
41    },
42    "0010": {
43        "code": "0010",
44        "solution": "build/hb/util/io_util.py"
45    },
46    "0011": {
47        "code": "0011",
48        "solution": "build/hb/util/io_util.py"
49    },
50    "0012": {
51        "code": "0012",
52        "solution": "build/hb/util/product_util.py"
53    },
54    "0013": {
55        "code": "0013",
56        "solution": "build/hb/util/product_util.py"
57    },
58    "0014": {
59        "code": "0014",
60        "solution": "build/hb/util/product_util.py"
61    },
62    "0015": {
63        "code": "0015",
64        "solution": "build/hb/util/product_util.py"
65    },
66    "0016": {
67        "code": "0016",
68        "solution": "build/hb/util/product_util.py"
69    },
70    "0017": {
71        "code": "0017",
72        "solution": "build/hb/util/product_util.py"
73    },
74    "0018": {
75        "code": "0018",
76        "solution": "Run 'hb help' to list all support option"
77    },
78    "0019": {
79        "code": "0019",
80        "solution": "Please run command 'hb set' to init OHOS development environment"
81    },
82    "0020": {
83        "code": "0020",
84        "solution": "Patch configuration file is missing. Please ensure the file exists at the specified path in 'patch.yml'."
85    },
86    "0021": {
87        "code": "0021",
88        "solution": "Source path for the patch is invalid or does not exist. Please verify the source path specified in the patch configuration."
89    },
90    "0022": {
91        "code": "0022",
92        "solution": "Patch file specified does not exist. Please verify the patch paths specified in the patch configuration are correct and the patch files exist."
93    },
94    "1000": {
95        "code": "1000",
96        "solution": "Unknown solution method for preload phase"
97    },
98    "2000": {
99        "code": "2000",
100        "solution": "Unknown solution method for load phase"
101    },
102    "2001":{
103        "code": "2001",
104        "solution": "please check whether the corresponding file('out/preloader/{product_name}/subsystem_config.json' or 'build/subsystem_config.json') is written correctly"
105    },
106    "2002":{
107        "code": "2002",
108        "solution": "Gn root dir is a relative path and is currently null. Please try the following in order:\n\t\t 1. Execute hb set and check whether the out path in the configuration item (//ohos_config. json) is correctly written\n\t\t 2. Check whether the file (//build/hb/resources/gloval_var. py) has been moved, modified or deleted"
109    },
110    "2003":{
111        "code": "2003",
112        "solution": "Gn root dir is a relative path, which is currently incorrect. Normally, the path is out/{board}/{product}. Please try the following in order:\n\t\t 1. Execute hb set and check the 'out path', 'board' and 'product' fields in the configuration file (//ohos_config. json)\n\t\t 2.Check whether the file (//build/hb/resources/gloval_var. py) has been moved, modified or deleted"
113    },
114    "2004":{
115        "code": "2004",
116        "solution": "Please check whether the corresponding file('out/preloader/{product_name}/platforms.build' exists"
117    },
118    "2005":{
119        "code": "2005",
120        "solution": "Check whether the file (//build/subsystem_config_example.json) has been moved, modified or deleted"
121    },
122    "2006":{
123        "code": "2006",
124        "solution": "Please remove the feature from the product configuration file, or consider using other supported features"
125    },
126    "2007":{
127        "code": "2007",
128        "solution": "Please check the files related to part configuration and ensure that the dependencies between and within parts are correct."
129    },
130    "2008":{
131        "code": "2008",
132        "solution": "Check the declaration of parts and their syscap in the product configuration file"
133    },
134    "2009":{
135        "code": "2009",
136        "solution": "Please ensure that the bundle.json corresponding to the part is written in accordance with the specification"
137    },
138    "2010":{
139        "code": "2010",
140        "solution": "This platform is not supported. Please select a platform supported by OpenHarmony."
141    },
142    "2011":{
143        "code": "2011",
144        "solution": "Please refer to the writing rules of bundle.json to ensure that the content is correct"
145    },
146    "2012":{
147        "code": "2012",
148        "solution": "Please check the platform in the product configuration and recompile"
149    },
150    "2013":{
151        "code": "2013",
152        "solution": "The subsystem configuration file may be one of the following situations: non-existent, empty, and wrong content. Please check whether the file under out/reload/{product_name} has been removed, and then recompile"
153    },
154    "2014":{
155        "code": "2014",
156        "solution": "An error occurred in the load ohos build. Please try the following:\n\t\t1. Execute hb clean -- all\n\t\t2. Execute hb set and select the product\n\t\t3. Check//ohos_ Whether the config.json content meets the requirements."
157    },
158    "3000": {
159        "code": "3000",
160        "type": "UNKNOWN",
161        "description": "An unknown error occurred while executing 'gn gen'.",
162        "solution": "There is no solution available. You can check the 'gn_error.log' in the output directory for more information"
163    },
164    "3001": {
165        "code": "3001",
166        "solution": "See support gn command type in enum class CMDTYPE which locate in build/hb/services/gn.py"
167    },
168    "3002": {
169        "code": "3002",
170        "type": "GN build error: Syntax error",
171        "pattern": "ERROR at .* Unexpected token",
172        "description": "Syntax error. There is a syntax error in the code.",
173        "solution": "Please check the BUILD.gn or .gni file for syntax errors."
174    },
175    "3003": {
176        "code": "3003",
177        "solution": "Please check your corresponding arg. You can view the corresponding options in the json file('resources/status/status.json'). \n\t\tOr you can run cmd 'hb tool -h' to show usage"
178    },
179    "3004": {
180        "code": "3004",
181        "solution": "This command requires an existing build directory. Please check whether the corresponding file('out/{product_name}/args.gn' exists."
182    },
183    "3005": {
184        "code": "3005",
185        "solution": "Please check whether the target gn file exists in the corresponding path."
186    },
187    "3006": {
188        "code": "3006",
189        "solution": "Please use '=' to connect argument and value."
190    },
191    "3007": {
192        "code": "3007",
193        "type": "GN build error: No such file or directory",
194        "pattern": "ERROR at .* No such file or directory",
195        "description": "GN build error. The GN build system cannot find the file.",
196        "solution": "Please check whether the file exists."
197    },
198    "3008": {
199        "code": "3008",
200        "type": "GN build error: Unable to load",
201        "pattern": "ERROR at .* Unable to load .*",
202        "description": "GN build error. The GN build system cannot find the BUILD.gn file.",
203        "solution": "Please check whether the BUILD.gn file exists and the path is correct."
204    },
205    "3009": {
206        "code": "3009",
207        "type": "GN build error: Unresolved import",
208        "pattern": "ERROR at .* Unresolved import: .*",
209        "description": "GN build error. The GN build system cannot find the import file.",
210        "solution": "Please check whether the import file exists and the path is correct."
211    },
212    "3010": {
213        "code": "3010",
214        "type": "GN build error: Unknown variable reference",
215        "pattern": "ERROR at .* Unknown variable reference: .*",
216        "description": "GN build error. The GN build system cannot find the variable.",
217        "solution": "Please check whether the variable is defined."
218    },
219    "3011": {
220        "code": "3011",
221        "type": "GN build error: Unknown function",
222        "pattern": "ERROR at .* Unknown function: .*",
223        "description": "GN build error. The GN build system cannot find the function.",
224        "solution": "Please check whether the function is defined."
225    },
226    "3012": {
227        "code": "3012",
228        "type": "GN build error: Unknown label",
229        "pattern": "ERROR at .* Unknown label: .*",
230        "description": "GN build error. The GN build system cannot find the label.",
231        "solution": "Please check whether the label is defined."
232    },
233    "3013": {
234        "code": "3013",
235        "type": "GN build error: Duplicate build argument declaration",
236        "pattern": "ERROR at .* Duplicate build argument declaration .*",
237        "description": "GN build error. The build argument was declared multiple times.",
238        "solution": "Please ensure that a variable is declared only once within the same scope."
239    },
240    "3014": {
241        "code": "3014",
242        "type": "GN build error: Unresolved dependencies",
243        "pattern": "ERROR at .* Unresolved dependencies:.*",
244        "description": "GN build error. The GN build system cannot find the dependencies.",
245        "solution": "Please check whether the dependencies are defined."
246    },
247    "4000": {
248        "code": "4000",
249        "type": "Ninja build error",
250        "description": "An unknown error occurred while executing 'ninja -C'.",
251        "solution": "no solution"
252    },
253    "4001": {
254        "code": "4001",
255        "solution": "You could run cmd 'hb tool --desc' to show what components or module this product have,\n\t\tand if you execute 'hb build' in a directory, it will build the component corresponding \n\t\tto the current directory by default but for building whole product."
256    },
257    "4002": {
258        "code": "4002",
259        "type": "syntax_error",
260        "pattern": "error: expected identifier or .* before .*",
261        "description": "Syntax error. There is a syntax error in the code.",
262        "solution": ["Check for any missing or misplaced identifiers or parentheses. Make sure that all parentheses are properly closed and that all variables and functions are declared correctly."]
263    },
264    "4003": {
265        "code": "4003",
266        "type": "syntax_error",
267        "pattern": "error: expected .* before .*",
268        "description": "Syntax error. There is a syntax error in the code.",
269        "solution": [
270        "Check for spelling errors, missing semicolons, mismatched parentheses, etc."
271        ]
272    },
273    "4004": {
274        "code": "4004",
275        "type": "missing_semicolon_error",
276        "pattern": "error: expected ';' before .*",
277        "description": "Missing semicolon error. A semicolon is missing in a function or struct definition.",
278        "solution": [
279        "Check if there is a missing semicolon in the function or struct definition."
280        ]
281    },
282    "4005": {
283        "code": "4005",
284        "type": "undeclared_variable_error",
285        "pattern": "error: .*undeclared.*first use in this function",
286        "description": "Undeclared variable error. A variable is used before it is declared.",
287        "solution": [
288        "Make sure the variable is declared before use.",
289        "Make sure the variable name is spelled correctly."
290        ]
291    },
292    "4006": {
293        "code": "4006",
294        "type": "conflicting_types_error",
295        "pattern": "error: conflicting types for .*",
296        "description": "Conflicting types error. The function's prototype does not match its definition.",
297        "solution": [
298        "Make sure the function's prototype matches its definition.",
299        "Make sure the function name and argument names are spelled correctly.",
300        "Make sure the argument types match the function prototype."
301        ]
302    },
303    "4007": {
304        "code": "4007",
305        "type": "invalid_conversion_error",
306        "pattern": "error: invalid conversion from .* to .*",
307        "description": "Invalid conversion error. An invalid type conversion is attempted.",
308        "solution": [
309        "Make sure to use the correct type when performing type conversion.",
310        "Make sure the types match for the operation being performed."
311        ]
312    },
313    "4008": {
314        "code": "4008",
315        "type": "divide_by_zero_error",
316        "pattern": "error: division by zero",
317        "description": "Divide by zero error. An attempt is made to divide by zero.",
318        "solution": [
319        "Make sure the divisor is not zero.",
320        "Make sure the divisor is not a variable that could be zero."
321        ]
322    },
323    "4009": {
324        "code": "4009",
325        "type": "floating_point_error",
326        "pattern": "error: floating-point value.*",
327        "description": "Floating-point error. An error occurs during a floating point operation.",
328        "solution": [
329        "Make sure the values being used are valid floating point numbers.",
330        "Make sure the operation being performed is valid for floating point numbers."
331        ]
332    },
333    "4010": {
334        "code": "4010",
335        "type": "uninitialized_variable_error",
336        "pattern": "error: .* is used uninitialized in this function",
337        "description": "Uninitialized variable error. A variable is used before it is initialized.",
338        "solution": [
339        "Make sure the variable is initialized before use.",
340        "Make sure the variable name is spelled correctly."
341        ]
342    },
343    "4011": {
344        "code": "4011",
345        "type": "stack_overflow_error",
346        "pattern": "error: stack overflow",
347        "description": "Stack overflow error. The program exceeds the maximum stack size.",
348        "solution": [
349        "Increase the maximum stack size.",
350        "Make sure the program is not using an excessive amount of stack space."
351        ]
352    },
353    "4012": {
354        "code": "4012",
355        "type": "out_of_bounds_error",
356        "pattern": "error: subscript.*out of range",
357        "description": "Out of bounds error. An attempt is made to access an array element outside the bounds of the array.",
358        "solution": [
359        "Make sure the array index is within the bounds of the array.",
360        "Make sure the array is not being accessed with a negative index."
361        ]
362    },
363    "4013": {
364        "code": "4013",
365        "type": "null_pointer_error",
366        "pattern": "error: (dereferencing|accessing) pointer to (null|a null pointer)",
367        "description": "Null pointer error. An attempt is made to dereference or access a null pointer.",
368        "solution": [
369        "Make sure the pointer is not null before dereferencing or accessing it.",
370        "Make sure the pointer is initialized before use."
371        ]
372    },
373    "4014": {
374        "code": "4014",
375        "type": "undefined_reference_error",
376        "pattern": "undefined reference to .*",
377        "description": "Undefined reference error. The linker cannot find the definition of a function.",
378        "solution": [
379        "Make sure the required library or object file is linked correctly.",
380        "Make sure the function name is spelled correctly.",
381        "Make sure the function is defined and compiled correctly."
382        ]
383    },
384    "4015": {
385        "code": "4015",
386        "type": "ninja build error: unknown target",
387        "pattern": "ninja: error: unknown target.*",
388        "description": "Ninja build error. The ninja build system cannot parse the build file.",
389        "solution": [
390        "Please check that the target name is correct.",
391        "Please check that the BUILD.gn file including the target, is exists and valid.",
392        "Please check that the target belongs to a component and that component is in the product configuration."
393        ]
394    },
395    "4016": {
396        "code": "4016",
397        "type": "ninja build error: missing and no known rule to make it",
398        "pattern": "ninja: error: .* missing and no known rule to make it.*",
399        "description": "Ninja build error. The ninja build system cannot find the target.",
400        "solution": [
401            "Please check the target file is exists."
402        ]
403    }
404}
405