davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
196 stars 58 forks source link

Is it possible to build on Windows? #194

Open TavaresFilipe opened 1 year ago

TavaresFilipe commented 1 year ago

Hi,

I'm trying to use the plugin on Windows. I installed the make using Chocolatey, but I'm getting the following error when trying to run the make plugin command:

File "path\gcc-python-plugin\generate-config-h.py", line 125, in ch.main() File "path\gcc-python-plugin\generate-config-h.py", line 40, in main plugindir = self.capture_shell_output('locating plugin directory for %s' % self.gcc, File "path\gcc-python-plugin\configbuilder.py", line 161, in capture_shell_output out = check_output(cmd, File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'cc --print-file-name=plugin' returned non-zero exit status 1. make: *** [Makefile:186: autogenerated-config.h] Error 1

I would like to know what is the problem, and if it's possible to build this on Windows?

Using GCC 9.2.0.