Chromium 25.0.1321.0 debug version build failure, windows version.

227 views
Skip to first unread message

Samuel

unread,
Nov 11, 2012, 1:42:31 AM11/11/12
to chromi...@chromium.org
I am building new version 25.0.1321.0, release binary building is smooth.
While I hit debug version link error as following. It should not cause by insufficient disk or insufficient  memory, since my 64 bit windows system contains 8G memory and 100G free disk.
I switched 3 machines(both windows 7 and 8 system tried), all hit same issue. Any idea?

Error msg:

4>Link:
4>     Creating library ..\build\Debug\lib\chrome_dll.lib and object ..\build\Debug\lib\chrome_dll.exp
4>LINK : fatal error LNK1201: error writing to program database 'c:\25.0.1321.0\src\build\Debug\chrome_dll.pdb'; check for insufficient disk space, invalid path, or insufficient privilege



Marc-Antoine Ruel

unread,
Nov 11, 2012, 4:01:33 PM11/11/12
to samu...@gmail.com, chromi...@chromium.org
It's a issue in Visual Studio using too much virtual memory. The options in decreasing order of excitement are:
1. Stop using Visual Studio to build but sadly clang isn't there yet.
2. Have Microsoft create 64 bits toolset (they marked it as WontFix)
3, Have Microsoft specifically fix this problem in their 32 bits toolset (Usually only happens in version+1) 
4. Split the static libraries into dlls so the linker can cope with it.

Currently, only #4 works:
set GYP_DEFINES=%GYP_DEFINES% component=shared_library
python build/gyp_chromium
and rebuild.

Also, you should use ninja, it's much faster.

M-A

2012/11/11 Samuel <samu...@gmail.com>




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

Samuel Xu

unread,
Nov 11, 2012, 4:49:52 PM11/11/12
to Marc-Antoine Ruel, chromi...@chromium.org
Thanks for heads-up
under cygwin, shall I execute following lines?
export GYP_DEFINES=%GYP_DEFINES% component=shared_library
python build/gyp_chromium

Can "python build/gyp_chromium" be replaced by "gclient runhooks"

BTW, If I want to modify a gypi file directly to pass the "component=shared_library", which gypi file shall i modify, and which section?

Samuel

Marc-Antoine Ruel

unread,
Nov 11, 2012, 4:59:17 PM11/11/12
to Samuel Xu, chromi...@chromium.org
This mailing list is not an help channel about how to use a command line shell.

In that specific case, you want to use:
export GYP_DEFINES="$GYP_DEFINES component=shared_library"

Please read about environment variables.

You can use gclient runhooks, it will eventually call build/gyp_chromium. It's just faster to call it directly.

If you want to figure out which .gypi file to modify, use a file searching tool. It is trivial to find.

M-A

2012/11/11 Samuel Xu <samu...@gmail.com>

Samuel Xu

unread,
Nov 11, 2012, 6:31:47 PM11/11/12
to Marc-Antoine Ruel, chromi...@chromium.org
Thank you M-A! I refereed http://www.chromium.org/developers/how-tos/component-build  to add a line of a new file " chromium.gyp_env", then run gclient runhooks again. debug build works now
Reply all
Reply to author
Forward
0 new messages