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:30:09+00:00",
|
|
"attempts": 1,
|
|
"compiler": "mojo_1_2_0",
|
|
"firstItem": "manual/snippet/manual-types-7",
|
|
"key": "1fe8cf2eb06df561da4aa019a4c1c0c6e653b6c90e4c166c1669809fe610e485",
|
|
"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": 186,
|
|
"executableFilename": "/nosym/tmp/compiler-explorer-compilerFK5Ikc/output.s",
|
|
"inputFilename": "example.mojo",
|
|
"instructionSet": "amd64",
|
|
"okToCache": true,
|
|
"processExecutionResultTime": 0.0833710003644228,
|
|
"stderr": [
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 1,
|
|
"severity": 3,
|
|
"text": "error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
|
|
},
|
|
"text": "<source>:1:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant"
|
|
},
|
|
{
|
|
"text": "var s: String = \"Testing\""
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 2,
|
|
"severity": 3,
|
|
"text": "error: expressions must not appear at file scope; move this into a function body"
|
|
},
|
|
"text": "<source>:2:1: error: expressions must not appear at file scope; move this into a function body"
|
|
},
|
|
{
|
|
"text": "s += \" Mojo strings\""
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 4,
|
|
"severity": 3,
|
|
"text": "error: backtick identifier must not be empty; add content between the backticks"
|
|
},
|
|
"text": "<source>:4:1: error: backtick identifier must not be empty; add content between the backticks"
|
|
},
|
|
{
|
|
"text": "```"
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 1,
|
|
"file": "example.mojo",
|
|
"line": 3,
|
|
"severity": 3,
|
|
"text": "error: expressions must not appear at file scope; move this into a function body"
|
|
},
|
|
"text": "<source>:3:1: error: expressions must not appear at file scope; move this into a function body"
|
|
},
|
|
{
|
|
"text": "print(s) # Testing Mojo strings"
|
|
},
|
|
{
|
|
"text": "^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 3,
|
|
"file": "example.mojo",
|
|
"line": 4,
|
|
"severity": 3,
|
|
"text": "error: unterminated backtick identifier"
|
|
},
|
|
"text": "<source>:4: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": 268,
|
|
"okToCache": false,
|
|
"queueTime": 6,
|
|
"stderr": [
|
|
{
|
|
"text": "Build failed"
|
|
}
|
|
],
|
|
"stdout": [],
|
|
"timedOut": false
|
|
},
|
|
"result": {
|
|
"asm": null,
|
|
"buildStderr": "<source>:1:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar s: String = \"Testing\"\n^\n<source>:2:1: error: expressions must not appear at file scope; move this into a function body\ns += \" Mojo strings\"\n^\n<source>:4:1: error: backtick identifier must not be empty; add content between the backticks\n```\n^\n<source>:3:1: error: expressions must not appear at file scope; move this into a function body\nprint(s) # Testing Mojo strings\n^\n<source>:4: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": "234ebd7197d606bf415aa1e9e7638f630acda8551f0c7beb051740adce7cf0cb",
|
|
"stdin": ""
|
|
}
|