[Webkit-unassigned] [Bug 181373] [GTK] webkitgtk-2.18.4 build error on 32-bit OS with WEBASSEMBLY=ON

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 8 12:00:46 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=181373

--- Comment #9 from Carlos Alberto Lopez Perez <clopez at igalia.com> ---
(In reply to Carlos Alberto Lopez Perez from comment #8)
> This seems a bug in your environment, distribution or build system as
> CMAKE_SYSTEM_PROCESSOR should evaluate to the target system and not the host
> one.
> 
> I have a 32-bit chroot and I get the right machine definition inside it
> 
> $ cmake --system-information /dev/stdout|grep CMAKE_SYSTEM_PROCESSOR
> CMAKE_SYSTEM_PROCESSOR "i686"
> 
> 
> (On the host I get "x86_64" as expected)

mmm, it seems that is only true because I entered into the chroot via schroot which sets a 32-bit personality on the kernel. Entering into it with a simple chroot call give a x86_64 value for the processor.

You may consider running your session with the command "linux32" so that you get also a 32-bit personality.

$ uname -m
x86_64

$ linux32 uname -m
i686

In any case, If there is any bug here I think this would be a bug in CMake (and not on WebKit).

I don't think we should creatively try to workaround CMake default behaviour in this regard. Build systems that cross-compile (Yocto, buildroot) have already solved this problem by creating their own cmake toolchain files where they define all the necessary info about the target platform for CMake.

-- 
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/20180108/d1c5bdad/attachment.html>


More information about the webkit-unassigned mailing list