Skip to content

'Exec format error' raised when calling spcomp #7

@nosoop

Description

@nosoop

Regression introduced in v1.2.0; output from this recently-ran workflow:

Checking for SourcePawn compiler...
Traceback (most recent call last):
  File "configure.py", line 158, in <module>
    available_version = misc.spcomp_util.extract_version(spcomp)
  File "/home/runner/work/SM-TFCustomAttributeStarterPack/SM-TFCustomAttributeStarterPack/misc/spcomp_util.py", line 11, in extract_version
    p = subprocess.Popen([spcomp], stdout=subprocess.PIPE)
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/opt/hostedtoolcache/sourcepawn/1.10.6545/x64/spcomp'
Error: Process completed with exit code 1.

Workflow corresponding to the failed run is available here.

Error gets thrown in spcomp_util.py; configure.py only checks for spcomp. Not sure if v1.2.0 behaves properly if spcomp64 is passed in; I'll report back once I have a workflow run on a different project that does do platform-specific paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions