Chromium 61.0.3163.100 build failure on Window

89 views
Skip to first unread message

Anupam Shah

unread,
Jul 27, 2018, 1:35:19 PM7/27/18
to Chromium-dev
Hello I am trying to build Electron and libchromiumcontent with the 61.0.3163.100 version. 

Getting the following error when trying to build on Windows 10, building 32 bit version : 

FAILED: obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj
C:/Python27/python.exe ../../build/toolchain/win/tool_wrapper.py cl-wrapper ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/modules/media_controls/media_controls_jumbo_1.cc /Foobj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj obj/third_party/WebKit/Source/modules/media_controls "media_controls_cc.pdb"

Can any one help here ?

Thanks,
Anupam

Takuto Ikuta

unread,
Jul 27, 2018, 7:03:31 PM7/27/18
to anupa...@gmail.com, Chromium-dev
Is there no more error messages showing the reason of failure?

--
--
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 unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/7069d8bc-1c55-4cad-8a7a-0244753efcd2%40chromium.org.

Anupam Shah

unread,
Jul 30, 2018, 12:16:50 AM7/30/18
to tik...@chromium.org, chromi...@chromium.org
No this is the only error i got in the logs : 

[17117/18055] CXX obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj
FAILED: obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj
C:/Python27/python.exe ../../build/toolchain/win/tool_wrapper.py cl-wrapper ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/modules/media_controls/media_controls_jumbo_1.cc /Foobj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj obj/third_party/WebKit/Source/modules/media_controls "media_controls_cc.pdb"
gen/third_party/WebKit/Source/modules/media_controls/media_controls_jumbo_1.cc(31): fatal error C1083: Cannot open include file: '../../../../../../../../third_party/WebKit/Source/modules/media_controls/elements/MediaControlToggleClosedCaptionsButtonElement.cpp': No such file or directory
[17126/18055] CXX obj/third_party/WebKit/Source/modules/vr/vr/vr_jumbo_1.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "script\build", line 97, in <module>
    sys.exit(main())
  File "script\build", line 71, in main
    subprocess.check_call([NINJA, '-C', os.path.relpath(out_dir), target], env=env)
  File "C:\Python27\lib\subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\denimuser\\playground\\libchromiumcontent\\vendor\\depot_tools\\ninja.exe', '-C', 'src\\out-ia32\\static_library', 'chromiumcontent:chromiumcontent']' returned non-zero exit status 1

Thanks,
Anupam

Takuto Ikuta

unread,
Jul 30, 2018, 12:20:04 AM7/30/18
to Anupam Shah, Chromium-dev
On Mon, Jul 30, 2018 at 1:16 PM Anupam Shah <anupa...@gmail.com> wrote:
No this is the only error i got in the logs : 

[17117/18055] CXX obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj
FAILED: obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj
C:/Python27/python.exe ../../build/toolchain/win/tool_wrapper.py cl-wrapper ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/modules/media_controls/media_controls_jumbo_1.cc /Foobj/third_party/WebKit/Source/modules/media_controls/media_controls/media_controls_jumbo_1.obj obj/third_party/WebKit/Source/modules/media_controls "media_controls_cc.pdb"
gen/third_party/WebKit/Source/modules/media_controls/media_controls_jumbo_1.cc(31): fatal error C1083: Cannot open include file: '../../../../../../../../third_party/WebKit/Source/modules/media_controls/elements/MediaControlToggleClosedCaptionsButtonElement.cpp': No such file or directory

The number of ../ before third_party/WebKit seems more than necessary?

Anupam Shah

unread,
Jul 30, 2018, 2:51:18 PM7/30/18
to tik...@chromium.org, chromi...@chromium.org
I am trying to build libchromiumcontent following the instructions, have not changed anything in the build files.


Thanks,
Anupam

Nico Weber

unread,
Jul 30, 2018, 2:52:59 PM7/30/18
to anupa...@gmail.com, Takuto Ikuta, Chromium-dev
What are your args.gn? Does it work if you don't build in jumbo mode?

Anupam Shah

unread,
Jul 30, 2018, 2:54:29 PM7/30/18
to tha...@chromium.org, tik...@chromium.org, chromi...@chromium.org
I will check with jumbo_build=false.

Thanks,
Anupam

Anupam Shah

unread,
Aug 8, 2018, 8:10:22 AM8/8/18
to tha...@chromium.org, tik...@chromium.org, chromi...@chromium.org
When i try with non jumbo build getting this error : 

LINK : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
[19185/20426] LIB obj/chromiumcontent/webkitcore.lib
FAILED: obj/chromiumcontent/webkitcore.lib
C:/Users/denimuser/libchromiumcontent/vendor/depot_tools/python276_bin/python.exe ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x86 False lib.exe /nologo /ignore:4221 /OUT:obj/chromiumcontent/webkitcore.lib @obj/chromiumcontent/webkitcore.lib.rsp
LINK : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
obj/chromiumcontent/webkitcore.lib : fatal error LNK1248: image size (100787B7C) exceeds maximum allowable size (FFFFFFFF)
[19194/20426] CXX obj/third_party/WebKit/Source/modules/crypto/crypto/DOMWindowCrypto.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "script\build", line 97, in <module>
    sys.exit(main())
  File "script\build", line 76, in main
    subprocess.check_call([NINJA, '-C', os.path.relpath(out_dir), target], env=subenv)
  File "C:\Python27\lib\subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\denimuser\\libchromiumcontent\\vendor\\depot_tools\\ninja.exe', '-C', 'src\\out-ia32\\static_library', 'chromiumcontent:libs']' returned non-zero exit status 1

Any help is greatly appreciated. 

Thanks,
Anupam

Anupam Shah

unread,
Aug 20, 2018, 10:28:22 AM8/20/18
to tha...@chromium.org, tik...@chromium.org, chromi...@chromium.org
Does any one know what is the issue here?

Thanks in advance.

-
Anupam

Nico Weber

unread,
Aug 20, 2018, 10:32:41 AM8/20/18
to Anupam Shah, Takuto Ikuta, Chromium-dev
You haven't posted your args.gn.

The linker running out of memory likely means your build is configured incorrectly, we should always use the 64-bit linker.

Anupam Shah

unread,
Aug 20, 2018, 10:43:01 AM8/20/18
to tha...@chromium.org, tik...@chromium.org, chromi...@chromium.org
root_extra_deps = [ "//chromiumcontent:chromiumcontent" ]
is_electron_build = true
is_component_build = false
is_official_build = true
symbol_level = 0
enable_nacl = false
enable_widevine = true
proprietary_codecs = true
is_component_ffmpeg = true
ffmpeg_branding = "Chrome"
disable_ffmpeg_video_decoders = true
remove_webcore_debug_symbols = true
# CFI is disabled for the time being, as Electron is not a monolithic binary
# with at least one shared library component (Node) and CFI is tricky in that
# scenario
is_cfi = false

# Always use the system provided standard library
use_custom_libcxx = false

# Jumbo build should improve compilation times.
# https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
use_jumbo_build = false
# This is required by Node.js
# See https://github.com/nodejs/node/pull/13242
v8_promise_internal_field_count = 1

# Suppress the linking warning for arm64:
# warning: libfreetype.so.6, needed by ../../build/linux/debian_jessie_arm64-sysroot/usr/lib/aarch64-linux-gnu/libfontconfig.so, may conflict with libfreetype.so.6
if (target_cpu == "arm64") {
  fatal_linker_warnings = false
}

# On Windows, we cannot use allocator shim because even though this is
# a non-component build, we still use the dynamic CRT with which the shim
# does not work
if (target_os == "win") {
  use_allocator_shim = false
}

# Configuration for mips64el
if (target_cpu == "mips64el") {
  clang_use_chrome_plugins = false
  enable_hangout_services_extension = true
  enable_nacl_nonsfi = false
  fatal_linker_warnings = false
  fieldtrial_testing_like_official_build = true
  is_clang = false
  link_pulseaudio = true
  linux_use_bundled_binutils = false
  remove_webcore_debug_symbols = true
  treat_warnings_as_errors = false
  use_allocator = "none"
  use_cups = true
  use_gconf = false
  use_gnome_keyring = false
  use_gold = false
  use_kerberos = true
  use_pulseaudio = true
  if (target_cpu == host_cpu) {
    use_sysroot = false
  }
}

 This is libchromiumcontent args. I am using most of the default values and not specifying 32bit linker anywhere. Is there a specific argument that i should use to make sure that linker is 64 bit? Also in the Visual Studio command prompt I am running 

vcvarsall.bat amd64_x86 10.0.14393.0 as well.

Thanks,
Anupam 
Reply all
Reply to author
Forward
0 new messages