Bug 9606

Summary: xorg-server cannot build for ARM target
Product: buildroot Reporter: Icenowy Zheng <icenowy>
Component: OtherAssignee: Bernd Kuhls <bernd>
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2016.11   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: Compressed .config file

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.