Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 763657 - emerge chromium-87.0.4280.88 fails to compile
Summary: emerge chromium-87.0.4280.88 fails to compile
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-05 08:41 UTC by gt
Modified: 2021-01-05 13:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=www-client/chromium-87.0.4280.88::gentoo' (file_763657.txt,6.17 KB, text/plain)
2021-01-05 08:41 UTC, gt
Details
build.log partA (build.log.aa.gz,735.98 KB, application/gzip)
2021-01-05 12:34 UTC, gt
Details
build.log partB (build.log.ab.gz,911.33 KB, application/gzip)
2021-01-05 12:34 UTC, gt
Details
build.log partC (build.log.ac.gz,634.12 KB, application/gzip)
2021-01-05 12:35 UTC, gt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gt 2021-01-05 08:41:20 UTC
Created attachment 681232 [details]
emerge --info '=www-client/chromium-87.0.4280.88::gentoo'

Chromium fails to compile after emerge world with the following error:

ninja: build stopped: subcommand failed.
 * ERROR: www-client/chromium-87.0.4280.88::gentoo failed (compile phase):
 *   ninja -v -j9 -l0 -C out/Release chrome chromedriver failed


And this is the actual problem: 

[5/9354] python ../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py --cache-directory gen/third_party/blink/renderer/bindings/scripts --idl-files-list __third_party_blink_renderer_bindings_core_interfaces_info_core___build_toolchain_linux_unbundle_default__rule.rsp --interfaces-info-file gen/third_party/blink/renderer/bindings/core/interfaces_info_core.pickle --component-info-file gen/third_party/blink/renderer/bindings/core/component_info_core.pickle --runtime-enabled-features-file gen/third_party/blink/renderer/build/scripts/runtime_enabled_features.pickle
FAILED: gen/third_party/blink/renderer/bindings/core/interfaces_info_core.pickle gen/third_party/blink/renderer/bindings/core/component_info_core.pickle 
python ../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py --cache-directory gen/third_party/blink/renderer/bindings/scripts --idl-files-list __third_party_blink_renderer_bindings_core_interfaces_info_core___build_toolchain_linux_unbundle_default__rule.rsp --interfaces-info-file gen/third_party/blink/renderer/bindings/core/interfaces_info_core.pickle --component-info-file gen/third_party/blink/renderer/bindings/core/component_info_core.pickle --runtime-enabled-features-file gen/third_party/blink/renderer/build/scripts/runtime_enabled_features.pickle
Traceback (most recent call last):
  File "../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py", line 410, in <module>
    sys.exit(main())
  File "../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py", line 398, in main
    info_collector.collect_info(idl_filename)
  File "../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py", line 236, in collect_info
    definitions = self.reader.read_idl_file(idl_filename)
  File "/var/tmp/portage/www-client/chromium-87.0.4280.88/work/chromium-87.0.4280.88/third_party/blink/renderer/bindings/scripts/idl_reader.py", line 121, in read_idl_file
    definitions = IdlDefinitions(ast)
  File "/var/tmp/portage/www-client/chromium-87.0.4280.88/work/chromium-87.0.4280.88/third_party/blink/renderer/bindings/scripts/idl_definitions.py", line 114, in __init__
    interface = IdlInterface(child)
  File "/var/tmp/portage/www-client/chromium-87.0.4280.88/work/chromium-87.0.4280.88/third_party/blink/renderer/bindings/scripts/idl_definitions.py", line 397, in __init__
    if len(filter(None, [self.iterable, self.maplike, self.setlike])) > 1:
TypeError: object of type 'filter' has no len()
[6/9354] python ../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py --cache-directory gen/third_party/blink/renderer/bindings/scripts --idl-files-list __third_party_blink_renderer_bindings_modules_interfaces_info_modules___build_toolchain_linux_unbundle_default__rule.rsp --interfaces-info-file gen/third_party/blink/renderer/bindings/modules/interfaces_info_modules.pickle --component-info-file gen/third_party/blink/renderer/bindings/modules/component_info_modules.pickle --runtime-enabled-features-file gen/third_party/blink/renderer/build/scripts/runtime_enabled_features.pickle
FAILED: gen/third_party/blink/renderer/bindings/modules/interfaces_info_modules.pickle gen/third_party/blink/renderer/bindings/modules/component_info_modules.pickle 
python ../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py --cache-directory gen/third_party/blink/renderer/bindings/scripts --idl-files-list __third_party_blink_renderer_bindings_modules_interfaces_info_modules___build_toolchain_linux_unbundle_default__rule.rsp --interfaces-info-file gen/third_party/blink/renderer/bindings/modules/interfaces_info_modules.pickle --component-info-file gen/third_party/blink/renderer/bindings/modules/component_info_modules.pickle --runtime-enabled-features-file gen/third_party/blink/renderer/build/scripts/runtime_enabled_features.pickle
Traceback (most recent call last):
  File "../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py", line 410, in <module>
    sys.exit(main())
  File "../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py", line 398, in main
    info_collector.collect_info(idl_filename)
  File "../../third_party/blink/renderer/bindings/scripts/compute_interfaces_info_individual.py", line 236, in collect_info
    definitions = self.reader.read_idl_file(idl_filename)
  File "/var/tmp/portage/www-client/chromium-87.0.4280.88/work/chromium-87.0.4280.88/third_party/blink/renderer/bindings/scripts/idl_reader.py", line 121, in read_idl_file
    definitions = IdlDefinitions(ast)
  File "/var/tmp/portage/www-client/chromium-87.0.4280.88/work/chromium-87.0.4280.88/third_party/blink/renderer/bindings/scripts/idl_definitions.py", line 114, in __init__
    interface = IdlInterface(child)
  File "/var/tmp/portage/www-client/chromium-87.0.4280.88/work/chromium-87.0.4280.88/third_party/blink/renderer/bindings/scripts/idl_definitions.py", line 397, in __init__
    if len(filter(None, [self.iterable, self.maplike, self.setlike])) > 1:
TypeError: object of type 'filter' has no len()
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2021-01-05 12:10:30 UTC
Can you attach full build.log (compress if needed)?
Comment 2 gt 2021-01-05 12:34:17 UTC
Created attachment 681277 [details]
build.log partA
Comment 3 gt 2021-01-05 12:34:52 UTC
Created attachment 681280 [details]
build.log partB
Comment 4 gt 2021-01-05 12:35:20 UTC
Created attachment 681283 [details]
build.log partC
Comment 5 Stephan Hartmann (RETIRED) gentoo-dev 2021-01-05 13:30:45 UTC
Thanks, you can try to use xz for compression next time, might save you from splitting build :)

From build.log (partC) I see:

...
FAILED: obj/content/browser/browser/web_bluetooth_service_impl.o 
...
x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.

That means you run out of RAM and OOM killed g++. Try to reduce number of parallel jobs in MAKEOPTS. Good estimation is 2GB per compile job, but some chromium files are very large and g++ needs more than 3GB.