Micropython 1.4.5 does not compile on unix

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Micropython 1.4.5 does not compile on unix

Post by Roberthh » Tue Aug 11, 2015 8:11 pm

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

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Re: Micropython 1.4.5 does not compile on unix

Post by bmarkus » Tue Aug 11, 2015 8:24 pm

Same here
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: Micropython 1.4.5 does not compile on unix

Post by blmorris » Tue Aug 11, 2015 8:50 pm

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

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Re: Micropython 1.4.5 does not compile on unix

Post by bmarkus » Wed Aug 12, 2015 1:42 am

Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Micropython 1.4.5 does not compile on unix

Post by Roberthh » Wed Aug 12, 2015 6:18 am

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.

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Re: Micropython 1.4.5 does not compile on unix

Post by bmarkus » Wed Aug 12, 2015 8:44 am

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)

User avatar
bmarkus
Posts: 111
Joined: Tue Oct 21, 2014 5:58 am

Re: Micropython 1.4.5 does not compile on unix

Post by bmarkus » Wed Aug 12, 2015 1:18 pm

Now it builds fine with the change discussed in GitHub issue referred.
Tiny Core Linux (piCore) developer
HAM radio call: HA5DI (Béla)

Post Reply