This looks a different issue.  The Blink-V8 binding generator produced an
error.  The error message should have been printed on stderr, although it's
not easy to read because we're running the generator in parallel.

The script
//third_party/blink/renderer/bindings/scripts/generate_bindings.py supports
--single_process option to run everything in a single process so that
debugging will be easier (of course, much slower, too).

By the way, you can make it a little faster by setting a GN flag
"blink_enable_generated_code_formatting" to false.

If you modified any *.idl file (compared to ToT), it's possible that the
script produced an error due to the wrong *.idl file.

Cheers,
Yuki Shiino


2021年9月8日(水) 22:01 Jose Antonio Olivera Ortega <[email protected]>:

> Hi there!
>
> I am facing this issue too. This time when building Chromium for Windows
> as part of the Electron build process.
>
> C:/depot_tools/bootstrap-2@3_8_10_chromium_20_bin/python/bin/python.exe
> ../../third_party/blink/renderer/bindings/scripts/generate_bindings.py
> --web_idl_database
> gen/third_party/blink/renderer/bindings/web_idl_database.pickle
> --root_src_dir ../../ --root_gen_dir gen --output_core_reldir
> third_party/blink/renderer/bindings/core/v8/ --output_modules_reldir
> third_party/blink/renderer/bindings/modules/v8/ enumeration
> callback_function callback_interface interface namespace typedef union
>
> LLVM ERROR: IO failure on output stream: invalid argument
>
> PLEASE submit a bug report to https://bugs.llvm.org/ and include the
> crash backtrace.
>
> 0x00666918 (0x00000016 0x00660A4C 0x00793070 0x00000000)
>
> 0x0076ABEF (0x82CD9EE4 0x83956858 0x0158F758 0x00000000)
>
> 0x0076D463 (0x0158F6D0 0x0158F6D4 0x0158F6D8 0x00000002)
>
> 0x0076D736 (0x00835B68 0x82CD9F4C 0x01845298 0x00000000)
>
> 0x007682BF (0x82CD9F1C 0x01845298 0x00000000 0x00B93000)
>
> 0x00768209 (0x0158F764 0x0158F758 0x0158F768 0x0158F77C)
>
> 0x00768392 (0x00000000 0x00000000 0x00000000 0x0158F7C4)
>
> 0x007684B2 (0x00000000 0x82CD9F9C 0x00760F6E 0x00760F6E)
>
> 0x00760F65 (0x00B93000 0x7663FA10 0x0158F830 0x77A47A7E)
>
> 0x7663FA29 (0x00B93000 0x7BBFBE12 0x00000000 0x00000000),
> BaseThreadInitThunk() + 0x19 bytes(s)
>
> 0x77A47A7E (0xFFFFFFFF 0x77A68A35 0x00000000 0x00000000),
> RtlGetAppContainerNamedObjectPath() + 0x11E bytes(s)
>
> 0x77A47A4E (0x00760F6E 0x00B93000 0x00000000 0x00000000),
> RtlGetAppContainerNamedObjectPath() + 0xEE bytes(s)
>
> Traceback (most recent call last):
>
> File
> "../../third_party/blink/renderer/bindings/scripts/generate_bindings.py",
> line 111, in <module>
>
> main()
>
> File
> "../../third_party/blink/renderer/bindings/scripts/generate_bindings.py",
> line 106, in main
>
> task_queue.run(report_progress)
>
> File
> "C:\ga\VCP_Electron\VCP_Electron\VCP_Electron_Windows_v13.2.0\src\third_party\blink\renderer\bindings\scripts\bind_gen\task_queue.py",
> line 67, in run
>
> self._run_in_parallel(report_progress)
>
> File
> "C:\ga\VCP_Electron\VCP_Electron\VCP_Electron_Windows_v13.2.0\src\third_party\blink\renderer\bindings\scripts\bind_gen\task_queue.py",
> line 99, in _run_in_parallel
>
> worker_task.get() # Let |get()| raise an exception.
>
> File 
> "C:\depot_tools\bootstrap-2@3_8_10_chromium_20_bin\python\bin\lib\multiprocessing\pool.py",
> line 572, in get
>
> raise self._value
>
> Any pointer to any fix to solve this issue would be appreciate. Thanks.
>
> Cheers,
> JAOO.
>
> On Monday, 14 September 2020 at 10:09:29 UTC+2 Yuki Shiino wrote:
>
>> cc: platform-architecture-dev@
>> bcc: blink-dev@
>>
>> Do you have //buildtools/linux64/clang-format on your build environment?
>> I guess that you're missing the clang-format command there.
>>
>> As of 85.0.4183.93, I think you can see a more detailed error message by
>> replacing
>>
>> https://chromium.googlesource.com/chromium/src/+/62cbbd3115bfce4e3ab541891d5fde756fed8faf/third_party/blink/renderer/bindings/scripts/bind_gen/enumeration.py
>> line 368:     for enumeration in web_idl_database.enumerations:
>> line 369:         task_queue.post_task(generate_enumeration, enumeration)
>> with
>> line 368:     for enumeration in web_idl_database.enumerations:
>> line 369:         generate_enumeration(enumeration)
>>
>> Cheers,
>> Yuki Shiino
>>
>>
>>
>> 2020年9月14日(月) 14:02 uzair jaleel <[email protected]>:
>>
>>> Hi All,
>>>
>>> We are trying to compile chrome 85.0.4183.93 for *platform similar to
>>> linux* and are getting below errors during  blink-v8 bindings
>>> generation step during compilation.
>>>
>>> python
>>> ../third_party/blink/renderer/bindings/scripts/generate_bindings.py
>>> enumeration --web_idl_database
>>> gen/third_party/blink/renderer/bindings/web_idl_database.pickle
>>> --root_src_dir ../ --root_gen_dir gen --output_core_reldir
>>> third_party/blink/renderer/bindings/core/v8/ --output_modules_reldir
>>> third_party/blink/renderer/bindings/modules/v8/
>>> [   61s] Traceback (most recent call last):
>>> [   61s]   File
>>> "../third_party/blink/renderer/bindings/scripts/generate_bindings.py", line
>>> 100, in <module>
>>> [   61s]     main()
>>> [   61s]   File
>>> "../third_party/blink/renderer/bindings/scripts/generate_bindings.py", line
>>> 96, in main
>>> [   61s]     task_queue.run(report_progress)
>>> [   61s]   File
>>> "/home/abuild/rpmbuild/BUILD/chromium-efl-85.0.4183.93.1/third_party/blink/renderer/bindings/scripts/bind_gen/task_queue.py",
>>> line 69, in run
>>> [   61s]     worker_task.get()  # Let |get()| raise an exception.
>>> [   61s]   File "/usr/lib/python2.7/multiprocessing/pool.py", line 572,
>>> in get
>>> [   61s]     raise self._value
>>> *[   61s] OSError: [Errno 2] No such file or directory*
>>>
>>>
>>> 1. We have verified all the files passed to script as arguments exist.
>>> 2. We are not able to get clue as to which file its searching for and
>>> reporting " OSError: [Errno 2] No such file or directory" Error
>>>
>>> Any input regarding above error will be of great help .
>>>
>>> Thanks in advance
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "blink-dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/1d2e29cb-86dd-470f-b23c-6d63bb1254a7n%40chromium.org
>>> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/1d2e29cb-86dd-470f-b23c-6d63bb1254a7n%40chromium.org?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN0uC_RFRBv6VeQv-8C1SynhnSgWjBUXFcy0jVKzo%3DJn79WjeQ%40mail.gmail.com.

Reply via email to