+Zach for r324504
On Tue, Feb 13, 2018 at 1:45 PM, masaru tsuchiyama via cfe-users
> llvm build fails at r324504 or later.
> I used the attached file to build. (renamed to .txt)
> clang-build.bat ninja x86 update 324806
> This is the tail of the failure log.
> CPack: Create package using NSIS
> CPack: Install projects
> CPack: - Install project: LLVM
> Creating llvm-ranlib.exe
> Creating llvm-lib.exe
> Creating llvm-dlltool.exe
> Creating clang++.exe
> Creating clang-cl.exe
> Creating clang-cpp.exe
> Creating ../msbuild-bin/cl.exe
> Creating lld-link.exe
> Creating ld.lld.exe
> Creating ld64.lld.exe
> Creating wasm-ld.exe
> Creating llvm-readelf.exe
> CPack: Create package
> CPack Error: Problem running NSIS command: "C:/Program Files
> Please check
> for errors
Is there any info about what went wrong in NSISOutput.log?
> CPack Error: Problem compressing the directory
> CPack Error: Error when generating package: LLVM
> FAILED: CMakeFiles/package.util
> cmd.exe /C "cd /D C:\Jenkins\workspace\llvm\build && "C:\Program
> Files\CMake\bin\cpack.exe" --config ./CPackConfig.cmake"
> ninja: build stopped: subcommand failed.
> I confirmed that the build succeeded by reverting r324504 at r324806.
> Index: cmake/modules/HandleLLVMOptions.cmake
> --- cmake/modules/HandleLLVMOptions.cmake (revision 324806)
> +++ cmake/modules/HandleLLVMOptions.cmake (working copy)
> @@ -353,12 +353,6 @@
> append("/Zc:inline" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
> - # Generate PDB even in release for profiling.
> - if (uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE")
> - append("/Zi" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
> - append("/DEBUG" CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS
> - endif (uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE")
This is surprising. I wouldn't expect the PDB files to end up in the
package or otherwise affect it. In fact, I tried building a package
with the script in utils/release/build_llvm_package.bat at r324504 and
it worked fine for me. And I verified there were no pdbs in the
Maybe you want to add -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON to your build,
though I'm not sure that should make any difference to the pdb files.
cfe-users mailing list