Bug 89363 - build error - error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
Summary: build error - error: pointer of type 'void *' used in arithmetic [-Werror=poi...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-27 18:46 UTC by Fabio Pedretti
Modified: 2015-02-28 11:50 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Fabio Pedretti 2015-02-27 18:46:19 UTC
I get this build error after latest today commits:
  CC       shared_glapi_libglapi_la-entry.lo
In file included from ../../../../src/mapi/entry.c:49:0:
../../../../src/mapi/entry_x86-64_tls.h: In function 'entry_generate':
../../../../src/mapi/entry_x86-64_tls.h:105:29: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
    *((unsigned int *) (code + 5)) = addr;

Full build log:
https://launchpadlibrarian.net/198919571/buildlog_ubuntu-utopic-amd64.mesa_10.6~git1502271930.da85ab~gd~u_BUILDING.txt.gz

configure options:
../../configure --prefix=/usr --mandir=\${prefix}/share/man \
             --infodir=\${prefix}/share/info --sysconfdir=/etc \
             --libdir=\${prefix}/lib/x86_64-linux-gnu \
             --localstatedir=/var \
			 --build=x86_64-linux-gnu --enable-dri --with-sha1=libnettle --with-dri-drivers=" nouveau i915 i965 r200 radeon swrast" --with-dri-driverdir=/usr/lib/x86_64-linux-gnu/dri --with-dri-searchpath='/usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri' --enable-osmesa --enable-glx-tls --enable-shared-glapi --enable-texture-float --enable-driglx-direct --enable-dri3 --with-egl-platforms="x11 wayland drm" --enable-xa --enable-gallium-llvm ac_cv_path_LLVM_CONFIG=llvm-config-3.6 --enable-vdpau --enable-omx --enable-va --enable-xvmc --enable-opencl --enable-opencl-icd --enable-nine --enable-r600-llvm-compiler --with-gallium-drivers=" nouveau svga swrast r600 r300 i915 ilo radeonsi" --enable-gles1 --enable-gles2  CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -O2 -fno-omit-frame-pointer -ggdb -g -gdwarf-2 -gstrict-dwarf" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -O2 -fno-omit-frame-pointer -ggdb -g -gdwarf-2 -gstrict-dwarf" FCFLAGS="-g -O2 -fstack-protector-strong" FFLAGS="-g -O2 -fstack-protector-strong" GCJFLAGS="-g -O2 -fstack-protector-strong" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" OBJCFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" OBJCXXFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security"


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.