This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
+99
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"args": "--target-cpu x86-64-v3 --fp-mode contract=off",
|
||||
"askedAt": "2026-11-12T18:31:51+00:00",
|
||||
"attempts": 1,
|
||||
"compiler": "mojo_1_2_0",
|
||||
"firstItem": "probes/global-var",
|
||||
"key": "6acd2fb5c3e3bdb35961fed1aae30f609497639b8c4479a18d4204a54e844a45",
|
||||
"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": 192,
|
||||
"executableFilename": "/nosym/tmp/compiler-explorer-compiler8ET3Lh/output.s",
|
||||
"inputFilename": "example.mojo",
|
||||
"instructionSet": "amd64",
|
||||
"okToCache": true,
|
||||
"processExecutionResultTime": 0.04738899879157543,
|
||||
"stderr": [
|
||||
{
|
||||
"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 counter = 0"
|
||||
},
|
||||
{
|
||||
"text": "^"
|
||||
},
|
||||
{
|
||||
"tag": {
|
||||
"column": 11,
|
||||
"file": "example.mojo",
|
||||
"line": 7,
|
||||
"severity": 3,
|
||||
"text": "error: use of unknown declaration 'counter'"
|
||||
},
|
||||
"text": "<source>:7:11: error: use of unknown declaration 'counter'"
|
||||
},
|
||||
{
|
||||
"text": " print(counter)"
|
||||
},
|
||||
{
|
||||
"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": 287,
|
||||
"okToCache": false,
|
||||
"queueTime": 5,
|
||||
"stderr": [
|
||||
{
|
||||
"text": "Build failed"
|
||||
}
|
||||
],
|
||||
"stdout": [],
|
||||
"timedOut": false
|
||||
},
|
||||
"result": {
|
||||
"asm": null,
|
||||
"buildStderr": "<source>:3:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar counter = 0\n^\n<source>:7:11: error: use of unknown declaration 'counter'\n print(counter)\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.51,
|
||||
"sourceSha256": "7d4db4fe89f19b3c88b792bff3a0459e0a851e34698039e6d32e01d1c5435b7b",
|
||||
"stdin": ""
|
||||
}
|
||||
Reference in new issue
Block a user