Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615492 - dev-util/ninja-1.7.2 - ValueError: invalid literal for int() with base 10: ''
Summary: dev-util/ninja-1.7.2 - ValueError: invalid literal for int() with base 10: ''
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 23:44 UTC by Martin Mokrejš
Modified: 2017-04-25 07:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2017-04-13 23:44:17 UTC
>>> 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'
Comment 1 Martin Mokrejš 2017-04-13 23:45:48 UTC
After recompilation of re2c ninja can be installed, but the point here is the programming error in configure.py.
Comment 2 Mike Gilbert gentoo-dev 2017-04-25 07:29:03 UTC
> 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.
Comment 3 Mike Gilbert gentoo-dev 2017-04-25 07:29:47 UTC
(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.