Bug 66739

Summary: /usr/include/xorg/fb.h:94:2: error: #error "GLYPHPADBYTES must be 4"
Product: xorg Reporter: Alexander Khryukin <alexander>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium CC: manas.world2
Version: unspecified   
Hardware: ARM   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Ok none

Description Alexander Khryukin 2013-07-09 14:01:25 UTC
Hello. i'm building mesa 9.1.4 
with such options

./configure --target=armv7l-mandriva-linux-gnueabi --host=armv7l-mandriva-linux-gnueabi --build=armv7l-mandriva-linux-gnueabi --disable-silent-rules --disable-dependency-tracking --disable-rpath --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib --enable-dri --enable-glx --with-dri-driverdir=/usr/lib/dri --with-dri-drivers=nouveau,r200,radeon,swrast --with-clang-libdir=/usr/lib --enable-egl --enable-gallium-egl --enable-gbm --enable-shared-glapi --with-egl-platforms=x11,wayland,drm,fbdev --enable-xorg --enable-xa --enable-gles1 --enable-gles2 --enable-gles3 --enable-openvg --enable-opencl --enable-gallium-egl --enable-gallium-g3dvl --enable-xvmc --enable-vdpau --disable-va --with-gallium-drivers=svga,r300,r600,radeonsi,nouveau,swrast --enable-gallium-llvm --enable-r600-llvm-compiler


And i always got an error

.libs/xorg_driver.o
libtool: compile:  armv7l-mandriva-linux-gnueabi-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"9.1.4\" "-DPACKAGE_STRING=\"Mesa 9.1.4\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"9.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -DHAVE_LIBEXPAT=1 -I. -I../../../../include -I../../../../src/mesa -I../../../../src/mesa/drivers/dri/common -I../../../../src/mesa/main -DHAVE_CONFIG_H -DHAVE_LIBKMS -I../../../../include -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -D_GNU_SOURCE -DHAVE_PTHREAD -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XEXTPROTO_71 -DHAVE_LLVM=0x0302 -I/usr/include/libkms -I/usr/include/libdrm -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -O2 -g -fpic -fPIC -fno-strict-volatile-bitfields -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -c xorg_dri2.c  -fPIC -DPIC -o .libs/xorg_dri2.o
In file included from xorg_driver.c:36:0:
/usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated.  For greater compatibility, drivers should include necessary PCI IDs locally rather than relying on this file from xorg-server." [-Wcpp]
In file included from xorg_driver.c:41:0:
/usr/include/xorg/fb.h:94:2: error: #error "GLYPHPADBYTES must be 4"
xorg_driver.c: In function 'drv_pre_init':
xorg_driver.c:347:23: warning: variable 'xf86_config' set but not used [-Wunused-but-set-variable]
gmake[4]: *** [xorg_driver.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/xorg/exa.h:39:0,
                 from xorg_tracker.h:43,
                 from xorg_dri2.c:35:
/usr/include/xorg/fb.h:94:2: error: #error "GLYPHPADBYTES must be 4"
In file included from /usr/include/xorg/exa.h:39:0,
                 from xorg_tracker.h:43,
                 from xorg_exa.h:4,
                 from xorg_composite.h:4,
                 from xorg_composite.c:1:
/usr/include/xorg/fb.h:94:2: error: #error "GLYPHPADBYTES must be 4"
gmake[4]: *** [xorg_dri2.lo] Error 1
gmake[4]: *** [xorg_composite.lo] Error 1
In file included from /usr/include/xorg/exa.h:39:0,
                 from xorg_tracker.h:43,
                 from xorg_crtc.c:43:
/usr/include/xorg/fb.h:94:2: error: #error "GLYPHPADBYTES must be 4"
gmake[4]: *** [xorg_crtc.lo] Error 1
gmake[4]: Leaving directory `/root/rpmbuild/BUILD/Mesa-9.1.4/src/gallium/state_trackers/xorg'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/root/rpmbuild/BUILD/Mesa-9.1.4/src/gallium/state_trackers'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/root/rpmbuild/BUILD/Mesa-9.1.4/src/gallium'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/rpmbuild/BUILD/Mesa-9.1.4/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.78828 (%build)


If i replaced 

#ifdef __arm32__ 

#define IMAGE_BYTE_ORDER        LSBFirst 
#define BITMAP_BIT_ORDER        LSBFirst 
#define GLYPHPADBYTES           4 

#endif                          /* __arm32__ */ 

to 

#define IMAGE_BYTE_ORDER        LSBFirst 
#define BITMAP_BIT_ORDER        LSBFirst 
#define GLYPHPADBYTES           4 

All working fine, looks like it is not mesa issue.


http://forums.gentoo.org/viewtopic-t-948368-start-0.html
Comment 1 Manas Hutait 2017-04-27 07:44:54 UTC
Created attachment 131082 [details] [review]
Ok
Comment 2 Adam Jackson 2018-05-15 19:30:43 UTC
Don't know how you managed to hit this, but none of the affected code exists anymore since 1.17:

commit 4302484ef2e67b2e05756c7ee0834dce938f1b44
Author: Adam Jackson <ajax@redhat.com>
Date:   Mon Jul 21 10:06:53 2014 -0400

    dix: Remove arch awareness from servermd.h (v2)
Comment 3 oggyjack 2019-06-24 08:02:12 UTC
Thanks for the given me awesome and amazing article https://firsttimehomebuyerprogram.net such the very great post i hope you like this new updating here.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.