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

Ninja next does not see compiler changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0, 4.4.2
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Steps To Reproduce:
      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
    • Sprint:
      Dev Platform 2020-09-07, Dev Platform 2020-09-21, Dev Platform 2020-10-05

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: