Bug 9606 - xorg-server cannot build for ARM target
Summary: xorg-server cannot build for ARM target
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2016.11
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: Bernd Kuhls
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-20 03:46 UTC by Icenowy Zheng
Modified: 2017-01-21 12:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Compressed .config file (16.48 KB, application/gzip)
2017-01-20 03:46 UTC, Icenowy Zheng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Icenowy Zheng 2017-01-20 03:46:17 UTC
Created attachment 6861 [details]
Compressed .config file

make[6]: Entering directory '/home/icenowy/sda9/buildroot/buildroot-2016.11.1/output/build/xserver_xorg-server-1.18.4/hw/xfree86/os-support/linux'
  CC       lnx_init.lo
In file included from lnx_init.c:33:0:
../../../../hw/xfree86/common/compiler.h: In function 'xf_outb':
../../../../hw/xfree86/common/compiler.h:770:5: error: implicit declaration of function 'outb' [-Werror=implicit-function-declaration]
     outb(val, port);
     ^
../../../../hw/xfree86/common/compiler.h:770:5: warning: nested extern declaration of 'outb' [-Wnested-externs]
../../../../hw/xfree86/common/compiler.h: In function 'xf_outw':
../../../../hw/xfree86/common/compiler.h:776:5: error: implicit declaration of function 'outw' [-Werror=implicit-function-declaration]
     outw(val, port);
     ^
../../../../hw/xfree86/common/compiler.h:776:5: warning: nested extern declaration of 'outw' [-Wnested-externs]
../../../../hw/xfree86/common/compiler.h: In function 'xf_outl':
../../../../hw/xfree86/common/compiler.h:782:5: error: implicit declaration of function 'outl' [-Werror=implicit-function-declaration]
     outl(val, port);
     ^
../../../../hw/xfree86/common/compiler.h:782:5: warning: nested extern declaration of 'outl' [-Wnested-externs]
cc1: some warnings being treated as errors
Comment 1 Peter Korsgaard 2017-01-20 13:55:14 UTC
Are you building with musl? From a quick look, the logic in compiler.h hasn't changed since ~2004. The problem is that musl doesn't implement the ioperm/inb/outb interface on ARM.
Comment 2 Peter Korsgaard 2017-01-20 15:27:20 UTC
I've sent a patch do disallow ARM+MUSL:

http://lists.busybox.net/pipermail/buildroot/2017-January/181737.html
Comment 3 Peter Korsgaard 2017-01-21 12:58:43 UTC
Patch has now been applied to git, thanks.