Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633980 - dev-util/ninja-1.8.2::gentoo_prefix fails to build during Prefix bootstrap
Summary: dev-util/ninja-1.8.2::gentoo_prefix fails to build during Prefix bootstrap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: AMD64 OS X
: Normal blocker (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 632500
  Show dependency tree
 
Reported: 2017-10-10 20:10 UTC by Stuart Shelton
Modified: 2017-11-12 13:05 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 Stuart Shelton 2017-10-10 20:10:41 UTC
With latest bootstrap.sh script, dev-util/ninja on macOS 10.13 fails with:

>>> Compiling source in /opt/gentoo-new/tmp/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2 ...
bootstrapping ninja...
"./src/inline.sh" kBrowsePy < ./src/browse.py > build/browse_py.h
clang++ -m64 -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 -DNINJA_HAVE_BROWSE -I. -march=native -O2 -pipe -c ./src/browse.cc -o build/browse.o
In file included from ./src/browse.cc:22:
./build/browse_py.h:2:1: error: expected expression
;
^
./src/browse.cc:67:53: error: invalid application of 'sizeof' to an incomplete
      type 'const char []'
    ssize_t len = write(pipefd[1], kBrowsePy, sizeof(kBrowsePy));
                                                    ^~~~~~~~~~~
./src/browse.cc:68:30: error: invalid application of 'sizeof' to an incomplete
      type 'const char []'
    if (len < (ssize_t)sizeof(kBrowsePy))
                             ^~~~~~~~~~~
3 errors generated.
Comment 1 Stuart Shelton 2017-10-10 20:12:08 UTC
build/browse_py.h contains, in its entirety:

const char kBrowsePy[] =
;

... which looks wrong.
Comment 2 Stuart Shelton 2017-10-10 20:16:49 UTC
Running:

"./src/inline.sh" kBrowsePy < ./src/browse.py

... manually produces reasonable-looking output.  What's going on here?
Comment 3 Fabian Groffen gentoo-dev 2017-11-12 12:56:10 UTC
this is because od dies with Illegal instruction (e.g. coreutils needs a fix)
Comment 4 Fabian Groffen gentoo-dev 2017-11-12 13:05:11 UTC
updating coreutils to 8.28 includes a fix.