Bug 80459 - Wayland cross compiling makefile error
Summary: Wayland cross compiling makefile error
Alias: None
Product: Wayland
Classification: Unclassified
Component: XWayland (show other bugs)
Version: 1.5.0
Hardware: ARM Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact: Xorg Project Team
Depends on:
Reported: 2014-06-24 05:50 UTC by Sunshine
Modified: 2018-06-04 07:26 UTC (History)
1 user (show)

See Also:
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:
Comment 2 Olivier Fourdan 2016-04-07 08:45:59 UTC
A similar patch was merged in wayland some time ago:


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.