Not able to compile chromium on VS2010, it keeps on hanging

451 views
Skip to first unread message

anand

unread,
Nov 4, 2012, 8:07:08 AM11/4/12
to chromi...@chromium.org
I am trying to compile chromium on VS2010 , but it keeps on hanging in between. I cannt see any progress in Output console.I have tried this many times but with same result.When I open task explorer I can lot of process related to chromium running.After cancelling build Visual studio shows me busy noification, hence I need to forcefull kill it.Here are list of processes. Can someone suggest how to debug this issue.Is there a workaround to build chromium . I tried using msbuild.exe and ninja , there also I got some errors.

 devenv.exe 6596 0.70 682,992 K 747,408 K
  MSBuild.exe 7224 < 0.01 35,656 K 29,084 K
   cmd.exe 8764 3,128 K 4,872 K
    python.exe 9004 5,676 K 9,152 K
     i686-nacl-addr2line.exe 6028 1,592 K 4,392 K
      x86_64-nacl-gcc-4.4.3.exe 8716 6,788 K 7,888 K
       x86_64-nacl-gcc-4.4.3.exe 3296 6,552 K 4,760 K
        i686-nacl-addr2line.exe 8992 2,024 K 4,428 K
         x86_64-nacl-as.exe 7752 Suspended 836 K 160 K
  MSBuild.exe 7668 < 0.01 50,040 K 44,248 K
   cmd.exe 7948 3,168 K 4,904 K
    python.exe 7380 5,676 K 9,148 K
     i686-nacl-addr2line.exe 1856 1,596 K 4,404 K
      x86_64-nacl-gcc-4.4.3.exe 9172 6,784 K 7,880 K
       x86_64-nacl-gcc-4.4.3.exe 7804 6,552 K 4,764 K
        i686-nacl-addr2line.exe 8800 2,024 K 4,412 K
         x86_64-nacl-as.exe 6472 Suspended 836 K 160 K
  MSBuild.exe 6072 < 0.01 39,808 K 35,616 K
   cmd.exe 7936 3,164 K 4,924 K
    python.exe 8652 5,676 K 9,168 K
     i686-nacl-addr2line.exe 8560 1,596 K 4,412 K
      x86_64-nacl-gcc-4.4.3.exe 8544 6,792 K 7,884 K
       x86_64-nacl-gcc-4.4.3.exe 8688 6,552 K 4,764 K
        i686-nacl-addr2line.exe 8256 2,024 K 4,412 K
         x86_64-nacl-as.exe 6344 Suspended 836 K 160 K






Nick Bray

unread,
Nov 4, 2012, 7:44:53 PM11/4/12
to anand...@gmail.com, chromi...@chromium.org, nacl-eng
Can you use Process Explorer to figure out the command lines being passed to the NaCl compilers?  This might help diagnose if particular files are causing the problem.

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

anand

unread,
Nov 4, 2012, 9:30:28 PM11/4/12
to chromi...@chromium.org, anand...@gmail.com, nacl-eng
I am not able to see any command line for process x86_64-nacl-gcc-4.4.3.exe. If this the same process you have mentioned for command line arguments.Please see attached screenshot of process explorer.Is there any other way to debug this issue?
nacl.png

anand

unread,
Nov 4, 2012, 9:49:22 PM11/4/12
to chromi...@chromium.org, anand...@gmail.com, nacl-eng
Here is VS output log. If I cancel build now VS will hang

1>------ Build started: Project: crt_fini_32, Configuration: Debug Win32 ------
2>------ Build started: Project: crt_init_64, Configuration: Debug Win32 ------
3>------ Build started: Project: crt_fini_64, Configuration: Debug Win32 ------
4>------ Build started: Project: crt_init_32, Configuration: Debug Win32 ------
2>Build started 11/5/2012 7:47:15 AM.
1>Build started 11/5/2012 7:47:15 AM.
3>Build started 11/5/2012 7:47:16 AM.
4>Build started 11/5/2012 7:47:16 AM.
2>InitializeBuildStatus:
2>  Touching "..\build\Debug\obj\crt_init_64\crt_init_64.unsuccessfulbuild".
3>InitializeBuildStatus:
3>  Touching "..\build\Debug\obj\crt_fini_64\crt_fini_64.unsuccessfulbuild".
4>InitializeBuildStatus:
4>  Creating "..\build\Debug\obj\crt_init_32\crt_init_32.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>InitializeBuildStatus:
1>  Touching "..\build\Debug\obj\crt_fini_32\crt_fini_32.unsuccessfulbuild".
3>CustomBuild:
3>  build newlib x86-64 nlib
1>CustomBuild:
1>  build newlib x86-32 nlib
2>CustomBuild:
2>  build newlib x86-64 nlib
4>CustomBuild:
4>  build newlib x86-32 nlib


Nico Weber

unread,
Nov 5, 2012, 12:18:24 AM11/5/12
to anand...@gmail.com, chromi...@chromium.org, nacl-eng
To check if this is caused by nacl, you can `set
GYP_DEFINES=component=shared_library disable_nacl=1` and then rerun
`gclient runhooks`. This will create project files with nacl disabled.
Does your build complete with that setting?

Nico

anand

unread,
Nov 5, 2012, 1:52:49 AM11/5/12
to chromi...@chromium.org, anand...@gmail.com, nacl-eng
I just tried this option , it did not hang but I am getting compilation error . do I need to clean solution and perform gclient sync --force and gclient runhooks --force  also.

129>c:\data\chromium\source\chromium\src\third_party\webkit\source\webcore\dom\EventNames.h(25): fatal error C1083: Cannot open include file: 'EventInterfaces.h': No such file or directory
129>  SVGMissingGlyphElement.cpp
129>c:\data\chromium\source\chromium\src\third_party\webkit\source\webcore\dom\EventNames.h(25): fatal error C1083: Cannot open include file: 'EventInterfaces.h': No such file or directory
129>  SVGCircleElement.cpp
123>c:\data\chromium\source\chromium\src\third_party\webkit\source\webcore\css\CSSProperty.h(24): fatal error C1083: Cannot open include file: 'CSSPropertyNames.h': No such file or directory
123>  WebKitCSSRegionRule.cpp
123>  WebKitCSSSVGDocumentValue.cpp
129>c:\data\chromium\source\chromium\src\third_party\webkit\source\webcore\svg\SVGStyledElement.h(25): fatal error C1083: Cannot open include file: 'CSSPropertyNames.h': No such file or directory
129>  SVGExternalResourcesRequired.cpp
129>c:\data\chromium\source\chromium\src\third_party\webkit\source\webcore\dom\EventNames.h(25): fatal error C1083: Cannot open include file: 'EventInterfaces.h': No such file or directory
129>  SVGDescElement.cpp
123>c:\data\chromium\source\chromium\src\third_party\webkit\source\webcore\css\CSSProperty.h(24): fatal error C1083: Cannot open include file: 'CSSPropertyNames.h': No such file or directory

anand

unread,
Nov 6, 2012, 11:57:37 AM11/6/12
to chromi...@chromium.org, anand...@gmail.com, nacl-eng
I am doing following steps , but still getting EventInterfaces.h file not found error


1) download source tarball
2) unzipped source
3) ran command> set GYP_MSVS_VERSION=2010
4) ran command> gclient sync
5) ran command> gclient runhooks
6) open chrome.sln in VS2010
7) selected chrome as startup project
8) build chrome project

Please let me know if I am missing something here.

anand

unread,
Nov 7, 2012, 1:03:07 PM11/7/12
to chromi...@chromium.org, anand...@gmail.com, nacl-eng
Now trying just Webcore project but getting following error,installed activeperl also but still getting erro

ExceptionCodeDescription
2>  Running external rules for webcore_bindings_sources
2>  mkdir -p `cygpath -u "C:/Data/Chromium/Source/chromium/src/build/Debug/obj\global_intermediate\webkit\bindings"`
2>  mkdir -p `cygpath -u "C:/Data/Chromium/Source/chromium/src/build/Debug/obj\global_intermediate\webcore\bindings"`
2>  HTMLNames, and also WebKitFontFamilyNames, and also SVGNames, and also MathMLNames, and also XLinkNames, and also XMLNSNames, and also XMLNames
2>        2 [main] perl 11008 child_copy: linked dll data write copy failed, 0xC1A000..0xC39C48, done 0, windows pid 11008, Win32 error 487
2>  Failed to read names from file: C:/Data/Chromium/Source/chromium/src/third_party/WebKit/Source/WebCore/html/HTMLTagNames.in at C:\Data\Chromium\Source\chromium\src\third_party\WebKit\Source\WebCore\dom\make_names.pl line 291.
2>  Traceback (most recent call last):
2>    File "scripts/action_makenames.py", line 185, in <module>
2>    File "scripts/action_makenames.py", line 167, in main
2>  AssertionError
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
2>
2>Build FAILED.

Scott Graham

unread,
Nov 7, 2012, 2:23:52 PM11/7/12
to anand...@gmail.com, chromi...@chromium.org, nacl-eng
I think that's an error from cygwin perl. Unfortunately, cygwin
frequently causes problems here. WebKit and NaCl are the heaviest
users of cygwin so that's where the errors often occur. I logged a bug
a while back and started trying to remove it from our build, but the
work hasn't been done yet.
http://code.google.com/p/chromium/issues/detail?id=123026

The only (ridiculous) workaround that I'm aware of is to retry that
project until it happens to work. You might look for previous
threads/information on rebasing cygwin, I think some people might have
had success with that. It may also be exacerbated by AV/anti-malware
software which causes extra dll movement.

Installing ActivePerl doesn't help because the build can't/doesn't use
the system perl. Some perl rules have already been changed to run on a
native win32 perl, but the webkit build setup is pretty unix-y so in
general it looked non-trivial to fix.

anand

unread,
Nov 10, 2012, 11:32:16 AM11/10/12
to chromi...@chromium.org, anand...@gmail.com, nacl-eng
I am still struggling to fix this issue.I tired searching forum but none of solutions worked. Can you please tell how to rebase cygwin? 

Shree Borge

unread,
Dec 9, 2012, 11:28:47 AM12/9/12
to chromi...@chromium.org, anand...@gmail.com
Hi Anand,

Have you been able to successfully build chrome?
I am facing the same errors. What was the work around.

Thanks,

~ s
Reply all
Reply to author
Forward
0 new messages