The version published tody does not compile on unix. Calling make results in:
~/Downloads/MicroPython/micropython-master/unix$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/genhdr
GEN build/genhdr/qstrdefs.generated.h
Traceback (most recent call last):
File "../py/makeversionhdr.py", line 107, in <module>
make_version_header(sys.argv[1])
File "../py/makeversionhdr.py", line 73, in make_version_header
info = get_version_info_from_git()
File "../py/makeversionhdr.py", line 26, in get_version_info_from_git
if er.args[0] == 128:
IndexError: tuple index out of range
../py/py.mk:132: recipe for target 'build/genhdr/mpversion.h' failed
make: *** [build/genhdr/mpversion.h] Error 1
I used the ZIP file from the web site extacted into a new folder structure. Inserting:
return None
as the first statement in get_version_info_from_git() of makeversionhdr.py works as a hot fix.
Regards
Micropython 1.4.5 does not compile on unix
Re: Micropython 1.4.5 does not compile on unix
Same here
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)
HAM radio call: HA5DI (Béla)
Re: Micropython 1.4.5 does not compile on unix
Working for me on OSX…
Latest pull from github:
Download from http://micropython.org/resources/micropython-master.zip, extracted to a new folder (outside of my Git repo folder)
Latest pull from github:
Code: Select all
Micro Python v1.4.5-1-gb7d5906 on 2015-08-11; darwin version
>>>
Code: Select all
Micro Python v1.4.5 on 2015-08-11; darwin version
>>>
Code: Select all
bryans-computer:unix bryan$ clang --version
Apple clang version 3.1 (tags/Apple/clang-318.0.54) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
bryans-computer:unix bryan$ python --version
Python 3.4.3
bryas-computer:unix bryan$ git --version
git version 2.4.5
bryans-computer:upy bryan$ md5sum micropython-master.zip
c41a11d725c63900bf560c9e5399e673 micropython-master.zip
Re: Micropython 1.4.5 does not compile on unix
See issue at GitHub: https://github.com/micropython/micropython/issues/1420
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)
HAM radio call: HA5DI (Béla)
Re: Micropython 1.4.5 does not compile on unix
Today's update did not fix it. I have git installed (Linux), but no git repository for Micropython.
B.t.w.: The windows version compiles using MINGW.
The version of the script makeversionhdr.py that came with micropython 1.4.4.-196 works.
B.t.w.: The windows version compiles using MINGW.
The version of the script makeversionhdr.py that came with micropython 1.4.4.-196 works.
Re: Micropython 1.4.5 does not compile on unix
Building a git clone works fine. If you clone git source it will build.
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)
HAM radio call: HA5DI (Béla)
Re: Micropython 1.4.5 does not compile on unix
Now it builds fine with the change discussed in GitHub issue referred.
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)
HAM radio call: HA5DI (Béla)