[cfe-dev] Using Clang 5.0.0 RC2 with MSVC dev builds
don hinton via cfe-dev
cfe-dev at lists.llvm.org
Tue Aug 15 20:17:23 PDT 2017
Currently, for pre-2017, the root directory must be in the form <some
path>/VC.
Could you try renaming x86ret and amd64ret to VC and try it again? e.g.:
C:\Temp\binaries\x86ret\bin\i386 ==> C:\Temp\binaries\VC\bin\i386
C:\Temp\binaries\amd64ret\bin\amd64 ==> C:\Temp\binaries\VC\bin\amd64
On Tue, Aug 15, 2017 at 6:48 PM, Stephan T. Lavavej <
stl at exchange.microsoft.com> wrote:
> Here's how to repro my directory structure in a clean VM. (I have to run
> an installer to extract the WinSDK, but then I just copy its files around.)
> I could prepare similar instructions to gather this directory structure
> from a real installation of VS, for copying to a clean VM, if you would
> prefer that.
>
> 1. Download (600 MB): https://www.nuget.org/api/v2/package/VisualCppTools.
> Community.D14Layout/14.10.25506
>
> 2. Rename visualcpptools.community.d14layout.14.10.25506.nupkg to
> nuget.zip .
>
> 3. Extract nuget.zip to C:\Temp , creating C:\Temp\nuget\lib\native\branchinfo.txt
> (for example).
>
> 4. In C:\Temp run:
>
> robocopy nuget\lib\native\bin binaries\x86ret\bin\i386
> robocopy nuget\lib\native\bin\1033 binaries\x86ret\bin\i386\1033 /s
> robocopy nuget\lib\native\bin\amd64 binaries\amd64ret\bin\amd64 /s
> robocopy nuget\lib\native\bin\x86_amd64 binaries\x86ret\bin\x86_amd64 /s
> robocopy nuget\lib\native\bin\amd64_x86 binaries\amd64ret\bin\amd64_x86 /s
> robocopy nuget\lib\native\include binaries\x86ret\inc /s
> robocopy nuget\lib\native\include binaries\amd64ret\inc /s
> robocopy nuget\lib\native\lib binaries\x86ret\lib\i386
> robocopy nuget\lib\native\lib\amd64 binaries\amd64ret\lib\amd64 /s
>
> 5. We need the WinSDK:
>
> https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
> "Download the .EXE"
> "Install ... to this computer" is fine, Next.
> Either Yes or No to anonymous usage data is fine, Next.
> If you accept the EULA, Accept.
> I'm too lazy to figure out the minimal set of features, so leave them all
> checked, Install.
>
> 6. In C:\Temp run:
>
> robocopy "C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um"
> ExternalApis\Windows\10\sdk\inc /s
> robocopy "C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared"
> ExternalApis\Windows\10\sdk\inc /s
> robocopy "C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt"
> ExternalApis\UnifiedCRT\inc /s
> robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x86"
> ExternalApis\Windows\10\sdk\lib\x86 /s
> robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64"
> ExternalApis\Windows\10\sdk\lib\x64 /s
> robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x86"
> ExternalApis\UnifiedCRT\lib\i386 /s
> robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x64"
> ExternalApis\UnifiedCRT\lib\amd64 /s
>
> 7. Download LLVM-5.0.0-rc2-win64.exe and in C:\Temp use 7-Zip to extract
> it:
>
> 7z x LLVM-5.0.0-rc2-win64.exe -x!Uninstall.exe -x!$PLUGINSDIR\* -oClangLLVM
>
> 8. Now you can set up an x86 or an x64 command prompt (these are mutually
> exclusive options):
>
> title x86 Dev Build
> set PATH=C:\Temp\binaries\x86ret\bin\i386;C:\Temp\ClangLLVM\bin;%PATH%
> set INCLUDE=C:\Temp\binaries\x86ret\inc;C:\Temp\
> ExternalApis\Windows\10\sdk\inc;C:\Temp\ExternalApis\UnifiedCRT\inc
> set LIB=C:\Temp\binaries\x86ret\lib\i386;C:\Temp\ExternalApis\
> Windows\10\sdk\lib\x86;C:\Temp\ExternalApis\UnifiedCRT\lib\i386
>
> OR:
>
> title x64 Dev Build
> set PATH=C:\Temp\binaries\amd64ret\bin\amd64;C:\Temp\ClangLLVM\bin;%PATH%
> set INCLUDE=C:\Temp\binaries\amd64ret\inc;C:\Temp\
> ExternalApis\Windows\10\sdk\inc;C:\Temp\ExternalApis\UnifiedCRT\inc
> set LIB=C:\Temp\binaries\amd64ret\lib\amd64;C:\Temp\
> ExternalApis\Windows\10\sdk\lib\x64;C:\Temp\ExternalApis\
> UnifiedCRT\lib\amd64
>
> 9. Let's try the "x86 Dev Build".
>
> NOTE: this VM is totally clean and doesn't have VS 2013 installed, so the
> behavior is a little different from my original repro (Clang can't find VS,
> instead of erroneously finding VS 2013), but the behavior is similarly
> undesirable.
>
> C:\Temp>echo %PATH%
> C:\Temp\binaries\x86ret\bin\i386;C:\Temp\ClangLLVM\bin;C:\
> Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\
> WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\10\Windows
> Performance Toolkit\;C:\Users\stl\AppData\Local\Microsoft\WindowsApps;
>
> C:\Temp>echo %INCLUDE%
> C:\Temp\binaries\x86ret\inc;C:\Temp\ExternalApis\Windows\10\
> sdk\inc;C:\Temp\ExternalApis\UnifiedCRT\inc
>
> C:\Temp>echo %LIB%
> C:\Temp\binaries\x86ret\lib\i386;C:\Temp\ExternalApis\
> Windows\10\sdk\lib\x86;C:\Temp\ExternalApis\UnifiedCRT\lib\i386
>
> C:\Temp>type meow.cpp
> #include <iostream>
> int main() {
> #ifdef __clang__
> std::cout << "I am Clang: " << __clang_version__ << "\n";
> #elif defined(_MSC_VER)
> std::cout << "I am C1XX: " << _MSC_FULL_VER << "\n";
> #else
> std::cout << "I am something else.\n";
> #endif
> std::cout << "And I am " << sizeof(void *) * 8 << "-bit.\n";
> }
>
> C:\Temp>where cl
> C:\Temp\binaries\x86ret\bin\i386\cl.exe
>
> C:\Temp>where link
> C:\Temp\binaries\x86ret\bin\i386\link.exe
>
> C:\Temp>cl /EHsc /nologo /W4 /MT meow.cpp && meow
> meow.cpp
> I am C1XX: 191125506
> And I am 32-bit.
>
> C:\Temp>where clang-cl
> C:\Temp\ClangLLVM\bin\clang-cl.exe
>
> C:\Temp>clang-cl -v -m32 /EHsc /nologo /W4 /MT meow.cpp && meow
> clang version 5.0.0 (tags/RELEASE_500/rc2)
> Target: i386-pc-windows-msvc
> Thread model: posix
> InstalledDir: C:\Temp\ClangLLVM\bin
> clang-cl.exe: warning: unable to find a Visual Studio installation; try
> running Clang from a developer command prompt [-Wmsvc-not-found]
> "C:\\Temp\\ClangLLVM\\bin\\clang-cl.exe" -cc1 -triple
> i386-pc-windows-msvc18.0.0 -emit-obj -mrelax-all -mincremental-linker-compatible
> -disable-free -main-file-name meow.cpp -mrelocation-model static
> -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -fmath-errno
> -masm-verbose -mconstructor-aliases -target-cpu pentium4 -D_MT
> -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames
> -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind
> -fms-volatile -fdiagnostics-format msvc -v -dwarf-column-info
> -debugger-tuning=gdb -resource-dir "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0"
> -internal-isystem "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0\\include"
> -internal-isystem "C:\\Temp\\binaries\\x86ret\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\Windows\\10\\sdk\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\UnifiedCRT\\inc" -WCL4 -fdeprecated-macro
> -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120
> -fms-extensions -fms-compatibility -fms-compatibility-version=18 -std=c++11
> -fno-threadsafe-statics -fdelayed-template-parsing -fobjc-runtime=gcc
> -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-952e26.obj" -x c++ meow.cpp
> clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target
> x86_64-pc-windows-msvc
> #include "..." search starts here:
> #include <...> search starts here:
> C:\Temp\ClangLLVM\lib\clang\5.0.0\include
> C:\Temp\binaries\x86ret\inc
> C:\Temp\ExternalApis\Windows\10\sdk\inc
> C:\Temp\ExternalApis\UnifiedCRT\inc
> End of search list.
> In file included from meow.cpp:1:
> In file included from C:\Temp\binaries\x86ret\inc\iostream:6:
> In file included from C:\Temp\binaries\x86ret\inc\istream:6:
> In file included from C:\Temp\binaries\x86ret\inc\ostream:6:
> In file included from C:\Temp\binaries\x86ret\inc\ios:6:
> In file included from C:\Temp\binaries\x86ret\inc\xlocnum:7:
> In file included from C:\Temp\binaries\x86ret\inc\cmath:617:
> In file included from C:\Temp\binaries\x86ret\inc\xtgmath.h:9:
> C:\Temp\binaries\x86ret\inc\xtr1common(204,22) : error: use of
> undeclared identifier 'char16_t'
> struct _Is_integral<char16_t>
> ^
> [...more errors...]
>
> C:\Temp>clang-cl -v -m32 /EHsc /nologo /W4 /MT
> -fms-compatibility-version=19.11.25506 meow.cpp && meow
> clang version 5.0.0 (tags/RELEASE_500/rc2)
> Target: i386-pc-windows-msvc
> Thread model: posix
> InstalledDir: C:\Temp\ClangLLVM\bin
> clang-cl.exe: warning: unable to find a Visual Studio installation; try
> running Clang from a developer command prompt [-Wmsvc-not-found]
> "C:\\Temp\\ClangLLVM\\bin\\clang-cl.exe" -cc1 -triple
> i386-pc-windows-msvc19.11.25506 -emit-obj -mrelax-all
> -mincremental-linker-compatible -disable-free -main-file-name meow.cpp
> -mrelocation-model static -mthread-model posix -mdisable-fp-elim
> -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
> -target-cpu pentium4 -D_MT -flto-visibility-public-std
> --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2
> -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile
> -fdiagnostics-format msvc -v -dwarf-column-info -debugger-tuning=gdb
> -resource-dir "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0" -internal-isystem
> "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0\\include" -internal-isystem
> "C:\\Temp\\binaries\\x86ret\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\Windows\\10\\sdk\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\UnifiedCRT\\inc" -WCL4 -fdeprecated-macro
> -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120
> -fms-extensions -fms-compatibility -fms-compatibility-version=19.11.25506
> -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc
> -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-8771d8.obj" -x c++ meow.cpp
> clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target
> x86_64-pc-windows-msvc
> #include "..." search starts here:
> #include <...> search starts here:
> C:\Temp\ClangLLVM\lib\clang\5.0.0\include
> C:\Temp\binaries\x86ret\inc
> C:\Temp\ExternalApis\Windows\10\sdk\inc
> C:\Temp\ExternalApis\UnifiedCRT\inc
> End of search list.
> "link.exe" -out:meow.exe -nologo "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-8771d8.obj"
> clang-cl.exe: error: unable to execute command: program not executable
> clang-cl.exe: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> C:\Temp>clang-cl -v -m32 /EHsc /nologo /W4 /MT
> -fms-compatibility-version=19.11.25506 -fuse-ld=lld-link meow.cpp && meow
> clang version 5.0.0 (tags/RELEASE_500/rc2)
> Target: i386-pc-windows-msvc
> Thread model: posix
> InstalledDir: C:\Temp\ClangLLVM\bin
> clang-cl.exe: warning: unable to find a Visual Studio installation; try
> running Clang from a developer command prompt [-Wmsvc-not-found]
> "C:\\Temp\\ClangLLVM\\bin\\clang-cl.exe" -cc1 -triple
> i386-pc-windows-msvc19.11.25506 -emit-obj -mrelax-all
> -mincremental-linker-compatible -disable-free -main-file-name meow.cpp
> -mrelocation-model static -mthread-model posix -mdisable-fp-elim
> -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
> -target-cpu pentium4 -D_MT -flto-visibility-public-std
> --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2
> -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile
> -fdiagnostics-format msvc -v -dwarf-column-info -debugger-tuning=gdb
> -resource-dir "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0" -internal-isystem
> "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0\\include" -internal-isystem
> "C:\\Temp\\binaries\\x86ret\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\Windows\\10\\sdk\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\UnifiedCRT\\inc" -WCL4 -fdeprecated-macro
> -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120
> -fms-extensions -fms-compatibility -fms-compatibility-version=19.11.25506
> -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc
> -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-67d57c.obj" -x c++ meow.cpp
> clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target
> x86_64-pc-windows-msvc
> #include "..." search starts here:
> #include <...> search starts here:
> C:\Temp\ClangLLVM\lib\clang\5.0.0\include
> C:\Temp\binaries\x86ret\inc
> C:\Temp\ExternalApis\Windows\10\sdk\inc
> C:\Temp\ExternalApis\UnifiedCRT\inc
> End of search list.
> "C:\\Temp\\ClangLLVM\\bin\\lld-link" -out:meow.exe -nologo
> "C:\\Users\\stl\\AppData\\Local\\Temp\\2\\meow-67d57c.obj"
> I am Clang: 5.0.0 (tags/RELEASE_500/rc2)
> And I am 32-bit.
>
> 10. And the "x64 Dev Build":
>
> C:\Temp>echo %PATH%
> C:\Temp\binaries\amd64ret\bin\amd64;C:\Temp\ClangLLVM\bin;C:
> \Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\
> WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\10\Windows
> Performance Toolkit\;C:\Users\stl\AppData\Local\Microsoft\WindowsApps;
>
> C:\Temp>echo %INCLUDE%
> C:\Temp\binaries\amd64ret\inc;C:\Temp\ExternalApis\Windows\
> 10\sdk\inc;C:\Temp\ExternalApis\UnifiedCRT\inc
>
> C:\Temp>echo %LIB%
> C:\Temp\binaries\amd64ret\lib\amd64;C:\Temp\ExternalApis\
> Windows\10\sdk\lib\x64;C:\Temp\ExternalApis\UnifiedCRT\lib\amd64
>
> C:\Temp>type meow.cpp
> #include <iostream>
> int main() {
> #ifdef __clang__
> std::cout << "I am Clang: " << __clang_version__ << "\n";
> #elif defined(_MSC_VER)
> std::cout << "I am C1XX: " << _MSC_FULL_VER << "\n";
> #else
> std::cout << "I am something else.\n";
> #endif
> std::cout << "And I am " << sizeof(void *) * 8 << "-bit.\n";
> }
>
> C:\Temp>where cl
> C:\Temp\binaries\amd64ret\bin\amd64\cl.exe
>
> C:\Temp>where link
> C:\Temp\binaries\amd64ret\bin\amd64\link.exe
>
> C:\Temp>cl /EHsc /nologo /W4 /MT meow.cpp && meow
> meow.cpp
> I am C1XX: 191125506
> And I am 64-bit.
>
> C:\Temp>where clang-cl
> C:\Temp\ClangLLVM\bin\clang-cl.exe
>
> C:\Temp>clang-cl -v -m64 /EHsc /nologo /W4 /MT meow.cpp && meow
> clang version 5.0.0 (tags/RELEASE_500/rc2)
> Target: x86_64-pc-windows-msvc
> Thread model: posix
> InstalledDir: C:\Temp\ClangLLVM\bin
> clang-cl.exe: warning: unable to find a Visual Studio installation; try
> running Clang from a developer command prompt [-Wmsvc-not-found]
> "C:\\Temp\\ClangLLVM\\bin\\clang-cl.exe" -cc1 -triple
> x86_64-pc-windows-msvc18.0.0 -emit-obj -mrelax-all -mincremental-linker-compatible
> -disable-free -main-file-name meow.cpp -mrelocation-model pic -pic-level 2
> -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose
> -mconstructor-aliases -munwind-tables -target-cpu x86-64 -D_MT
> -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames
> -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind
> -fms-volatile -fdiagnostics-format msvc -momit-leaf-frame-pointer -v
> -dwarf-column-info -debugger-tuning=gdb -resource-dir
> "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0" -internal-isystem
> "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0\\include" -internal-isystem
> "C:\\Temp\\binaries\\amd64ret\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\Windows\\10\\sdk\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\UnifiedCRT\\inc" -WCL4 -fdeprecated-macro
> -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120
> -fms-extensions -fms-compatibility -fms-compatibility-version=18 -std=c++11
> -fno-threadsafe-statics -fdelayed-template-parsing -fobjc-runtime=gcc
> -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-0e7e4d.obj" -x c++ meow.cpp
> clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target
> x86_64-pc-windows-msvc
> #include "..." search starts here:
> #include <...> search starts here:
> C:\Temp\ClangLLVM\lib\clang\5.0.0\include
> C:\Temp\binaries\amd64ret\inc
> C:\Temp\ExternalApis\Windows\10\sdk\inc
> C:\Temp\ExternalApis\UnifiedCRT\inc
> End of search list.
> In file included from meow.cpp:1:
> In file included from C:\Temp\binaries\amd64ret\inc\iostream:6:
> In file included from C:\Temp\binaries\amd64ret\inc\istream:6:
> In file included from C:\Temp\binaries\amd64ret\inc\ostream:6:
> In file included from C:\Temp\binaries\amd64ret\inc\ios:6:
> In file included from C:\Temp\binaries\amd64ret\inc\xlocnum:7:
> In file included from C:\Temp\binaries\amd64ret\inc\cmath:617:
> In file included from C:\Temp\binaries\amd64ret\inc\xtgmath.h:9:
> C:\Temp\binaries\amd64ret\inc\xtr1common(204,22) : error: use of
> undeclared identifier 'char16_t'
> struct _Is_integral<char16_t>
> ^
> [...more errors...]
>
> C:\Temp>clang-cl -v -m64 /EHsc /nologo /W4 /MT
> -fms-compatibility-version=19.11.25506 meow.cpp && meow
> clang version 5.0.0 (tags/RELEASE_500/rc2)
> Target: x86_64-pc-windows-msvc
> Thread model: posix
> InstalledDir: C:\Temp\ClangLLVM\bin
> clang-cl.exe: warning: unable to find a Visual Studio installation; try
> running Clang from a developer command prompt [-Wmsvc-not-found]
> "C:\\Temp\\ClangLLVM\\bin\\clang-cl.exe" -cc1 -triple
> x86_64-pc-windows-msvc19.11.25506 -emit-obj -mrelax-all
> -mincremental-linker-compatible -disable-free -main-file-name meow.cpp
> -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing
> -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
> -target-cpu x86-64 -D_MT -flto-visibility-public-std --dependent-lib=libcmt
> --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions
> -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc
> -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb
> -resource-dir "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0" -internal-isystem
> "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0\\include" -internal-isystem
> "C:\\Temp\\binaries\\amd64ret\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\Windows\\10\\sdk\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\UnifiedCRT\\inc" -WCL4 -fdeprecated-macro
> -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120
> -fms-extensions -fms-compatibility -fms-compatibility-version=19.11.25506
> -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc
> -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-a284f9.obj" -x c++ meow.cpp
> clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target
> x86_64-pc-windows-msvc
> #include "..." search starts here:
> #include <...> search starts here:
> C:\Temp\ClangLLVM\lib\clang\5.0.0\include
> C:\Temp\binaries\amd64ret\inc
> C:\Temp\ExternalApis\Windows\10\sdk\inc
> C:\Temp\ExternalApis\UnifiedCRT\inc
> End of search list.
> "link.exe" -out:meow.exe -nologo "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-a284f9.obj"
> clang-cl.exe: error: unable to execute command: program not executable
> clang-cl.exe: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> C:\Temp>clang-cl -v -m64 /EHsc /nologo /W4 /MT
> -fms-compatibility-version=19.11.25506 -fuse-ld=lld-link meow.cpp && meow
> clang version 5.0.0 (tags/RELEASE_500/rc2)
> Target: x86_64-pc-windows-msvc
> Thread model: posix
> InstalledDir: C:\Temp\ClangLLVM\bin
> clang-cl.exe: warning: unable to find a Visual Studio installation; try
> running Clang from a developer command prompt [-Wmsvc-not-found]
> "C:\\Temp\\ClangLLVM\\bin\\clang-cl.exe" -cc1 -triple
> x86_64-pc-windows-msvc19.11.25506 -emit-obj -mrelax-all
> -mincremental-linker-compatible -disable-free -main-file-name meow.cpp
> -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing
> -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
> -target-cpu x86-64 -D_MT -flto-visibility-public-std --dependent-lib=libcmt
> --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions
> -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc
> -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb
> -resource-dir "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0" -internal-isystem
> "C:\\Temp\\ClangLLVM\\lib\\clang\\5.0.0\\include" -internal-isystem
> "C:\\Temp\\binaries\\amd64ret\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\Windows\\10\\sdk\\inc" -internal-isystem
> "C:\\Temp\\ExternalApis\\UnifiedCRT\\inc" -WCL4 -fdeprecated-macro
> -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120
> -fms-extensions -fms-compatibility -fms-compatibility-version=19.11.25506
> -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc
> -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\
> Local\\Temp\\2\\meow-0b315e.obj" -x c++ meow.cpp
> clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target
> x86_64-pc-windows-msvc
> #include "..." search starts here:
> #include <...> search starts here:
> C:\Temp\ClangLLVM\lib\clang\5.0.0\include
> C:\Temp\binaries\amd64ret\inc
> C:\Temp\ExternalApis\Windows\10\sdk\inc
> C:\Temp\ExternalApis\UnifiedCRT\inc
> End of search list.
> "C:\\Temp\\ClangLLVM\\bin\\lld-link" -out:meow.exe -nologo
> "C:\\Users\\stl\\AppData\\Local\\Temp\\2\\meow-0b315e.obj"
> I am Clang: 5.0.0 (tags/RELEASE_500/rc2)
> And I am 64-bit.
>
> Hope this helps,
> STL
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170815/1304e7cb/attachment.html>
More information about the cfe-dev
mailing list