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

SCons does not handle tool paths with spaces

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.5 Required
    • Component/s: Build
    • Labels:
      None
    • Server Development Platform
    • ALL

      SCons is not able to run builds whenever the tools have paths with spaces in them. There is no reason this can't happen on any *NIX or Windows setup, and it's a trap for unaware developers. We should fix this behavior so SCons can use these tools correctly.

      buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_v3_clang.vars  scons --dbg=on --opt=on --link-model=dynamic --ninja=next CXX='/tmp/path with spaces innit/bin/clang++' CC='/tmp/path with spaces innit/bin/clang++' generate-ninja
      
      scons: Reading SConscript files ...
      scons: running with args /home/ubuntu/.pyenv/versions/3.7.7/bin/python3 buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_v3_clang.vars scons --dbg=on --opt=on --link-model=dynamic --ninja=next CXX=/tmp/path with spaces innit/bin/clang++ CC=/tmp/path with spaces innit/bin/clang++ generate-ninja
      Using variable customization file /home/ubuntu/.scons/site_scons/mongo_custom_variables.py
      Using variable customization file etc/scons/mongodbtoolchain_v3_clang.vars
      Mkdir("build/scons")
      scons version: 3.1.2
      python version: 3 7 7 'final' 0
      CC is /tmp/path with spaces innit/bin/clang++
      /tmp/path with spaces innit/bin/clang++ resolves to /opt/mongodbtoolchain/revisions/e5348beb43e147b74a40f4ca5fb05a330ea646cf/stow/llvm-v3.99u/bin/clang-7
      CXX is /tmp/path with spaces innit/bin/clang++
      /tmp/path with spaces innit/bin/clang++ resolves to /opt/mongodbtoolchain/revisions/e5348beb43e147b74a40f4ca5fb05a330ea646cf/stow/llvm-v3.99u/bin/clang-7
      Checking whether the C compiler works... no
      C compiler /tmp/path with spaces innit/bin/clang++ doesn't work
      See /home/ubuntu/workspace/mongo/build/scons/config.log for details
      

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: