I compiled chromium successfully and was using it. After that, I made some additions in the third_party\webrtc_override\rtc_base\logging.cc. It compiled successfully. Chromium was launched successfully and browsing was also fine. Everything was fine and suddenly it crashed. When I ran "out\Default\chrome.exe" to launch it I got the following error.
PS C:\chromium\src> out\Default\chrome.exe
out\Default\chrome.exe : The module 'out' could not be loaded. For more information, run 'Import-Module out'.
At line:1 char:1
+ out\Default\chrome.exe
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (out\Default\chrome.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoLoadModule
The chome.exe file in out\Default is simply gone.
The next step I took was to compile using "autoninja -C out\Default chrome". It also failed with following error.
PS C:\chromium\src> autoninja -C out\Default chrome
"C:\depot_tools\ninja.exe" -C out\Default chrome -j 10
ninja: Entering directory `out\Default'
[2/4] ACTION //chrome:reorder_imports(//build/toolchain/win:win_clang_x64)
FAILED: chrome.exe chrome.exe.pdb
C:/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe ../../build/win/reorder-imports.py -i initialexe -o . -a x64
Traceback (most recent call last):
File "../../build/win/reorder-imports.py", line 96, in <module>
sys.exit(main(sys.argv[1:]))
File "../../build/win/reorder-imports.py", line 93, in main
return reorder_imports(opts.input, opts.output, opts.arch)
File "../../build/win/reorder-imports.py", line 38, in reorder_imports
pe = pefile.PE(input_image, fast_load=True)
File "../../build/win\..\..\third_party\pefile\pefile.py", line 1754, in __init__
self.__parse__(name, data, fast_load)
File "../../build/win\..\..\third_party\pefile\pefile.py", line 1810, in __parse__
fd.close()
UnboundLocalError: local variable 'fd' referenced before assignment
ninja: build stopped: subcommand failed.