Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llvm:x86-windows] build failure #12568

Closed
satishbabariya opened this issue Jul 25, 2020 · 8 comments
Closed

[llvm:x86-windows] build failure #12568

satishbabariya opened this issue Jul 25, 2020 · 8 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@satishbabariya
Copy link

Environment

  • OS: windows

Failure logs

Computing installation plan...
The following packages will be built and installed:
    llvm[clang,compiler-rt,core,disable-abi-breaking-checks,disable-assertions,disable-clang-static-analyzer,enable-rtti,lld,tools]:x86-windows
Detecting compiler hash for triplet x86-windows...
Starting package 1/1: llvm:x86-windows
Building package llvm[clang,compiler-rt,core,disable-abi-breaking-checks,disable-assertions,disable-clang-static-analyzer,enable-rtti,lld,tools]:x86-windows...
Could not locate cached archive: C:\Users\Satish\AppData\Local\vcpkg\archives\aa\aa04d482bc2b14e89d1ceae6ec27ee8a1cf12d46.zip
-- Note: llvm only supports static library linkage. Building static library.
-- Using cached C:/Users/Satish/vcpkg/downloads/llvm-llvm-project-llvmorg-10.0.0.tar.gz
-- Cleaning sources at C:/Users/Satish/vcpkg/buildtrees/llvm/src/org-10.0.0-32c002c70c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/Satish/vcpkg/downloads/llvm-llvm-project-llvmorg-10.0.0.tar.gz
-- Applying patch 0001-allow-to-use-commas.patch
-- Applying patch 0002-fix-install-paths.patch
-- Applying patch 0003-fix-vs2019-v16.6.patch
-- Using source at C:/Users/Satish/vcpkg/buildtrees/llvm/src/org-10.0.0-32c002c70c.clean
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
    Command failed: C:/Users/Satish/vcpkg/downloads/tools/cmake-3.17.2-windows/cmake-3.17.2-win32-x86/bin/cmake.exe --build . --config Debug --target install -- /p:VCPkgLocalAppDataDisabled=true /p:UseIntelMKL=No /m
    Working Directory: C:/Users/Satish/vcpkg/buildtrees/llvm/x86-windows-dbg
    See logs for more information:
      C:\Users\Satish\vcpkg\buildtrees\llvm\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/llvm/portfile.cmake:196 (vcpkg_install_cmake)
  scripts/ports.cmake:79 (include)


Error: Building package llvm:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: llvm:x86-windows
  Vcpkg version: 2020.06.15-nohash

Additionally, attach any relevant sections from the log files above.
@StarGate-One
Copy link
Contributor

Please attach/upload C:\Users\Satish\vcpkg\buildtrees\llvm\install-x86-windows-dbg-out.log

@satishbabariya
Copy link
Author

@StarGate-One
Copy link
Contributor

  • fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory
  • The file missing is in the Windows SDK
  • vcpkg needs to have Windows SDK version 8.1 or later installed?

@PhoebeHui PhoebeHui self-assigned this Jul 27, 2020
@PhoebeHui
Copy link
Contributor

There are 2 issues here:

  1. fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory

You need to install atl/mfc related components, for vs2017, you can install it by vs installer:
image

  1. error C3437: #pragma execution_character_set is not supported when /source-charset, /execution-charset, or /utf-8 has been specified,

This seem to be an issue that need to fix with the feature 'compiler-rt', this is sencond feature added by PR #10295 that doesn't work. Another one is openmp, related issue #12377

@PhoebeHui PhoebeHui added the category:port-bug The issue is with a library, which is something the port should already support label Jul 27, 2020
@NancyLi1013 NancyLi1013 mentioned this issue Jul 27, 2020
@PhoebeHui
Copy link
Contributor

This issue would be fixed by PR #13998.

@PhoebeHui
Copy link
Contributor

@satishbabariya, the PR has been merged, please get latest source and try again.

@satishbabariya
Copy link
Author

Thanks, @PhoebeHui I'll try again.

@knzivid
Copy link

knzivid commented Feb 8, 2022

Sorry to bump a dead thread

error C3437: #pragma execution_character_set is not supported when /source-charset, /execution-charset, or /utf-8 has been specified

What exactly was the fix for this issue in #13998? I am building llvm with v141 toolset and I am hitting this bug. With v142, llvm builds fine.

This report says the fix went into VS2019. Does that mean using v141 to build LLVM is unsupported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

4 participants