Skip to contentSkip to conversation

Building Chromium for Toradex Verdin Module (Kirkstone)

DISCUSSION Daniel Kampert 3 participants 4 messages Jan 28, 2025 – Jan 30, 2025

lore
Share & tools
lore
#0 lore raw

Hi,

I try to build Chromium for a Toradex module and a custom Kirkstone BSP with the help of this guide from Toradex: https://developer.toradex.com/linux-bsp/6/application-development/gui/how-to-use-web-browser-linux. https://developer.toradex.com/linux-bsp/6/application-development/gui/how-to-use-web-browser-linux

I had a few issues with applying these patches so I had to remove a few because Yocto was complaining that some patches were already applied. After fixing this I run into this issue:

| aarch64-tdx-linux-ld.lld: error: undefined symbol: createFrameBuffer(void*, void*, int, int)
| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)
| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())
| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)
| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())
| clang-14: error: linker command failed with exit code 1 (use -v to see invocation)

With the following build configuration:

BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-tdx-linux"
MACHINE = "verdin-imx8mp"
DISTRO = "tdx-wayland"
DISTRO_VERSION = "6.8.1-devel-20250128181443+build.0" TUNE_FEATURES = "aarch64 armv8a crc cortexa53"
TARGET_FPU = ""
meta-filesystems
meta-gnome
meta-xfce
meta-initramfs
meta-networking
meta-multimedia
meta-python = "HEAD:66ec16850573a7ec69248b81f9904cdfba79b930" meta-clang = "kirkstone:d7f827890d0865c9862eeaee42fd367515d59557" meta = "HEAD:8c32d91b64ae296d7832ddeb42983f4f3c237946"
meta-oe
meta-webserver = "HEAD:de8681b4a2a101b99dd2c48d89a7de2ccd9a961f" meta-virtualization = "HEAD:a055d7dcafc58855081a5eac9a46b93b9b51012b" meta-cloud-services
meta-openstack = "HEAD:783826eceb1b09496099f00a008062c0f9f4ee4e" meta-toradex-nxp = "HEAD:a82c2e40db2991924b21b12eb141e6fe5b62bb13" meta-toradex-bsp-common = "HEAD:ba654fce46cb76cf9b5141a219506f27db9d81bb" meta-toradex-demos = "HEAD:ad72d14becf6b54c1c76864eb691a369307672fa" meta-toradex-distro = "HEAD:3c38a3acc69b7ad28908044bc2735a9d4f2b4e9f" meta-toradex-chromium = "kirkstone:dabc120c27d7050a5fc881dbfda1bbf8410dbe72" meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253" meta-freescale = "HEAD:c525e0c19bdc46d45f71873b5f286f49abb69418" meta-freescale-3rdparty = "HEAD:48516272d97f9415e0ee3ab54a923e4c40143e69" meta-tpm = "HEAD:b9cf9cd639bc8d1b4828eb0bd012b71486d35176" meta-qt5 = "HEAD:644ebf220245bdc06e7696ccc90acc97a0dd2566" meta-poky = "HEAD:6e8a5bac75ca114ef2b4d3ca150b3f501519ea8f" meta-lts-mixins = "kirkstone/rust:9bc06b6a761f28cf82aae8a99afe27ed5e2ce4c9" meta-rust-bin = "<unknown>:<unknown>"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"

Has anybody an idea where the issue comes from?

Thanks!

Mit freundlichen Grüßen / With kind regards

Ing. Daniel Kampert, M. Sc.
Embedded Systems Solutions
Address: Hauptstr. 36 | 91469 Hagenbüchach | Deutschland
Phone: +49 (0)174 6932561
E-Mail: [email protected] mailto:[email protected]
Web: www.daniel-kampert.de https://www.daniel-kampert.de

#1 lore raw
Quoted 7 lines · Daniel Kampert via lists.yoctoproject.org

Hi,
I try to build Chromium for a Toradex module and a custom Kirkstone BSP with the help of this guide from Toradex: https://developer.toradex.com/linux-bsp/6/application-development/gui/how-to-use-web-browser-linux. <https://developer.toradex.com/linux-bsp/6/application-development/gui/how-to-use-web-browser-linux>

I had a few issues with applying these patches so I had to remove a few because Yocto was complaining that some patches were already applied. After fixing this I run into this issue:
/| aarch64-tdx-linux-ld.lld: error: undefined symbol: createFrameBuffer(void*, void*, int, int)/
/| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)/

Quoted 7 lines

/| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())/

/| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)/

/| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())/

/| clang-14: error: linker command failed with exit code 1 (use -v to see invocation)/

/
/

/I don't know how to fix that off-hand./

/Can you or Toradex devs try the HEAD commit of:

https://github.com/OSSystems/meta-browser/tree/kirkstone/

/https://github.com/OSSystems/meta-browser/blob/kirkstone/meta-chromium/README.md /

Note the kirkstone-specific requirements section.

/This came from:
https://github.com/OSSystems/meta-browser/pull/843
/

/
/

Quoted 56 lines

With the following build configuration:
/BB_VERSION = "2.0.0"/
/BUILD_SYS = "x86_64-linux"/
/NATIVELSBSTRING = "universal"/
/TARGET_SYS = "aarch64-tdx-linux"/
/MACHINE = "verdin-imx8mp"/
/DISTRO = "tdx-wayland"/
/DISTRO_VERSION = "6.8.1-devel-20250128181443+build.0"/ /TUNE_FEATURES = "aarch64 armv8a crc cortexa53"/
/TARGET_FPU = ""/
/meta-filesystems /
/meta-gnome /
/meta-xfce /
/meta-initramfs /
/meta-networking /
/meta-multimedia /
/meta-python = "HEAD:66ec16850573a7ec69248b81f9904cdfba79b930"/ /meta-clang = "kirkstone:d7f827890d0865c9862eeaee42fd367515d59557"/ /meta = "HEAD:8c32d91b64ae296d7832ddeb42983f4f3c237946"/
/meta-oe /
/meta-webserver = "HEAD:de8681b4a2a101b99dd2c48d89a7de2ccd9a961f"/ /meta-virtualization = "HEAD:a055d7dcafc58855081a5eac9a46b93b9b51012b"/ /meta-cloud-services /
/meta-openstack = "HEAD:783826eceb1b09496099f00a008062c0f9f4ee4e"/ /meta-toradex-nxp = "HEAD:a82c2e40db2991924b21b12eb141e6fe5b62bb13"/ /meta-toradex-bsp-common = "HEAD:ba654fce46cb76cf9b5141a219506f27db9d81bb"/ /meta-toradex-demos = "HEAD:ad72d14becf6b54c1c76864eb691a369307672fa"/ /meta-toradex-distro = "HEAD:3c38a3acc69b7ad28908044bc2735a9d4f2b4e9f"/ /meta-toradex-chromium = "kirkstone:dabc120c27d7050a5fc881dbfda1bbf8410dbe72"/ /meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"/ /meta-freescale = "HEAD:c525e0c19bdc46d45f71873b5f286f49abb69418"/ /meta-freescale-3rdparty = "HEAD:48516272d97f9415e0ee3ab54a923e4c40143e69"/ /meta-tpm = "HEAD:b9cf9cd639bc8d1b4828eb0bd012b71486d35176"/ /meta-qt5 = "HEAD:644ebf220245bdc06e7696ccc90acc97a0dd2566"/ /meta-poky = "HEAD:6e8a5bac75ca114ef2b4d3ca150b3f501519ea8f"/ /meta-lts-mixins = "kirkstone/rust:9bc06b6a761f28cf82aae8a99afe27ed5e2ce4c9"/ /meta-rust-bin = "<unknown>:<unknown>"/
/meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"/ Has anybody an idea where the issue comes from?
Thanks!
Mit freundlichen Grüßen / With kind regards
Ing. Daniel Kampert, M. Sc.
Embedded Systems Solutions
Address: Hauptstr. 36 | 91469 Hagenbüchach | Deutschland
Phone: +49 (0)174 6932561
E-Mail: [email protected]
Web: www.daniel-kampert.de <https://www.daniel-kampert.de>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64667):https://lists.yoctoproject.org/g/yocto/message/64667 Mute This Topic:https://lists.yoctoproject.org/mt/110864825/3616765 Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#2 lore raw
Quoted 32 lines · Randy MacLeod
Quoted 7 lines · Daniel Kampert via lists.yoctoproject.org

Hi,
I try to build Chromium for a Toradex module and a custom Kirkstone BSP with the help of this guide from Toradex: https://developer.toradex.com/linux-bsp/6/application-development/gui/how-to-use-web-browser-linux. <https://developer.toradex.com/linux-bsp/6/application-development/gui/how-to-use-web-browser-linux>

I had a few issues with applying these patches so I had to remove a few because Yocto was complaining that some patches were already applied. After fixing this I run into this issue:
/| aarch64-tdx-linux-ld.lld: error: undefined symbol: createFrameBuffer(void*, void*, int, int)/
/| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)/

Quoted 7 lines

/| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())/

/| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)/

/| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())/

/| clang-14: error: linker command failed with exit code 1 (use -v to see invocation)/

/
/

/I don't know how to fix that off-hand./

/Can you or Toradex devs try the HEAD commit of:

https://github.com/OSSystems/meta-browser/tree/kirkstone/

/https://github.com/OSSystems/meta-browser/blob/kirkstone/meta-chromium/README.md /

Note the kirkstone-specific requirements section.

Quoted 45 lines

/This came from:
https://github.com/OSSystems/meta-browser/pull/843
/

/
/

Quoted 38 lines

With the following build configuration:
/BB_VERSION = "2.0.0"/
/BUILD_SYS = "x86_64-linux"/
/NATIVELSBSTRING = "universal"/
/TARGET_SYS = "aarch64-tdx-linux"/
/MACHINE = "verdin-imx8mp"/
/DISTRO = "tdx-wayland"/
/DISTRO_VERSION = "6.8.1-devel-20250128181443+build.0"/ /TUNE_FEATURES = "aarch64 armv8a crc cortexa53"/
/TARGET_FPU = ""/
/meta-filesystems /
/meta-gnome /
/meta-xfce /
/meta-initramfs /
/meta-networking /
/meta-multimedia /
/meta-python = "HEAD:66ec16850573a7ec69248b81f9904cdfba79b930"/ /meta-clang = "kirkstone:d7f827890d0865c9862eeaee42fd367515d59557"/ /meta = "HEAD:8c32d91b64ae296d7832ddeb42983f4f3c237946"/
/meta-oe /
/meta-webserver = "HEAD:de8681b4a2a101b99dd2c48d89a7de2ccd9a961f"/ /meta-virtualization = "HEAD:a055d7dcafc58855081a5eac9a46b93b9b51012b"/ /meta-cloud-services /
/meta-openstack = "HEAD:783826eceb1b09496099f00a008062c0f9f4ee4e"/ /meta-toradex-nxp = "HEAD:a82c2e40db2991924b21b12eb141e6fe5b62bb13"/ /meta-toradex-bsp-common = "HEAD:ba654fce46cb76cf9b5141a219506f27db9d81bb"/ /meta-toradex-demos = "HEAD:ad72d14becf6b54c1c76864eb691a369307672fa"/ /meta-toradex-distro = "HEAD:3c38a3acc69b7ad28908044bc2735a9d4f2b4e9f"/ /meta-toradex-chromium = "kirkstone:dabc120c27d7050a5fc881dbfda1bbf8410dbe72"/ /meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"/ /meta-freescale = "HEAD:c525e0c19bdc46d45f71873b5f286f49abb69418"/ /meta-freescale-3rdparty = "HEAD:48516272d97f9415e0ee3ab54a923e4c40143e69"/ /meta-tpm = "HEAD:b9cf9cd639bc8d1b4828eb0bd012b71486d35176"/ /meta-qt5 = "HEAD:644ebf220245bdc06e7696ccc90acc97a0dd2566"/ /meta-poky = "HEAD:6e8a5bac75ca114ef2b4d3ca150b3f501519ea8f"/ /meta-lts-mixins = "kirkstone/rust:9bc06b6a761f28cf82aae8a99afe27ed5e2ce4c9"/ /meta-rust-bin = "<unknown>:<unknown>"/
/meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"/

Hi again Daniel,

I was worried that you were already testing the latest version so I checked and you're back on chromium-101:

meta-browser.git on kirkstone
❯ git log --oneline e232c2e21b96dc092d9af8bea4b3a528e7a46dd6..HEAD | wc -l 69

❯ git log --oneline -5 e232c2e21b96dc092d9af8bea4b3a528e7a46dd6 e232c2e cbindgen: upgrade to 0.23.0
726f2e8 cbindgen: add explicit branch parameter d813ff2 chromium: Fix build for 32bit arm
6079a8b chromium: update to 101.0.4951.54
a5ceea0 chromium: update to 101.0.4951.41

likely you want the hardware acceleration to work.

Unfortunately, if you want a version of Chromium that has fewer if any known 0-day exploits, you'll have to update to a newer version.

Good luck.

../Randy

Quoted 22 lines
Quoted 18 lines

Has anybody an idea where the issue comes from? Thanks!
Mit freundlichen Grüßen / With kind regards
Ing. Daniel Kampert, M. Sc.
Embedded Systems Solutions
Address: Hauptstr. 36 | 91469 Hagenbüchach | Deutschland
Phone: +49 (0)174 6932561
E-Mail: [email protected]
Web: www.daniel-kampert.de <https://www.daniel-kampert.de>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64667):https://lists.yoctoproject.org/g/yocto/message/64667 Mute This Topic:https://lists.yoctoproject.org/mt/110864825/3616765 Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#3 lore raw
In reply to Daniel Kampert

Can you check the build cmds ands see if
use_ozone=true use_wayland=true are set or not

Quoted 76 lines · Daniel Kampert via lists.yoctoproject.org

Hi,

I try to build Chromium for a Toradex module and a custom Kirkstone BSP with the help of this guide from Toradex: https://developer.toradex.com/linux-bsp/6/application-development/gui/how-to-use-web-browser-linux.

I had a few issues with applying these patches so I had to remove a few because Yocto was complaining that some patches were already applied. After fixing this I run into this issue:

| aarch64-tdx-linux-ld.lld: error: undefined symbol: createFrameBuffer(void*, void*, int, int)
| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)
| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())
| >>> referenced by entry_points.cpp:1745 (./../../third_party/swiftshader/src/OpenGL/libGLESv2/entry_points.cpp:1745)
| >>> thinlto-cache/llvmcache-4D23FCCCC063500613CA78894C3B40A545B5F5A7:(LibGLESv2exports::LibGLESv2exports())
| clang-14: error: linker command failed with exit code 1 (use -v to see invocation)

With the following build configuration:

BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-tdx-linux"
MACHINE = "verdin-imx8mp"
DISTRO = "tdx-wayland"
DISTRO_VERSION = "6.8.1-devel-20250128181443+build.0" TUNE_FEATURES = "aarch64 armv8a crc cortexa53"
TARGET_FPU = ""
meta-filesystems
meta-gnome
meta-xfce
meta-initramfs
meta-networking
meta-multimedia
meta-python = "HEAD:66ec16850573a7ec69248b81f9904cdfba79b930" meta-clang = "kirkstone:d7f827890d0865c9862eeaee42fd367515d59557" meta = "HEAD:8c32d91b64ae296d7832ddeb42983f4f3c237946"
meta-oe
meta-webserver = "HEAD:de8681b4a2a101b99dd2c48d89a7de2ccd9a961f" meta-virtualization = "HEAD:a055d7dcafc58855081a5eac9a46b93b9b51012b" meta-cloud-services
meta-openstack = "HEAD:783826eceb1b09496099f00a008062c0f9f4ee4e" meta-toradex-nxp = "HEAD:a82c2e40db2991924b21b12eb141e6fe5b62bb13" meta-toradex-bsp-common = "HEAD:ba654fce46cb76cf9b5141a219506f27db9d81bb" meta-toradex-demos = "HEAD:ad72d14becf6b54c1c76864eb691a369307672fa" meta-toradex-distro = "HEAD:3c38a3acc69b7ad28908044bc2735a9d4f2b4e9f" meta-toradex-chromium = "kirkstone:dabc120c27d7050a5fc881dbfda1bbf8410dbe72" meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253" meta-freescale = "HEAD:c525e0c19bdc46d45f71873b5f286f49abb69418" meta-freescale-3rdparty = "HEAD:48516272d97f9415e0ee3ab54a923e4c40143e69" meta-tpm = "HEAD:b9cf9cd639bc8d1b4828eb0bd012b71486d35176" meta-qt5 = "HEAD:644ebf220245bdc06e7696ccc90acc97a0dd2566" meta-poky = "HEAD:6e8a5bac75ca114ef2b4d3ca150b3f501519ea8f" meta-lts-mixins = "kirkstone/rust:9bc06b6a761f28cf82aae8a99afe27ed5e2ce4c9" meta-rust-bin = "<unknown>:<unknown>"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"

Has anybody an idea where the issue comes from?

Thanks!

Mit freundlichen Grüßen / With kind regards

Ing. Daniel Kampert, M. Sc.
Embedded Systems Solutions
Address: Hauptstr. 36 | 91469 Hagenbüchach | Deutschland
Phone: +49 (0)174 6932561
E-Mail: [email protected]
Web: www.daniel-kampert.de

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#64667): https://lists.yoctoproject.org/g/yocto/message/64667
Mute This Topic: https://lists.yoctoproject.org/mt/110864825/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-