148 lines
4.7 KiB
JSON
Generated
148 lines
4.7 KiB
JSON
Generated
{
|
|
"args": "--target-cpu x86-64-v3 --fp-mode contract=off",
|
|
"askedAt": "2026-11-12T18:29:43+00:00",
|
|
"attempts": 1,
|
|
"compiler": "mojo_1_2_0",
|
|
"firstItem": "manual/snippet/manual-errors-7",
|
|
"key": "fe2ebaa8f31de69e901eb35fcdc3033cfb1ed66b78d64a53a42f481641ae0baf",
|
|
"mode": "run",
|
|
"raw": {
|
|
"buildResult": {
|
|
"code": 1,
|
|
"compilationOptions": [
|
|
"build",
|
|
"-g1",
|
|
"-o",
|
|
"/app/output.s",
|
|
"--target-cpu",
|
|
"x86-64-v3",
|
|
"--fp-mode",
|
|
"contract=off",
|
|
"/app/example.mojo",
|
|
"-Xlinker=-L./lib",
|
|
"-Xlinker=-rpath=./lib"
|
|
],
|
|
"downloads": [],
|
|
"execTime": 113,
|
|
"executableFilename": "/nosym/tmp/compiler-explorer-compilerGpZiO1/output.s",
|
|
"inputFilename": "example.mojo",
|
|
"instructionSet": "amd64",
|
|
"okToCache": true,
|
|
"processExecutionResultTime": 0.058267999440431595,
|
|
"stderr": [
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 2,
|
|
"severity": 3,
|
|
"text": "error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
|
|
},
|
|
"text": "<source>:2:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
|
|
},
|
|
{
|
|
"text": "var f = open(input_file, \"r\")"
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 3,
|
|
"severity": 3,
|
|
"text": "error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
|
|
},
|
|
"text": "<source>:3:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
|
|
},
|
|
{
|
|
"text": "var content = f.read()"
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 7,
|
|
"severity": 3,
|
|
"text": "error: backtick identifier must not be empty; add content between the backticks"
|
|
},
|
|
"text": "<source>:7:1: error: backtick identifier must not be empty; add content between the backticks"
|
|
},
|
|
{
|
|
"text": "```"
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 6,
|
|
"severity": 3,
|
|
"text": "error: expressions must not appear at file scope; move this into a function body"
|
|
},
|
|
"text": "<source>:6:1: error: expressions must not appear at file scope; move this into a function body"
|
|
},
|
|
{
|
|
"text": "f.close()"
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 3,
|
|
"file": "example.mojo",
|
|
"line": 7,
|
|
"severity": 3,
|
|
"text": "error: unterminated backtick identifier"
|
|
},
|
|
"text": "<source>:7:3: error: unterminated backtick identifier"
|
|
},
|
|
{
|
|
"text": "```"
|
|
},
|
|
{
|
|
"text": " ^"
|
|
},
|
|
{
|
|
"text": "/opt/compiler-explorer/mojo-1.2.0/bin/mojo: error: failed to parse the provided Mojo source module"
|
|
}
|
|
],
|
|
"stdout": [],
|
|
"timedOut": false,
|
|
"truncated": false
|
|
},
|
|
"code": -1,
|
|
"didExecute": false,
|
|
"execTime": 273,
|
|
"okToCache": false,
|
|
"queueTime": 5,
|
|
"stderr": [
|
|
{
|
|
"text": "Build failed"
|
|
}
|
|
],
|
|
"stdout": [],
|
|
"timedOut": false
|
|
},
|
|
"result": {
|
|
"asm": null,
|
|
"buildStderr": "<source>:2:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar f = open(input_file, \"r\")\n^\n<source>:3:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar content = f.read()\n^\n<source>:7:1: error: backtick identifier must not be empty; add content between the backticks\n```\n^\n<source>:6:1: error: expressions must not appear at file scope; move this into a function body\nf.close()\n^\n<source>:7:3: error: unterminated backtick identifier\n```\n ^\n/opt/compiler-explorer/mojo-1.2.0/bin/mojo: error: failed to parse the provided Mojo source module",
|
|
"compiled": false,
|
|
"executed": false,
|
|
"exitCode": -1,
|
|
"stderr": "Build failed",
|
|
"stdout": "",
|
|
"timedOut": false
|
|
},
|
|
"seconds": 0.5,
|
|
"sourceSha256": "fb5433f733b3100b1ff8fdda429c59360e3ccfbc4eea8205c0fbb6c0ae3265f6",
|
|
"stdin": ""
|
|
}
|