Skip to content

Support building on MSYS2 with clang #193

Description

I have the Scons package installed with mingw-w64-clang-x86_64-scons as I already have mingw-w64-clang-x86_64-toolchain.

But it seems the environment is not detected.

$ scons
scons: Reading SConscript files ...
     Compiler: gcc (gnu)
     Platform: win32
Compiler Mode: gnu
   Build Mode: release
         Arch: x86
FileNotFoundError: [WinError 2] The system cannot find the file specified:
  File "C:/Work/msys64/home/Administrator/cbang/SConstruct", line 85:
    conf.CBConfig('compiler')
  File "C:/Work/msys64/clang64/lib/python3.12/site-packages/SCons/SConf.py", line 741:
    ret = self.test(context, *args, **kw)
  File "C:/Work/msys64/home/Administrator/cbang/config/__init__.py", line 200:
    ret = conf.env.cb_methods[name](conf, **kwargs)
  File "C:/Work/msys64/home/Administrator/cbang/config/compiler/__init__.py", line 161:
    if compiler == 'gnu': print('  GCC Version:', gcc_version_str(env))
  File "C:/Work/msys64/home/Administrator/cbang/config/compiler/__init__.py", line 45:
    return check_output(cmd).strip().decode('utf8')
  File "C:/Work/msys64/clang64/lib/python3.12/subprocess.py", line 466:
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:/Work/msys64/clang64/lib/python3.12/subprocess.py", line 548:
    with Popen(*popenargs, **kwargs) as process:
  File "C:/Work/msys64/clang64/lib/python3.12/subprocess.py", line 1026:
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:/Work/msys64/clang64/lib/python3.12/subprocess.py", line 1538:
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions