intermittent class resolution failure #563

Open
opened 2024-12-13 19:41:30 +08:00 by sb10q · 2 comments
Owner

Manifests itself by the PGO build failing intermittently with:

Running phase: buildPhase
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/frontend/artiq_compile.py", line 75, in <module>
    main()
  File "/nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/frontend/artiq_compile.py", line 68, in main
    exp_inst.core.compile(exp_inst.run, [], {}, embedding_map, file_output=output)
  File "/nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/coredevice/core.py", line 122, in compile
    self.compiler.compile_method_to_file(obj, name, args, file_output, embedding_map)
nac3artiq.CompileError: compilation failed
----------
NameError: name 'AD53xx' is not defined (at /nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/coredevice/zotino.py:24:14)

The bug seems to have been introduced or exposed in the last few months.

Manifests itself by the PGO build failing intermittently with: ``` Running phase: buildPhase Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/frontend/artiq_compile.py", line 75, in <module> main() File "/nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/frontend/artiq_compile.py", line 68, in main exp_inst.core.compile(exp_inst.run, [], {}, embedding_map, file_output=output) File "/nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/coredevice/core.py", line 122, in compile self.compiler.compile_method_to_file(obj, name, args, file_output, embedding_map) nac3artiq.CompileError: compilation failed ---------- NameError: name 'AD53xx' is not defined (at /nix/store/9nfq1s2bd22aaiwd85d4f8r79w0ci0ry-source/artiq/coredevice/zotino.py:24:14) ``` The bug seems to have been introduced or exposed in the last few months.
Author
Owner

Also happens intermittently outside tests when doing artiq_compile nac3devices.py. Again AD53xx is the missing definition reported.

Also happens intermittently outside tests when doing artiq_compile nac3devices.py. Again ``AD53xx`` is the missing definition reported.
Author
Owner

Also happens on OpenBSD so it's not a nixpkgs update that broke it.

Also happens on OpenBSD so it's not a nixpkgs update that broke it.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#563
No description provided.