[llvm-bugs] [Bug 28089] New: Short 8.3 paths make clang++ run in C mode, linking without C++ libraries

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 11 16:34:07 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28089

            Bug ID: 28089
           Summary: Short 8.3 paths make clang++ run in C mode, linking
                    without C++ libraries
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jibz-llvmbugs at stdip.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Clang decides if it is being invoked as a C or C++ compiler based on its
filename.

When installed as `C:\Program Files\LLVM\bin\clang++.exe` on Windows,
the space in the path results in some build systems invoking it with the
short 8.3 path `C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE`, and failing to link
because clang++ thinks it is clang and does not include the C++ libraries.

One example is CMake: https://gitlab.kitware.com/cmake/cmake/issues/16138

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160611/07c15ef2/attachment.html>


More information about the llvm-bugs mailing list