When attempting to build xorg in an x32 chroot, I get the following output with libXxf86dga: Making all in src make[1]: Entering directory `/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3_build/src' make all-am make[2]: Entering directory `/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3_build/src' CC XF86DGA2.lo /bin/sh ../libtool --silent --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src -I /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/include -DMALLOC_0_RETURNS_NULL -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -c -o XF86DGA2.lo /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c: In function 'DGAMapPhysical': /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c:931:45: error: 'uintptr_t' undeclared (first use in this function) /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c:931:45: note: each undeclared identifier is reported only once for each function it appears in /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c:931:55: error: expected ')' before 'base' make[2]: *** [XF86DGA2.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3_build/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3_build/src' make: *** [all-recursive] Error 1 To fix this, 2 patches from libXxf86dga git are required (though they could probably be combined since the second patch is the include to make the first patch work) http://cgit.freedesktop.org/xorg/lib/libXxf86dga/patch/?id=56b5a5887349e9d0e1d28da157fe6441ca691f56 http://cgit.freedesktop.org/xorg/lib/libXxf86dga/patch/?id=d4f89f7f42484963575b4c7d2fa694051e111e76 Reproducible: Always
Whoops, sorry, the first comment has the build failure incorrectly. Proper error that is given is: Making all in src make[1]: Entering directory `/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3_build/src' make all-am make[2]: Entering directory `/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3_build/src' CC XF86DGA.lo /bin/sh ../libtool --silent --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src -I /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/include -DMALLOC_0_RETURNS_NULL -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -c -o XF86DGA.lo /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA.c CC XF86DGA2.lo /bin/sh ../libtool --silent --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src -I /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/include -DMALLOC_0_RETURNS_NULL -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -c -o XF86DGA2.lo /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c: In function 'DGAMapPhysical': /var/tmp/portage/x11-libs/libXxf86dga-1.1.3/work/libXxf86dga-1.1.3/src/XF86DGA2.c:931:37: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] cc1: some warnings being treated as errors
Fixed in CVS.