OSSystems / meta-browser

OpenEmbedded/Yocto BSP layer for Web Browsers
MIT License
186 stars 195 forks source link

Getting Compilation Issue with Chromium and Yocto kirkstone #713

Open Satyaprasad-GitHub opened 1 year ago

Satyaprasad-GitHub commented 1 year ago

Hi, I'm using Yocto kirkstone with chromium (master) branch and getting below compilation issues.

5615.165-r0=/usr/src/debug/chromium-ozone-wayland/112.0.5615.165-r0 -fdebug-prefix-map=/home/toradex/imx8mp_620/oe-core/build/tmp/work/cortexa53-mx8mp-tdx-linux/chromium-ozone-wayland/112.0.5615.165-r0/recipe-sysroot= -fdebug-prefix-map=/home/toradex/imx8mp_620/oe-core/build/tmp/work/cortexa53-mx8mp-tdx-linux/chromium-ozone-wayland/112.0.5615.165-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -o "./chrome" -Wl,--start-group @"./chrome.rsp" -Wl,--end-group -latomic -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsmime3 -lnss3 -lsoftokn3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -latk-1.0 -latk-bridge-2.0 -lgio-2.0 -ldbus-1 -latspi -lresolv -ljpeg -lexpat -luuid -ldrm -lxkbcommon -lpci -l:libffi_pic.a -lgbm -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo -lasound -lFLAC -lm -lz -lxslt -lxml2 | aarch64-tdx-linux-ld.lld: error: undefined symbol: gl::NativeViewGLSurfaceEGL::NativeViewGLSurfaceEGL(gl::GLDisplayEGL, void, std::1::unique_ptr<gfx::VSyncProvider, std::__1::default_delete >) | >>> referenced by gl_surface_wayland.cc:35 (../../ui/ozone/platform/wayland/gpu/gl_surface_wayland.cc:35) | >>> thinlto-cache/llvmcache-5EE66D699A8852C77C1B02DAA33A977E95EE8846:(ui::GLSurfaceWayland::GLSurfaceWayland(gl::GLDisplayEGL*, std::1::unique_ptr<wl_egl_window, ui::EGLWindowDeleter>, ui::WaylandWindow*)) | clang-12: error: linker command failed with exit code 1 (use -v to see invocation) | ninja: build stopped: subcommand failed. | WARNING: exit code 1 from a shell command. ERROR: Task (/home/toradex/imx8mp_620/oe-core/build/../layers/meta-browser/meta-chromium/recipes-browser/chromium/chromium-ozone-wayland_112.0.5615.165.bb:do_compile) failed with exit code '1'

Build Configuration: meta-chromium = "master:e8a756bb5ee28ee5adc668b78ff2011b0f3b62bd" meta-clang = "kirkstone-clang12:c2e89dc7e1dfcc1bbe432afca2dc43d6560cb007"

nrpt-m commented 1 year ago

@Satyaprasad-GitHub , In Yocto kirkstone, why are you using meta-clang = "kirkstone-clang12" ? You should use meta-clang/kirkstone branch. Please follow the Test-built mentioned in #709 PR message.

Satyaprasad-GitHub commented 1 year ago

@nrpt-m, Thanks for the response.

"kirkstone-clang12" branch was mentioned as per my SOC vendor documentation. Checking with vendor as per your comment and yet to get response.

LuisCarlosRojasTorres commented 1 year ago

I also had an issue with meta-chromium in kirkstone branch , but the log is different:

DEBUG: Executing shell function do_compile
[1/44094] python3 ../../mojo/public/tools/mojom/mojom_parser.py --input-root ../.. --input-root gen --output-root gen --mojom-file-list=gen/components/services/storage/privileged/mojom/mojom__parser.rsp --check-imports gen/components/services/storage/privileged/mojom/mojom.build_metadata --enable-feature is_posix --enable-feature is_linux
[2/44094] python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/components/services/storage/public/mojom/mojom__generate_message_ids.rsp --generate_non_variant_code --generate_message_ids -g c++ --scrambled_message_id_salt_path ../../chrome/VERSION
[3/44094] touch obj/components/services/storage/public/mojom/mojom__generate_message_ids.stamp
[4/44094] touch obj/components/services/storage/privileged/mojom/mojom__parser.stamp
[5/44094] python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/components/services/storage/public/mojom/mojom_shared__generator.rsp --generate_non_variant_code -g c++
[6/44094] touch obj/components/services/storage/public/mojom/mojom_shared__generator.stamp
[7/44094] python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/components/services/storage/privileged/mojom/mojom_shared__generator.rsp --generate_non_variant_code -g c++
[8/44094] touch obj/components/services/storage/privileged/mojom/mojom_shared__generator.stamp
[9/44094] python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/components/services/storage/privileged/mojom/mojom__generate_message_ids.rsp --generate_non_variant_code --generate_message_ids -g c++ --scrambled_message_id_salt_path ../../chrome/VERSION
[10/44094] touch obj/components/services/storage/privileged/mojom/mojom__generate_message_ids.stamp
[11/44094] python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/content/common/mojo_bindings__generate_message_ids.rsp --generate_non_variant_code --generate_message_ids -g c++ --scrambled_message_id_salt_path ../../chrome/VERSION
FAILED: gen/content/common/agent_scheduling_group.mojom-shared-message-ids.h gen/content/common/aggregatable_report.mojom-shared-message-ids.h gen/content/common/associated_interfaces.mojom-shared-message-ids.h gen/content/common/child_process.mojom-shared-message-ids.h gen/content/common/dom_automation_controller.mojom-shared-message-ids.h gen/content/common/download/mhtml_file_writer.mojom-shared-message-ids.h gen/content/common/field_trial_recorder.mojom-shared-message-ids.h gen/content/common/frame.mojom-shared-message-ids.h gen/content/common/frame_messages.mojom-shared-message-ids.h gen/content/common/histogram_fetcher.mojom-shared-message-ids.h gen/content/common/input/input_injector.mojom-shared-message-ids.h gen/content/common/media/media_log_records.mojom-shared-message-ids.h gen/content/common/native_types.mojom-shared-message-ids.h gen/content/common/navigation_client.mojom-shared-message-ids.h gen/content/common/private_aggregation_host.mojom-shared-message-ids.h gen/content/common/render_message_filter.mojom-shared-message-ids.h gen/content/common/renderer.mojom-shared-message-ids.h gen/content/common/renderer_host.mojom-shared-message-ids.h gen/content/common/renderer_variations_configuration.mojom-shared-message-ids.h gen/content/common/shared_storage_worklet_service.mojom-shared-message-ids.h gen/content/common/web_ui.mojom-shared-message-ids.h gen/content/common/pepper_plugin.mojom-shared-message-ids.h 
python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/content/common/mojo_bindings__generate_message_ids.rsp --generate_non_variant_code --generate_message_ids -g c++ --scrambled_message_id_salt_path ../../chrome/VERSION
Traceback (most recent call last):
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 418, in <module>
    ret = main()
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 413, in main
    return args.func(args, remaining_args)
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 275, in _Generate
    processor._GenerateModule(
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 207, in _GenerateModule
    module = Module.Load(f)
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/mojo/public/tools/mojom/mojom/generate/module.py", line 1524, in Load
    result = pickle.load(f)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 5: invalid start byte
[12/44094] python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/content/common/mojo_bindings_shared__generator.rsp --generate_non_variant_code -g c++ --export_attribute COMPONENT_EXPORT\(MOJOM_SHARED_CONTENT_EXPORT\) --export_header base/component_export.h
FAILED: gen/content/common/agent_scheduling_group.mojom-params-data.h gen/content/common/agent_scheduling_group.mojom-shared-internal.h gen/content/common/agent_scheduling_group.mojom-shared.cc gen/content/common/agent_scheduling_group.mojom-shared.h gen/content/common/aggregatable_report.mojom-params-data.h gen/content/common/aggregatable_report.mojom-shared-internal.h gen/content/common/aggregatable_report.mojom-shared.cc gen/content/common/aggregatable_report.mojom-shared.h gen/content/common/associated_interfaces.mojom-params-data.h gen/content/common/associated_interfaces.mojom-shared-internal.h gen/content/common/associated_interfaces.mojom-shared.cc gen/content/common/associated_interfaces.mojom-shared.h gen/content/common/child_process.mojom-params-data.h gen/content/common/child_process.mojom-shared-internal.h gen/content/common/child_process.mojom-shared.cc gen/content/common/child_process.mojom-shared.h gen/content/common/dom_automation_controller.mojom-params-data.h gen/content/common/dom_automation_controller.mojom-shared-internal.h gen/content/common/dom_automation_controller.mojom-shared.cc gen/content/common/dom_automation_controller.mojom-shared.h gen/content/common/download/mhtml_file_writer.mojom-params-data.h gen/content/common/download/mhtml_file_writer.mojom-shared-internal.h gen/content/common/download/mhtml_file_writer.mojom-shared.cc gen/content/common/download/mhtml_file_writer.mojom-shared.h gen/content/common/field_trial_recorder.mojom-params-data.h gen/content/common/field_trial_recorder.mojom-shared-internal.h gen/content/common/field_trial_recorder.mojom-shared.cc gen/content/common/field_trial_recorder.mojom-shared.h gen/content/common/frame.mojom-params-data.h gen/content/common/frame.mojom-shared-internal.h gen/content/common/frame.mojom-shared.cc gen/content/common/frame.mojom-shared.h gen/content/common/frame_messages.mojom-params-data.h gen/content/common/frame_messages.mojom-shared-internal.h gen/content/common/frame_messages.mojom-shared.cc gen/content/common/frame_messages.mojom-shared.h gen/content/common/histogram_fetcher.mojom-params-data.h gen/content/common/histogram_fetcher.mojom-shared-internal.h gen/content/common/histogram_fetcher.mojom-shared.cc gen/content/common/histogram_fetcher.mojom-shared.h gen/content/common/input/input_injector.mojom-params-data.h gen/content/common/input/input_injector.mojom-shared-internal.h gen/content/common/input/input_injector.mojom-shared.cc gen/content/common/input/input_injector.mojom-shared.h gen/content/common/media/media_log_records.mojom-params-data.h gen/content/common/media/media_log_records.mojom-shared-internal.h gen/content/common/media/media_log_records.mojom-shared.cc gen/content/common/media/media_log_records.mojom-shared.h gen/content/common/native_types.mojom-params-data.h gen/content/common/native_types.mojom-shared-internal.h gen/content/common/native_types.mojom-shared.cc gen/content/common/native_types.mojom-shared.h gen/content/common/navigation_client.mojom-params-data.h gen/content/common/navigation_client.mojom-shared-internal.h gen/content/common/navigation_client.mojom-shared.cc gen/content/common/navigation_client.mojom-shared.h gen/content/common/private_aggregation_host.mojom-params-data.h gen/content/common/private_aggregation_host.mojom-shared-internal.h gen/content/common/private_aggregation_host.mojom-shared.cc gen/content/common/private_aggregation_host.mojom-shared.h gen/content/common/render_message_filter.mojom-params-data.h gen/content/common/render_message_filter.mojom-shared-internal.h gen/content/common/render_message_filter.mojom-shared.cc gen/content/common/render_message_filter.mojom-shared.h gen/content/common/renderer.mojom-params-data.h gen/content/common/renderer.mojom-shared-internal.h gen/content/common/renderer.mojom-shared.cc gen/content/common/renderer.mojom-shared.h gen/content/common/renderer_host.mojom-params-data.h gen/content/common/renderer_host.mojom-shared-internal.h gen/content/common/renderer_host.mojom-shared.cc gen/content/common/renderer_host.mojom-shared.h gen/content/common/renderer_variations_configuration.mojom-params-data.h gen/content/common/renderer_variations_configuration.mojom-shared-internal.h gen/content/common/renderer_variations_configuration.mojom-shared.cc gen/content/common/renderer_variations_configuration.mojom-shared.h gen/content/common/shared_storage_worklet_service.mojom-params-data.h gen/content/common/shared_storage_worklet_service.mojom-shared-internal.h gen/content/common/shared_storage_worklet_service.mojom-shared.cc gen/content/common/shared_storage_worklet_service.mojom-shared.h gen/content/common/web_ui.mojom-params-data.h gen/content/common/web_ui.mojom-shared-internal.h gen/content/common/web_ui.mojom-shared.cc gen/content/common/web_ui.mojom-shared.h gen/content/common/pepper_plugin.mojom-params-data.h gen/content/common/pepper_plugin.mojom-shared-internal.h gen/content/common/pepper_plugin.mojom-shared.cc gen/content/common/pepper_plugin.mojom-shared.h 
python3 ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=gen/content/common/mojo_bindings_shared__generator.rsp --generate_non_variant_code -g c++ --export_attribute COMPONENT_EXPORT\(MOJOM_SHARED_CONTENT_EXPORT\) --export_header base/component_export.h
Traceback (most recent call last):
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 418, in <module>
    ret = main()
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 413, in main
    return args.func(args, remaining_args)
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 275, in _Generate
    processor._GenerateModule(
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/out/Release/../../mojo/public/tools/bindings/mojom_bindings_generator.py", line 207, in _GenerateModule
    module = Module.Load(f)
  File "/home/redtower01/build-yocto/tmp/work/corei7-64-poky-linux/chromium-x11/112.0.5615.165-r0/chromium-112.0.5615.165/mojo/public/tools/mojom/mojom/generate/module.py", line 1524, in Load
    result = pickle.load(f)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 5: invalid start byte
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

However the build configuration is different: meta
meta-poky
meta-yocto-bsp = "kirkstone:4cc0e9438b450b43749730e128b6b9adb30f9663" meta-oe
meta-python
meta-networking
meta-perl
meta-multimedia = "kirkstone:9e539aaed608a03b1128a7361426703d8f9ba705" meta-intel = "kirkstone:1edf26e5b90371c9acf7bd6ac7155000de85f133" meta-dotnet-core = "master:8cf4fc8963168d4e1f06d19e520089b1d9a41151" meta-clang = "kirkstone:b9df71259272cc4e3078e92614720756ccb05845" meta-chromium = "master:633dbeecfe0db3e4ac9750d871ad213149728d26"

Have you ever had this kind of problem?

Thank you in advance!