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

The ninja generated-sources target fails to generate basic_types_gen.h/.cpp

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Build
    • Fully Compatible
    • ALL

      The ninja generated-sources target fails to generate basic_types_gen.h/.cpp and what is worse, it marks it as generated so that a subsequent ninja install-core doesn't work.

      To reproduce it, start with a clean repository and execute the following commands:

      buildscripts/scons.py --ssl --build-tools=next --variables-files=etc/scons/developer_versions.vars --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars -j128 --jlink=4 ICECC=icecc CCACHE=ccache VARIANT_DIR=ninja DESTDIR=build/install_ninja --link-model=dynamic --dbg=on --opt=off --ninja generate-ninja
      
      ninja generated-sources && ninja compiledb && ninja -j128 install-all
      

      If the last line is replaced with only ninja -j128 install-all, the build succeeds.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: