If downgraded re2c it is well consumed by ninja: --- # emerge -1v dev-util/re2c dev-util/ninja These are the packages that would be merged, in order: Calculating dependencies .... ...... done! [ebuild UD ] dev-util/re2c-1.0.3::gentoo [1.1::gentoo] 5.671 KiB [ebuild R ] dev-util/ninja-1.8.2-r1::gentoo USE="-doc -emacs -test -vim-syntax -zsh-completion" 0 KiB Total: 2 packages (1 downgrade, 1 reinstall), Size of downloads: 5.671 KiB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 2) dev-util/re2c-1.0.3::gentoo >>> Installing (1 of 2) dev-util/re2c-1.0.3::gentoo >>> Emerging (2 of 2) dev-util/ninja-1.8.2-r1::gentoo >>> Installing (2 of 2) dev-util/ninja-1.8.2-r1::gentoo --- Before I tried recompiling ninja with just having had emerged the newest dev-util/re2c-1.1 --- # emerge -1v dev-util/ninja These are the packages that would be merged, in order: Calculating dependencies .... done! [ebuild R ] dev-util/ninja-1.8.2-r1::gentoo USE="-doc -emacs -test -vim-syntax -zsh-completion" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-util/ninja-1.8.2-r1::gentoo >>> Failed to emerge dev-util/ninja-1.8.2-r1, Log file: >>> '/var/log/portage/build/dev-util/ninja-1.8.2-r1:20180828-085823.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 3.86, 3.03, 2.96 * Package: dev-util/ninja-1.8.2-r1 * Repository: gentoo * Maintainer: chromium@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Source unpacked in /tmp/portage/dev-util/ninja-1.8.2-r1/work >>> Preparing source in /tmp/portage/dev-util/ninja-1.8.2-r1/work/ninja-1.8.2-fortran ... >>> Source prepared. >>> Configuring source in /tmp/portage/dev-util/ninja-1.8.2-r1/work/ninja-1.8.2-fortran ... >>> Source configured. >>> Compiling source in /tmp/portage/dev-util/ninja-1.8.2-r1/work/ninja-1.8.2-fortran ... 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="python3.6"' -O2 -DNDEBUG -fdiagnostics-color -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -march=native -mtune=generic -O2 -pipe -march=native -mtune=generic -O2 -pipe -c ./src/browse.cc -o build/browse.o terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::erase: __pos (which is 4) > this->size() (which is 3) 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: b'' * ERROR: dev-util/ninja-1.8.2-r1::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 2188: Called die * The specific snippet of code: * run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die; * ---
Unfortuanately there is no recent commit to https://github.com/ninja-build/ninja/commits/master which could serve as a patch when recompiling ninja using dev-util/re2c-1.1
*** This bug has been marked as a duplicate of bug 664752 ***