>>> Emerging (1 of 3) dev-util/ninja-1.7.2::gentoo * ninja-1.7.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking ninja-1.7.2.tar.gz to /apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/work >>> Source unpacked in /apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/work >>> Preparing source in /apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/work/ninja-1.7.2 ... * Applying ninja-uclibc.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/work/ninja-1.7.2 ... >>> Source configured. >>> Compiling source in /apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/work/ninja-1.7.2 ... bootstrapping ninja... "./src/inline.sh" kBrowsePy < ./src/browse.py > build/browse_py.h x86_64-pc-linux-gnu-g++ -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="python2.7"' -O2 -DNDEBUG -fdiagnostics-color -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe -O2 -pipe -march=native -c ./src/browse.cc -o build/browse.o re2c: /apps/gentoo/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by re2c) Traceback (most recent call last): File "configure.py", line 462, in <module> if has_re2c(): File "configure.py", line 459, in has_re2c return int(proc.communicate()[0], 10) >= 1103 ValueError: invalid literal for int() with base 10: '' * ERROR: dev-util/ninja-1.7.2::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 115: Called src_compile * environment, line 2146: Called die * The specific snippet of code: * run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die; * * If you need support, post the output of `emerge --info '=dev-util/ninja-1.7.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/ninja-1.7.2::gentoo'`. * The complete build log is located at '/apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/temp/build.log'. * The ebuild environment file is located at '/apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/temp/environment'. * Working directory: '/apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/work/ninja-1.7.2' * S: '/apps/gentoo/var/tmp/portage/dev-util/ninja-1.7.2/work/ninja-1.7.2'
After recompilation of re2c ninja can be installed, but the point here is the programming error in configure.py.
> re2c: /apps/gentoo/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by re2c) Your re2c binary is broken, probably due to a recent gcc upgrade/downgrade.
(In reply to Martin Mokrejš from comment #1) > After recompilation of re2c ninja can be installed, but the point here is > the programming error in configure.py. It's not really a programming error, but you may report it upstream if you like.