Building branch 2171?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Building branch 2171?

Postby jerryevans » Mon Oct 27, 2014 9:44 am

On Windows 7x64 32 bit debug build. Ninja warns:

multiple rules generate gen\about_credits.html. builds involving this target will not be correct; continuing anyway


Which is true, as the build later fails. There is a bug logged here: https://code.google.com/p/chromiumembedded/issues/detail?id=1399

Question: How can this fix be used in a build?
jerryevans
Techie
 
Posts: 30
Joined: Tue Sep 08, 2009 5:30 am

Re: Building branch 2171?

Postby magreenblatt » Mon Oct 27, 2014 10:01 am

jerryevans wrote:multiple rules generate gen\about_credits.html. builds involving this target will not be correct; continuing anyway

This message can be safely ignored.

jerryevans wrote:There is a bug logged here: https://code.google.com/p/chromiumembedded/issues/detail?id=1399

Question: How can this fix be used in a build?

This fix is already included in 2171 branch. How are you building 2171 branch? What error message are you getting?
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: Building branch 2171?

Postby jerryevans » Mon Oct 27, 2014 11:49 am

Hello Marshall,

Here's the complete cmd shell trace.

Code: Select all
-------- Running "ninja -C out\Release cefclient" in "u:\chromium\cef\trunk\chromium\src"...
ninja: warning: multiple rules generate gen\about_credits.html. builds involving this target will not be correct; continuing anyway
ninja: Entering directory `out\Release'
[1966/12407] RULE Generating Mojo bind...terfaces\application/application.mojom
FAILED: u:\chromium\cef\trunk\depot_tools\python276_bin\python.exe gyp-win-tool
action-wrapper environment.x86 mojo_application_bindings_target_mojo_application
_bindings_mojom_bindings_generator_73adb15d774a51e5a00dbc06265928af.ae90548a6f7500365687016e9b8cf15c.rsp ..\..\mojo
Traceback (most recent call last):
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 196, in
 <module>
    sys.exit(main())
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 190, in
 main
    ProcessFile(args, remaining_args, generator_modules, filename)
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 137, in
 ProcessFile
    _imported_filename_stack=_imported_filename_stack + [filename])
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 154, in
 ProcessFile
    generator.GenerateFiles(filtered_args)
  File "u:\chromium\cef\trunk\chromium\src\mojo\public\tools\bindings\generators
\mojom_cpp_generator.py", line 333, in GenerateFiles
    self.Write(self.GenerateModuleHeader(), "%s.h" % self.module.name)
  File "u:\chromium\cef\trunk\chromium\src\mojo\public\tools\bindings\pylib\mojo
m\generate\generator.py", line 73, in Write
    with open(os.path.join(self.output_dir, filename), "w+") as f:
IOError: [Errno 22] invalid mode ('w+') or filename: '..\\out\\Release/gen/mojo/
public\\interfaces\\application\\service_provider.mojom.h'
[1966/12407] RULE Generating Mojo bind...lic\interfaces\application/shell.mojom
FAILED: u:\chromium\cef\trunk\depot_tools\python276_bin\python.exe gyp-win-tool
action-wrapper environment.x86 mojo_application_bindings_target_mojo_application
_bindings_mojom_bindings_generator_73adb15d774a51e5a00dbc06265928af.b5ea7991883f
d342f00ccfd9421fb660.rsp ..\..\mojo
Traceback (most recent call last):
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 196, in
 <module>
    sys.exit(main())
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 190, in
 main
    ProcessFile(args, remaining_args, generator_modules, filename)
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 137, in
 ProcessFile
    _imported_filename_stack=_imported_filename_stack + [filename])
  File "../mojo/public/tools/bindings/mojom_bindings_generator.py", line 154, in
 ProcessFile
    generator.GenerateFiles(filtered_args)
  File "u:\chromium\cef\trunk\chromium\src\mojo\public\tools\bindings\generators
\mojom_cpp_generator.py", line 333, in GenerateFiles
    self.Write(self.GenerateModuleHeader(), "%s.h" % self.module.name)
  File "u:\chromium\cef\trunk\chromium\src\mojo\public\tools\bindings\pylib\mojo
m\generate\generator.py", line 73, in Write
    with open(os.path.join(self.output_dir, filename), "w+") as f:
IOError: [Errno 22] invalid mode ('w+') or filename: '..\\out\\Release/gen/mojo/
public\\interfaces\\application\\service_provider.mojom.h'
[1966/12407] CXX obj\ui\metro_viewer\m...ges.metro_viewer_message_generator.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "automate-git.py", line 905, in <module>
    if options.buildlogfile else None)
  File "automate-git.py", line 74, in run
    shell=(sys.platform == 'win32'))
  File "r:\apps\python27\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Release', 'cefclie
nt']' returned non-zero exit status 1
jerryevans
Techie
 
Posts: 30
Joined: Tue Sep 08, 2009 5:30 am

Re: Building branch 2171?

Postby magreenblatt » Mon Oct 27, 2014 12:03 pm

jerryevans wrote:IOError: [Errno 22] invalid mode ('w+') or filename: '..\\out\\Release/gen/mojo/
public\\interfaces\\application\\service_provider.mojom.h'

I haven't seen this error myself but it sounds like viewtopic.php?f=6&t=12085&start=10#p22671. You might want to try a clean build.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: Building branch 2171?

Postby jerryevans » Wed Oct 29, 2014 7:49 am

Hmm, thanks Marshall.

It gets odder and odder. Any thoughts appreciated. I am trying to avoid pulling the Chromium repo from scratch as the whole process is taking ~11 hours here.

[codeU:\chromium\cef>python automate-git.py --download-dir=u:\chromium\cef\trunk --branch=2171 --force-clean][/code]

now ends up in a puddle with this error:

Code: Select all
----------------------------------------
[0:00:46] Started.
[0:00:55] From https://chromium.googlesource.com/external/v8
[0:00:55]    e008158..c18d84d  bleeding_edge -> origin/bleeding_edge
[0:00:55]    e008158..c18d84d  refs/branch-heads/bleeding_edge -> branch-heads/bleeding_edge
----------------------------------------
Error: 92> We could not find a valid hash for safesync_url response "33b41aa0ef90a690462df524ecf7d50f83938e3c".
92> Safesync URLs with a git checkout currently require a git-svn
92> remote or a safesync_url that provides git sha1s. Please add a
92> git-svn remote or change your safesync_url. For more info, see:
92> http://code.google.com/p/chromium/wiki/UsingNewGit#Initial_checkout
Traceback (most recent call last):
  File "automate-git.py", line 820, in <module>
    run("gclient revert --nohooks", chromium_dir, depot_tools_dir)
  File "automate-git.py", line 74, in run
    shell=(sys.platform == 'win32'))
  File "r:\apps\python27\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'revert', '--nohooks']' retu
rned non-zero exit status 1


Both 1916 and 2062 built without errors right from the get-go.
jerryevans
Techie
 
Posts: 30
Joined: Tue Sep 08, 2009 5:30 am

Re: Building branch 2171?

Postby magreenblatt » Wed Oct 29, 2014 10:38 am

Try deleting the local directory that it's complaining about and re-running automate-git.py. You can also use the --force-clean-deps flag but that might take a really long time for you (it deletes and re-downloads all dependency folders).
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: Building branch 2171?

Postby jerryevans » Wed Oct 29, 2014 7:16 pm

FWIW just ran exactly the same
Code: Select all
 python automate-git.py --download-dir=./trunk --branch=2171
on my Mac development machine. Worked right first time.
jerryevans
Techie
 
Posts: 30
Joined: Tue Sep 08, 2009 5:30 am

Re: Building branch 2171?

Postby jerryevans » Mon Nov 10, 2014 6:24 am

Hi Marshall

I must be missing something here. I'm still trying to build 2171 on WS2008R2 (server that has a very fast Internet connection), but it continues to fail.

Environment path contains the correct location for depot_tools and these GYP settings are used:

SET GYP_GENERATORS=ninja,msvs-ninja
SET GYP_MSVS_VERSION=2013

The actual failure occurs when 'd:\\chromium\\cef\\trunk\\chromium\\src\\cef\\cef_create_projects.bat' gets run.

This batch file simply runs tool\gclient_hook.py but does so via python.bat? Is there any special reason for this?

Is there any way to check that the environment is sane?

I'm trying to get some more data, any pointers much appreciated.

Console trace is this:
________ running 'd:\chromium\cef\trunk\depot_tools\python276_bin\python.exe ../
build/gyp_chromium cef.gyp -I cef.gypi' in 'd:\chromium\cef\trunk\chromium\src\cef'
Enabled Psyco JIT.
Updating projects from gyp files...
Traceback (most recent call last):
File "../build/gyp_chromium", line 306, in <module>
gyp_rc = gyp.main(args)
File "d:\chromium\cef\trunk\chromium\src\tools\gyp\pylib\gyp\__init__.py", line 537, in main
return gyp_main(args)
File "d:\chromium\cef\trunk\chromium\src\tools\gyp\pylib\gyp\__init__.py", line 522, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "d:\chromium\cef\trunk\chromium\src\tools\gyp\pylib\gyp\generator\ninja.py", line 2287, in GenerateOutput
pool.map(CallGenerateOutputForConfig, arglists)
File "d:\chromium\cef\trunk\depot_tools\python276_bin\lib\multiprocessing\pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "d:\chromium\cef\trunk\depot_tools\python276_bin\lib\multiprocessing\pool.py", line 554, in get
raise self._value
TypeError: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "tools\gclient_hook.py", line 39, in <module>
RunAction(cef_dir, gyper)
File "d:\chromium\cef\trunk\chromium\src\cef\tools\gclient_util.py", line 39,
in RunAction
command, cwd=dir, always=True)
File "d:\chromium\cef\trunk\depot_tools\gclient_utils.py", line 286, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "d:\chromium\cef\trunk\depot_tools\gclient_utils.py", line 531, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command d:\chromium\cef\trunk\depot_tools\python276_bin\python.exe ../build/gyp_chromium cef.gyp -I cef.gypi returned non-zero exit status 1 in :\chromium\cef\trunk\chromium\src\cef
Traceback (most recent call last):
File "automate-git.py", line 875, in <module>
run(path, cef_src_dir, depot_tools_dir)
File "automate-git.py", line 74, in run
shell=(sys.platform == 'win32'))
File "D:\chromium\cef\trunk\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['d:\\chromium\\cef\\trunk\\chromium\\src\\cef\\cef_create_projects.bat']' returned non-zero exit status 1
jerryevans
Techie
 
Posts: 30
Joined: Tue Sep 08, 2009 5:30 am

Re: Building branch 2171?

Postby PolesApart » Fri Dec 19, 2014 3:09 pm

Did you managed to compile this branch? I´m seeing the same error.
PolesApart
Mentor
 
Posts: 73
Joined: Fri Dec 05, 2014 1:24 pm

Re: Building branch 2171?

Postby magreenblatt » Fri Dec 19, 2014 6:57 pm

This error occurs when you don't have Visual Studio installed on the local machine.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 25 guests