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
Cannot compile v1.9 under cygwin #3116
Comments
This is a duplicate of #2961: symlinks don't work on cygwin so you either need to copy the files (in this case lcd160cr.py) or delete them. After deleting them (everything in stmhal/modules/) try doing "make clean", then it should work. |
I will have to compile on a linux machine. I get the errors above if I leave or delete the py sym link file and I get this linking problem if I copy the files from drivers into the module directory:
|
To completely disable the frozen bytecode, try running the following (in stmhal/ dir):
If it still fails, please run |
Looks like i'm getting the same linker error as above. I also upgraded the compiler to the latest 6.3.1 feb 2017 with no change. Attached verbose output. |
The issue is that your libgcc.a exists in directory with "(" and ")" in it, namely You can try changing line 64 of stmhal/Makefile to have quotes like this:
Otherwise, if this doesn't work, try changing this line to simply |
The quotes worked for me. Thanks. LIBS = "$(shell |
Just want to add, if you enable symlinks |
…n-main Translations update from Weblate
I'm having trouble compiling v1.9 using cygwin. I don't have any trouble with 1.8.7. Any help appreciated:
mkdir -p build-PYBV11/usbdev/core/src/ MPY modules/lcd160cr.py MPY modules/lcd160cr_test.py Create stmconst build-PYBV11/genhdr/modstm_const.h Traceback (most recent call last): File "modules/lcd160cr.py", line 1 SyntaxError: invalid syntax Traceback (most recent call last): File "modules/lcd160cr_test.py", line 1 SyntaxError: invalid syntax make: *** [../py/mkrules.mk:117: build-PYBV11/frozen_mpy/lcd160cr.mpy] Error 1 make: *** Waiting for unfinished jobs.... make: *** [../py/mkrules.mk:117: build-PYBV11/frozen_mpy/lcd160cr_test.mpy] Error 1 Create build-PYBV11/pins_PYBV11.c
I deleted LCD160cr.py cause I do not need it but I then get:
CC ../py/../lib/utils/printf.c Creating build-PYBV11/frozen_mpy.c CC ../lib/libc/string0.c CC ../lib/libm/math.c CC ../lib/libm/thumb_vfp_sqrtf.c usage: mpy-tool.py [-h] [-d] [-f] [-q QSTR_HEADER] [-mlongint-impl {none,longlong,mpz}] [-mmpz-dig-size N] files [files ...] mpy-tool.py: error: the following arguments are required: files make: *** [../py/mkrules.mk:122: build-PYBV11/frozen_mpy.c] Error 2 make: *** Deleting file 'build-PYBV11/frozen_mpy.c' make: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: