-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
mpy-cross could NOT compile under Windows 11 using Cygwin #8334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Was this an in-place upgrade from Window 10 and is everythng else (build tools version, Python version, Cygwin version, source code paths, ...) the same? Does something like
work when pasted in the shell while in the mpy-cross directory? |
nope, its a new PC with newly upgrade OS, so everything is new, Not a in-place upgrade |
But you used the same version of everything on Windows 10? Also when you say 'toolchain gcc 11.2' does that mean you installed mingw64-x86_64-gcc via Cygwin's setup.exe, or something else? |
Yes I did, and the bash returns what seems like a pre-processed file with no error thrown, the last few lines are as follows,
Yes and no, I installed the stock
|
I cannot reproduce this with these steps:
builds mpy-cross without errors. So does using Something on your setup is different. Not clear whether this is really a micropython issue rather than an environment one. |
really appreciate your help and sharing, my laptop was recently upgraded to Win11, and I never use it for programming at all, so it should be quite "clean". My friends also used Win11 on VM and had the same issue. I will try the |
That's unlikely to fix something. If anything you'd have to uninstall Cygwin, install again with only the steps above then see if that works. I just remembered one crucial thing: I'm pretty sure the Python version used must be the one installed by Cygwin, not a CPython installation on Windows itself.. |
You are right, still same issue, regardless of which shell I used -- git bash, window prompt, powershell and cygwin bash, they all return the same error, as if gcc couldn't find the input files... |
Note I edited my comment right after posting, did you use the Python version which comes with Cygwin? From your first post it looks like you're using a Windows install (C:\Users\a0126\AppData\Local\Programs\Python\Python39). |
How to disable this one and use the Python I need? |
Normally that works automatically if you install Python in Cygwin: it will be installed in /usr/bin or similar, and in the |
Thanks for your reply, I did, I have already installed Python 3 using Cygwin, when I type I have tried multiple times, and the results are the same |
And if you type
Are you saying that the error still contains lines like What's the output of |
Its the same thing, same as when typing python3 |
Were you able to resolve your problem @xidameng ? So far it seems that others have not been able to reproduce the issue. |
Not reproducible. |
I am using Cygwin environment under Windows 11. When I was compiling for the
mpy-cross
executable file, it failed with the following log.my settings:
OS: Win 11
Toolchain: gcc 11.2
Python: python 3.9.0
Under Windows10, there is no issue at all.
/cygdrive/d/Work/MicroPython/micropython/mpy-cross $ make Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. mkdir -p build/genhdr GEN build/genhdr/mpversion.h GEN build/genhdr/moduledefs.h GEN build/genhdr/qstr.i.last gcc: fatal error: no input files compilation terminated. gcc: fatal error: no input files compilation terminated. gcc: fatal error: no input files gcc: fatal error: no input files compilation terminated. compilation terminated. Traceback (most recent call last): File "D:\Work\MicroPython\micropython\py\makeqstrdefs.py", line 188, in <module> preprocess() File "D:\Work\MicroPython\micropython\py\makeqstrdefs.py", line 62, in preprocess for output in p.imap(pp(flags), chunks): File "C:\Users\a0126\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 870, in next gcc: fatal error: no input files compilation terminated. raise value File "C:\Users\a0126\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "D:\Work\MicroPython\micropython\py\makeqstrdefs.py", line 46, in run return subprocess.check_output(args.pp + flags + files) File "C:\Users\a0126\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Users\a0126\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['gcc', '-E', '-I.', '-Ibuild', '-I..', '-Wall', '-Werror', '-Wextra', '-Wno-unused-parameter', '-Wpointer-arith', '-std=gnu99', '-DFFCONF_H="lib/oofatfs/ffconf.h"', '-Os', '-fdata-sections', '-ffunction-sections', '-fno-asynchronous-unwind-tables', '-DNO_QSTR', '../py/mpstate.c', '../py/malloc.c', '../py/gc.c', '../py/pystack.c', '../py/qstr.c', '../py/vstr.c', '../py/mpprint.c', '../py/unicode.c', '../py/mpz.c', '../py/reader.c', '../py/lexer.c', '../py/parse.c', '../py/scope.c', '../py/compile.c', '../py/emitcommon.c', '../py/emitbc.c', '../py/asmbase.c', '../py/asmx64.c', '../py/emitnx64.c']' returned non-zero exit status 1. gcc: fatal error: no input files compilation terminated. gcc: fatal error: no input files compilation terminated. gcc: fatal error: no input files compilation terminated. make: *** [../py/mkrules.mk:105: build/genhdr/qstr.i.last] Error 1 make: *** Deleting file 'build/genhdr/qstr.i.last'
The text was updated successfully, but these errors were encountered: