chipsalliance / Surelog

SystemVerilog 2017 Pre-processor, Parser, Elaborator, UHDM Compiler. Provides IEEE Design/TB C/C++ VPI and Python AST & UHDM APIs. Compiles on Linux gcc, Windows msys2-gcc & msvc, OsX
Apache License 2.0
357 stars 68 forks source link

9 tests fail: Fatal Python error: PyEval_AcquireThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL) #3971

Open yurivict opened 4 months ago

yurivict commented 4 months ago
90% tests passed, 9 tests failed out of 87

Total Test time (real) =  14.42 sec

The following tests FAILED:
          1 - src/Cache/PPCacheTest.IncludeChangeTolerance (Subprocess aborted)
          2 - src/CommandLine/CommandLineParserTest.WorkingDirectories1 (Subprocess aborted)
          3 - src/CommandLine/CommandLineParserTest.WorkingDirectories2 (Subprocess aborted)
          4 - src/CommandLine/CommandLineParserTest.WorkingDirectories3 (Subprocess aborted)
          5 - src/CommandLine/CommandLineParserTest.WorkingDirectories4 (Subprocess aborted)
         14 - src/Common/PlatformFileSystemTest.WorkingDirs_NonIdeal (Subprocess aborted)
         15 - src/Common/PlatformFileSystemTest.WorkingDirs_Ideal (Subprocess aborted)
         16 - src/Common/PlatformFileSystemTest.InMemoryTest (Subprocess aborted)
         17 - src/Common/PlatformFileSystemTest.PortableCacheTest (Subprocess aborted)
Errors while running CTest
Output from these tests are in: /usr/ports/cad/surelog/work/.build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
*** Error code 8

LastTest.log contains errors like these:

[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CommandLineParserTest
[ RUN      ] CommandLineParserTest.WorkingDirectories3
Fatal Python error: PyEval_AcquireThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: unknown

[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from CommandLineParserTest
[ RUN      ] CommandLineParserTest.WorkingDirectories3
Fatal Python error: PyEval_AcquireThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: unknown

Version: 1.83 python310-3.10.14 FreeBSD 14.0

alaindargelas commented 4 months ago

Looks like you are building with Python enabled. Python is really only supported in UHDM, when building a standalone UHDM exe with Python. Surelog Python API has not been supported for years.