error building/configuring ninja

Ryan Schmidt ryandesign at macports.org
Thu Aug 30 10:10:39 UTC 2018


On Aug 30, 2018, at 01:32, Riccardo Mottola wrote:

> Hey,
> 
> I was upgrading ports on my Leopard system 10.5, I missed a couple of weeks.. a lot of "big stuff" built well though :)
> 
> ninja fails - it is not directly selected for upgrade, it must be a dependency.
> 
> bootstrapping ninja...
> "./src/inline.sh" kBrowsePy < ./src/browse.py > build/browse_py.h
> /usr/bin/g++-4.2 -MMD -MT build/browse.o -MF build/browse.o.d -g -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="/opt/local/bin/python2.7"' -O2 -DNDEBUG -DNINJA_HAVE_BROWSE -I. -pipe -Os -arch i386 -pipe -Os -arch i386 -c ./src/browse.cc -o build/browse.o
> Traceback (most recent call last):
>  File "configure.py", line 470, in <module>
>    if has_re2c():
>  File "configure.py", line 467, in has_re2c
>    return int(proc.communicate()[0], 10) >= 1103
> ValueError: invalid literal for int() with base 10: ''
> Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ninja/ninja/work/ninja-1.8.2" && /opt/local/bin/python2.7 configure.py --with-python=/opt/local/bin/python2.7 --bootstrap --verbose
> Exit code: 1
> Error: Failed to configure ninja: configure failure: command execution failed
> 
> 
> Do you have an idea?

Hi Riccardo,

Run "sudo port selfupdate" and "sudo port upgrade outdated" to get re2c @1.1_1; re2c @1.1_0 had a bug. This affected all systems, not just Leopard.

-Ryan



More information about the macports-users mailing list