Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [git commit] xorg-server: not available with musl on ARM
Date: Sun, 22 Jan 2017 10:13:37 +0100	[thread overview]
Message-ID: <87tw8r4fum.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20170122172820.0086ea0b@free-electrons.com> (Thomas Petazzoni's message of "Sun, 22 Jan 2017 17:28:20 +1100")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Hello,
 > On Sat, 21 Jan 2017 13:55:07 +0100, Peter Korsgaard wrote:

 >> diff --git a/package/x11r7/xserver_xorg-server/Config.in b/package/x11r7/xserver_xorg-server/Config.in
 >> index 0f1d1fe..1c8f8cf 100644
 >> --- a/package/x11r7/xserver_xorg-server/Config.in
 >> +++ b/package/x11r7/xserver_xorg-server/Config.in
 >> @@ -1,6 +1,11 @@
 >> +comment "xorg-server needs a glibc or uClibc toolchain"
 >> +	depends on BR2_arm && BR2_TOOLCHAIN_USES_MUSL
 >> +
 >> config BR2_PACKAGE_XSERVER_XORG_SERVER
 >> bool "xorg-server"
 >> depends on BR2_USE_MMU # fork()
 >> +	# xserver uses inb/outb on arm, which aren't available with musl
 >> +	depends on !(BR2_arm && BR2_TOOLCHAIN_USES_MUSL)

 > This looks a bit weird to me. X.org is a major piece of software, and
 > there are musl-based distributions that do run X, though perhaps not on
 > ARM. Has the issue been reported to the musl developers?

I agree that it is a big hammer. Like explained above, the issue is that
musl doesn't provide the ioperm/inb/outb interface, and the Xserver
provides some wrapper functions around them, so compilation fails.

Now, I don't know how many drivers use these functions (and how many of
those drivers make sense on ARM), so perhaps they can be patched
out. The fact that musl doesn't provide any define to detect it means
that these have to be done based on autoconf tests, and repeated for the
3 xserver versions we support - And the musl/arm dependencies have to be
moved down to the drivers that use this interface.

I didn't have the interest / energy to do so, but if others have an
interest in Xorg on musl/arm, feel free to work on it.

With that said, the current situation is that it doesn't build - So we
should disallow the combination, like this patch does.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2017-01-22  9:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21 12:55 [Buildroot] [git commit] xorg-server: not available with musl on ARM Peter Korsgaard
2017-01-22  6:28 ` Thomas Petazzoni
2017-01-22  9:13   ` Peter Korsgaard [this message]
2017-01-22  9:37     ` Yegor Yefremov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tw8r4fum.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox