Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420629 - x11-libs/libXxf86dga-1.1.3 fails to build on x32
Summary: x11-libs/libXxf86dga-1.1.3 fails to build on x32
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2012-06-11 06:00 UTC by Steev Klimaszewski (RETIRED)
Modified: 2012-06-12 13:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steev Klimaszewski (RETIRED) gentoo-dev 2012-06-11 06:00:55 UTC
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
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2012-06-11 06:03:27 UTC
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
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-12 13:13:30 UTC
Fixed in CVS.