[Webkit-unassigned] [Bug 241030] New: [GTK][WPE] Error cross-compiling for a different target than the build host using the -DENABLE_INTROSPECTION=ON flag.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 27 11:48:23 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=241030
Bug ID: 241030
Summary: [GTK][WPE] Error cross-compiling for a different
target than the build host using the
-DENABLE_INTROSPECTION=ON flag.
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CMake
Assignee: webkit-unassigned at lists.webkit.org
Reporter: psaavedra at igalia.com
... in a cross-compilation setup, there is a deadlock leading in a build failure when -DENABLE_INTROSPECTION=ON:
* Fail 1: The CMake rules find the g-ir-scanner in the Target rootfs of the toolchain. Then execution fails because the binary is not a binary of the host architecture:
```
Traceback (most recent call last):
File "tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/recipe-sysroot/usr/bin/g-ir-scanner", line 98, in <module>
from giscanner.scannermain import scanner_main
File "tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/recipe-sysroot/usr/lib/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
from giscanner.ast import Include, Namespace
File "tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/recipe-sysroot/usr/lib/gobject-introspection/giscanner/ast.py", line 29, in <module>
from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
File "tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/recipe-sysroot/usr/lib/gobject-introspection/giscanner/sourcescanner.py", line 34, in <module>
from giscanner._giscanner import SourceScanner as CSourceScanner
ImportError: tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/recipe-sysroot/usr/lib/gobject-introspection/giscanner/_giscanner.cpython-39-x86_64-linux-gnu.so: wrong ELF class: ELFCLASS32
```
Fail 2: The CMake rules find the g-ir-scanner in the native sysrootfs for the build host but this fails during the execution because the WPEWebKit-1.0 library is built for the target architecture
```
tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/recipe-sysroot-native/usr/bin/g-ir-scanner --quiet --warn-all --warn-error --no-libtool --output=tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/wpewebkit-trunk+https999/WPEJavaScriptCore-1.0.gir --library=WPEWebKit-1.0 --library-path=tmp/work/cortexa9t2hf-neon-imx-poky-linux-gnueabi/wpewebkit/trunk+https999-r0/wpewebkit-trunk+https999/lib --namespace=WPEJavaScriptCore --nsversion=1.0 --c-include=jsc/jsc.h --identifier-prefix=JSC --symbol-prefix=jsc --pkg-export=wpe-javascriptcore-1.0 -DBUILDING_WebKit -DBUILDING_WITH_CMAKE=1 -DHAVE_CONFIG_H=1 -DPAS_BMALLOC=1 -DBUILDING_WPE__=1 -DGETTEXT_PACKAGE=\"WPE\" -DJSC_GLIB_API_ENABLED -DWEBKIT2_COMPILATION -DLIBDIR=\"/usr/lib\" -DPKGLIBDIR=\"/usr/lib/wpe-webkit-1.0\" -DPKGLIBEXECDIR=\"/usr/libexec/wpe-webkit-1.0\" -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -DSTATICALLY_LINKED_WITH_JavaScriptCore -DSTATICALLY_LINKED_WITH_WTF -DSTATICALLY_LINKED_WITH_bmalloc -DSTATICALLY_LINKED_WITH_PAL -DSTATICALLY_LINKED_WITH_WebCore ... workspace/sources/wpewebkit/Source/JavaScriptCore/API/glib/JSCWrapperMap.cpp
ERROR: can't resolve libraries to shared libraries: WPEWebKit-1.0
```
Related commit:
```
commit b0ae032850bb6b2672051bab8032fc9f9ef5eb97
Author: Adrian Perez de Castro <aperez at igalia.com>
Date: Sat Apr 2 10:57:15 2022 +0000
[GTK] Replace gtk-doc with gi-docgen
https://bugs.webkit.org/show_bug.cgi?id=226662
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220527/278ecb19/attachment.htm>
More information about the webkit-unassigned
mailing list