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

Ninja next does not see compiler changes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.8.0, 4.4.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Hide

      reproduced on master commit: 

      2506e90e792f9dce299028d532fbabb48a44b556

       

      Reproduces on Ubuntu 18.04 virtual workstation

       

      Steps to reproduce:

      1. make a symlink to fakeout the compiler:
        sudo ln -s /usr/bin/gcc-8 /usr/bin/fakegcc
        sudo ln -s /usr/bin/g++-8 /usr/bin/fakeg++
      2. build with ninja:
        /usr/bin/python3.8 "buildscripts/scons.py" CC=/usr/bin/fakegcc CXX=/usr/bin/fakeg++ --build-tools=next --link-model=dynamic ICECC=icecc CCACHE=ccache --ninja generate-ninja
        ninja -j400 install-mongod
      3. now switch the compiler
        sudo rm /usr/bin/fakegcc
        sudo rm /usr/bin/fakeg++
        sudo ln -s /usr/bin/gcc-9 /usr/bin/fakegcc
        sudo ln -s /usr/bin/g++-9 /usr/bin/fakeg++
      4. rebuild with just ninja:
        ninja -j400 install-mongod
      5. ninja thinks there is nothing to do
      Show
      reproduced on master commit:  2506e90e792f9dce299028d532fbabb48a44b556   Reproduces on Ubuntu 18.04 virtual workstation   Steps to reproduce: make a symlink to fakeout the compiler: sudo ln -s /usr/bin/gcc-8 /usr/bin/fakegcc sudo ln -s /usr/bin/g++-8 /usr/bin/fakeg++ build with ninja: /usr/bin/python3.8 "buildscripts/scons.py" CC=/usr/bin/fakegcc CXX=/usr/bin/fakeg++ --build-tools=next --link-model=dynamic ICECC=icecc CCACHE=ccache --ninja generate-ninja ninja -j400 install-mongod now switch the compiler sudo rm /usr/bin/fakegcc sudo rm /usr/bin/fakeg++ sudo ln -s /usr/bin/gcc-9 /usr/bin/fakegcc sudo ln -s /usr/bin/g++-9 /usr/bin/fakeg++ rebuild with just ninja: ninja -j400 install-mongod ninja thinks there is nothing to do
    • Dev Platform 2020-09-07, Dev Platform 2020-09-21, Dev Platform 2020-10-05

      Doing a ninja build, and changing the under lying compiler does not cause a rebuild when just reinvoking with ninja.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: