Page 1 of 1

Micropython 1.4.5 does not compile on unix

Posted: Tue Aug 11, 2015 8:11 pm
by Roberthh
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

Re: Micropython 1.4.5 does not compile on unix

Posted: Tue Aug 11, 2015 8:24 pm
by bmarkus
Same here

Re: Micropython 1.4.5 does not compile on unix

Posted: Tue Aug 11, 2015 8:50 pm
by blmorris
Working for me on OSX…

Latest pull from github:

Code: Select all

Micro Python v1.4.5-1-gb7d5906 on 2015-08-11; darwin version
>>> 
Download from http://micropython.org/resources/micropython-master.zip, extracted to a new folder (outside of my Git repo folder)

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

Posted: Wed Aug 12, 2015 1:42 am
by bmarkus

Re: Micropython 1.4.5 does not compile on unix

Posted: Wed Aug 12, 2015 6:18 am
by Roberthh
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.

Re: Micropython 1.4.5 does not compile on unix

Posted: Wed Aug 12, 2015 8:44 am
by bmarkus
Building a git clone works fine. If you clone git source it will build.

Re: Micropython 1.4.5 does not compile on unix

Posted: Wed Aug 12, 2015 1:18 pm
by bmarkus
Now it builds fine with the change discussed in GitHub issue referred.