Bug 80459

Summary: Wayland cross compiling makefile error
Product: Wayland Reporter: Sunshine <pooja.thakoor18>
Component: XWaylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED WORKSFORME QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: thierry.reding
Version: 1.5.0   
Hardware: ARM   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Sunshine 2014-06-24 05:50:30 UTC
I am trying to cross compile wayland for an arm-linux platform. During the make, I am getting following error..

CC       src/scanner.o
  CC       src/connection.lo
  CC       src/wayland-util.lo
  CC       src/wayland-os.lo
  CCLD     libwayland-util.la
  CCLD     wayland-scanner
  GEN      protocol/wayland-server-protocol.h
/bin/sh: ./wayland-scanner: cannot execute binary file
make: *** [protocol/wayland-server-protocol.h] Error 126
Comment 1 Srivardhan Hebbar 2014-06-24 09:05:46 UTC
Thierry Reding has already given a patch for this problem. It is not yet merged. You can refer that in the below link for the solution:
http://lists.freedesktop.org/archives/wayland-devel/2014-May/014892.html
Comment 2 Olivier Fourdan 2016-04-07 08:45:59 UTC
A similar patch was merged in wayland some time ago:

https://cgit.freedesktop.org/wayland/wayland/commit/?id=21f80b8

But in any case, this seems to be an issue in wayalnd mroe than the xserver/xwayland.

Can we close this bug if the aforementioned commit fixes the issue, or else move that bug to wayland where it belongs?
Comment 3 Daniel Stone 2018-06-04 07:26:34 UTC
Cross-compiling is a bit painful sometimes, but this does work if your environment is fully set up for wayland-scanner.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.