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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 4.5.1
    • 4.4.1, 5.0.1
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • 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

            daniel.moody@mongodb.com Daniel Moody
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: