Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49016

Ninja build reporting "no such file: /proc/cpuinfo"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 4.5.1
    • Fix Version/s: 4.4.1, 5.0 Desired
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Dev Platform 2020-07-13

      Description

      As of this morning, running `ninja -j500 install-core` on my dev box (ubuntu 18) for a  `scons --ninja` build results in the build completing successfully, but with multiple warnings spammed to the output:

      [729/4612 ( 15%) 64.160s] Compiling build/ninja/mongo/util/options_parser/value.dyn.o
      Can't read /proc/cpuinfo: No such file or directory
      Can't read /proc/cpuinfo: No such file or directory
      [731/4612 ( 15%) 64.240s] Compiling build/ninja/mongo/s/catalog/type_lockpings.dyn.o
      

      This pattern is repeated between each target object ad nauseum.

      Since my system certainly does have a world readable /proc/cpuinfo, I assume this is an icecream related issue where the build of that object is occurring on another machine (perhaps non-linux?).

      My scons invocation is:

      SCONS_INVOCATION_W_TARGETS = /usr/bin/python3 "buildscripts/scons.py" $
          "CC=/opt/mongodbtoolchain/v3/bin/clang" "CXX=/opt/mongodbtoolchain/v3/bin/clang++" $
          "MONGO_VERSION=0.0.0" "MONGO_GIT_HASH=unknown" "CCFLAGS=-gsplit-dwarf" "--modules=enterprise" $
          "--ssl" "--link-model=dynamic" "VARIANT_DIR=ninja" "--modules=enterprise" "-j30" $
          "--allocator=system" "ICECC=icecc" "--modules=enterprise" "--ninja" "build.ninja"
      

        Attachments

          Activity

            People

            Assignee:
            daniel.moody Daniel Moody
            Reporter:
            sara.golemon Sara Golemon
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: