Chromium build on windows is not going through

338 views
Skip to first unread message

Ravikumar Patil

unread,
Apr 9, 2017, 9:02:56 AM4/9/17
to Chromium-dev
Chromium build on windows is not working. I am trying to build latest chromium source on windows 7 for last one week am getting following error

[887/29625] CXX obj/components/crash/content/app/run_as_crashpad_handler/fallback_crash_handler_win.obj
FAILED: obj/components/crash/content/app/run_as_crashpad_handler/fallback_crash_handler_win.obj
ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64/cl.exe" /nolo
go /showIncludes /FC @obj/components/crash/content/app/run_as_crashpad_handler/fallback_crash_handler_win.obj.rsp /
c ../../components/crash/content/app/fallback_crash_handler_win.cc /Foobj/components/crash/content/app/run_as_crash
pad_handler/fallback_crash_handler_win.obj /Fd"obj/components/crash/content/app/run_as_crashpad_handler_cc.pdb"
c:\projects\chromium\source\src\third_party\crashpad\crashpad\minidump\minidump_extensions.h(174): error C2065: 'PR
OCESSOR_ARCHITECTURE_ARM32_ON_WIN64': undeclared identifier
[896/29625] ACTION //components/resources:about_credits(//build/toolchain/win:x64)
ninja: build stopped: subcommand failed.

If I replace PROCESSOR_ARCHITECTURE_ARM32_ON_WIN64 with value 13 in the respective header, I am getting undefined identifier errors for some other parameters in some other files. How to fix these errors and get the Chromium build working on windows machine.

Sunny Sachanandani

unread,
Apr 10, 2017, 12:17:13 AM4/10/17
to ravikm...@gmail.com, Chromium-dev
Do you have the correct Windows SDK version installed? See the Windows build instructions here: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md

Can you also paste the contents of args.gn file in the output directory?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/c27dd3cf-f8d5-4b89-beab-04e604ec9e06%40chromium.org.

Bruce

unread,
Apr 10, 2017, 3:22:34 PM4/10/17
to Chromium-dev, ravikm...@gmail.com
Sunny is correct. You do not have the 10.0.14393 SDK installed. You can see from this page that PROCESSOR_ARCHITECTURE_ARM32_ON_WIN64 was newly added in 10.014393:

https://abi-laboratory.pro/compatibility/Windows_10_1511_10586.494_to_Windows_10_1607_14393.0/x86_64/headers_diff/ntdll.dll/diff.html

I have not found an effective way to detect at compile time what version of the SDK is installed which is why we don't have better error messages. We do, at least, detect if you don't have a new enough version of the compiler installed.

Ravikumar Patil

unread,
Apr 11, 2017, 5:58:08 AM4/11/17
to Chromium-dev, ravikm...@gmail.com
Thank you Sunny and Bruce...
I remember I followed the steps from the link  https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md to install required SDK some time back last year and I was able to build old chromium source (in December 2016).

Now with latest source I am getting these errors. And I am not using any args parameters.

Do I need to try installing these SDKs again?

Thanks
-Ravi

Bruce Dawson

unread,
Apr 11, 2017, 1:20:54 PM4/11/17
to ravikm...@gmail.com, Chromium-dev
Do I need to try installing these SDKs again?

Yes.

Chromium switched to requiring the 14393 SDK late last year. Maybe you built before we required 14393. Some things to check include do you have this directory:

    "c:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0"

If not then install the 14393 SDK. Tracking down the 14393.0 SDK could be tricky right now because Microsoft just released the 15063 SDK, and there are some build errors with that which I am investigating.

You can also try running these two commands from a fresh command prompt, for diagnostic purposes:

    > "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64 10.0.14393.0
    > set include

The first one sets up the VC/SDK environment variables and the second one prints the include variable. The first command will fail if the needed SDK is not installed. If it fails then run it again without the 10.0.14393.0 parameter. The second one lets you determine which SDK version you are getting. Look at these results and then do further investigations on your end.

When build\toolchain\win\setup_toolchain.py script runs vcvarsall.bat it specifies amd64 but does not specify the SDK version. This appears to mean that you will get the latest SDK version (I get 15063 because I just installed that yesterday).


You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/HP-bZop0jYk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f88dab94-c723-41ed-b1d8-45d5cb211e01%40chromium.org.

Ravikumar Patil

unread,
Apr 12, 2017, 7:27:00 AM4/12/17
to Chromium-dev, ravikm...@gmail.com
Thank you Bruce.

-Ravi
To unsubscribe from this group and all its topics, send an email to chromium-dev...@chromium.org.

Ravikumar Patil

unread,
Apr 12, 2017, 11:10:22 AM4/12/17
to Chromium-dev, ravikm...@gmail.com
Hi Bruce,

I reinstalled the visual studio 15 and sdk 14393. And I selected as mentioned in Setting up Windows
  • Visual C++, which will select three sub-categories including MFC
  • Universal Windows Apps Development Tools > Tools (1.4.1) and Windows 10 SDK (10.0.14393)

Following are the outputs on my machine.

C:\Project\Chromium\Source\src>"%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64 10.0.14393.0
!ERROR! Windows SDK 10.0.14393.0 : 'C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um'
The system cannot find the path specified.

C:\Project\Chromium\Source\src>set include
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK
\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared;C:\Program Files (x86)\Windows Kits\10\i
nclude\10.0.14393.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt;

C:\Project\Chromium\Source\src> "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
!ERROR! Windows SDK 10.0.14393.0 : 'C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um'
The system cannot find the path specified.

I dont see folder "C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0". Could you please guide me to link to use for installing visual studio 15 with sdk 14393?

Thanks
-Ravi

Bruce Dawson

unread,
Apr 12, 2017, 2:29:41 PM4/12/17
to Ravikumar Patil, Chromium-dev
What do you see in this directory?

    "C:\Program Files (x86)\Windows Kits\10\include"

My best guess is that you installed the latest SDK, which is 15063. Due to a bug in Bits.h Chrome can't build with that SDK unless you patch it. That is why we recommend the 14393 SDK. So, you should probably install the 14393 SDK. The Windows 10 SDK install page here: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk


That in turn has a link to a download of the 10.0.14393.795 SDK. That should work.

It is unfortunate that Microsoft has complicated this process by releasing a new (default) SDK that is broken. You can track that issue here:


I haven't seen an ETA on when they will fix it.

To unsubscribe from this group and all its topics, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/d07811f2-75fc-4eb7-8a56-4653f4fdf76d%40chromium.org.

Ravikumar Patil

unread,
Apr 17, 2017, 2:34:32 AM4/17/17
to Chromium-dev, ravikm...@gmail.com
Hi Bruce,

After installing SDK from the link you mentioned below, I am able to build chromium source on windows 7.
I had visual studio 2015 (not the latest one), but sdk 14393.715 was missing. After installing SDK I am able to build chromium source.

Thanks
-Ravi

Bruce Dawson

unread,
Apr 17, 2017, 1:19:31 PM4/17/17
to Ravikumar Patil, Chromium-dev
Thanks for the update.

To unsubscribe from this group and all its topics, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/1f1dff4e-827a-4951-9a94-ed3881fb0afa%40chromium.org.

Reply all
Reply to author
Forward
0 new messages