Can't gmake libdrm-2.4.59 on OmniOS

CodeSwim OS Development os-dev at codeswim.com
Sat Jan 31 17:03:15 PST 2015


I'm trying to build libdrm and have an issue when I gmake after
configuring.  Steps to reproduce:

# uname -a
SunOS omnios 5.11 omnios-10b9c79 i86pc i386 i86pc

# cd libdrm-2.4.59

# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/ggrep
checking for egrep... /usr/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking how to print strings... print -r
checking for a sed that does not truncate output... /usr/bin/gsed
checking for fgrep... /usr/bin/ggrep -F
checking for ld used by gcc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i386-pc-solaris2.11 file names to
i386-pc-solaris2.11 format... func_convert_file_noop
checking how to convert i386-pc-solaris2.11 file names to toolchain
format... func_convert_file_noop
checking for /bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PTHREADSTUBS... yes
checking for clock_gettime... yes
checking for open_memstream... no
checking for supported warning flags...
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wsign-compare... yes
checking whether gcc supports -Werror-implicit-function-declaration... yes
checking whether gcc supports -Wpointer-arith... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wmissing-declarations... yes
checking whether gcc supports -Wnested-externs... yes
checking whether gcc supports -Wpacked... yes
checking whether gcc supports -Wswitch-enum... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wstrict-aliasing=2... yes
checking whether gcc supports -Winit-self... yes
checking whether gcc supports -Wdeclaration-after-statement... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wno-missing-field-initializers... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-attributes... yes
checking whether gcc supports -Wno-long-long... yes
checking whether gcc supports -Winline... yes
checking which warning flags were supported...  -Wall -Wextra
-Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum
-Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self
-Wdeclaration-after-statement -Wold-style-definition
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes
-Wno-long-long -Winline
checking for native atomic primitives... Intel
checking for PCIACCESS... yes
checking for CAIRO... yes
checking whether to enable Cairo tests... yes
checking for LIBUDEV... no
checking for xsltproc... /usr/bin/xsltproc
checking for docbook manpages stylesheet... no
checking for VALGRIND... no
checking whether gcc supports -fvisibility=hidden... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libkms/Makefile
config.status: creating libkms/libkms.pc
config.status: creating intel/Makefile
config.status: creating intel/libdrm_intel.pc
config.status: creating radeon/Makefile
config.status: creating radeon/libdrm_radeon.pc
config.status: creating nouveau/Makefile
config.status: creating nouveau/libdrm_nouveau.pc
config.status: creating omap/Makefile
config.status: creating omap/libdrm_omap.pc
config.status: creating exynos/Makefile
config.status: creating exynos/libdrm_exynos.pc
config.status: creating freedreno/Makefile
config.status: creating freedreno/libdrm_freedreno.pc
config.status: creating tegra/Makefile
config.status: creating tegra/libdrm_tegra.pc
config.status: creating tests/Makefile
config.status: creating tests/modeprint/Makefile
config.status: creating tests/modetest/Makefile
config.status: creating tests/kmstest/Makefile
config.status: creating tests/proptest/Makefile
config.status: creating tests/radeon/Makefile
config.status: creating tests/vbltest/Makefile
config.status: creating tests/exynos/Makefile
config.status: creating tests/tegra/Makefile
config.status: creating man/Makefile
config.status: creating libdrm.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

libdrm 2.4.59 will be compiled with:

  libkms         no
  Intel API      yes
  vmwgfx API     yes
  Radeon API     yes
  Nouveau API    yes
  OMAP API       no
  EXYNOS API     no
  Freedreno API  no (kgsl: no)
  Tegra API      no

# gmake
gmake  all-recursive
gmake[1]: Entering directory `/usr/share/src/libdrm-2.4.59'
Making all in .
gmake[2]: Entering directory `/usr/share/src/libdrm-2.4.59'
  CC       libdrm_la-xf86drm.lo
  CC       libdrm_la-xf86drmHash.lo
  CC       libdrm_la-xf86drmRandom.lo
  CC       libdrm_la-xf86drmSL.lo
  CC       libdrm_la-xf86drmMode.lo
In file included from xf86drmMode.c:45:0:
config.h:173:0: warning: "_FILE_OFFSET_BITS" redefined [enabled by default]
 #define _FILE_OFFSET_BITS 64
 ^
In file included from /usr/include/sys/int_types.h:55:0,
                 from /usr/include/sys/stdint.h:38,
                 from /usr/include/stdint.h:38,
                 from
/opt/gcc-4.8.1/lib/gcc/i386-pc-solaris2.11/4.8.1/include/stdint.h:9,
                 from xf86drmMode.c:40:
/opt/gcc-4.8.1/lib/gcc/i386-pc-solaris2.11/4.8.1/include-fixed/sys/feature_tests.h:231:0:
note: this is the location of the previous definition
 #define _FILE_OFFSET_BITS 32
 ^
  CCLD     libdrm.la
gmake[2]: Leaving directory `/usr/share/src/libdrm-2.4.59'
Making all in intel
gmake[2]: Entering directory `/usr/share/src/libdrm-2.4.59/intel'
  CC       intel_bufmgr.lo
In file included from ../include/drm/drm.h:47:0,
                 from intel_bufmgr.c:37:
intel_bufmgr.c: In function 'drm_intel_get_aperture_sizes':
../include/drm/i915_drm.h:265:104: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOR  (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_APERTURE, struct drm_i915_gem_get_aperture)
                                                                                                        ^
../include/drm/i915_drm.h:265:41: note: in expansion of macro 'DRM_IOR'
 #define DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOR  (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_APERTURE, struct drm_i915_gem_get_aperture)
                                         ^
intel_bufmgr.c:342:21: note: in expansion of macro
'DRM_IOCTL_I915_GEM_GET_APERTURE'
  ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_GET_APERTURE, &aperture);
                     ^
  CC       intel_bufmgr_fake.lo
  CC       intel_bufmgr_gem.lo
intel_bufmgr_gem.c: In function 'drm_intel_gem_dump_validation_list':
intel_bufmgr_gem.c:401:4: warning: format '%lx' expects argument of type
'long unsigned int', but argument 9 has type 'uint64_t' [-Wformat=]
    DBG("%2d: %d (%s)@0x%08llx -> "
    ^
In file included from ../include/drm/drm.h:47:0,
                 from ../xf86drm.h:40,
                 from intel_bufmgr_gem.c:41:
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_busy':
../include/drm/i915_drm.h:250:88: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_BUSY  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_BUSY, struct drm_i915_gem_busy)
                                                                                        ^
../include/drm/i915_drm.h:250:34: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_BUSY  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_BUSY, struct drm_i915_gem_busy)
                                  ^
intel_bufmgr_gem.c:599:33: note: in expansion of macro
'DRM_IOCTL_I915_GEM_BUSY'
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_BUSY, &busy);
                                 ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_madvise_internal':
../include/drm/i915_drm.h:267:93: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_MADVISE DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_MADVISE, struct drm_i915_gem_madvise)
                                                                                             ^
../include/drm/i915_drm.h:267:36: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_MADVISE DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_MADVISE, struct drm_i915_gem_madvise)
                                    ^
intel_bufmgr_gem.c:619:27: note: in expansion of macro
'DRM_IOCTL_I915_GEM_MADVISE'
  drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_MADVISE, &madv);
                           ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_alloc_internal':
../include/drm/i915_drm.h:256:91: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_CREATE, struct drm_i915_gem_create)
                                                                                           ^
../include/drm/i915_drm.h:256:35: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_CREATE, struct drm_i915_gem_create)
                                   ^
intel_bufmgr_gem.c:748:11: note: in expansion of macro
'DRM_IOCTL_I915_GEM_CREATE'
           DRM_IOCTL_I915_GEM_CREATE,
           ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_alloc_userptr':
../include/drm/i915_drm.h:277:95: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_USERPTR  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_USERPTR,  struct drm_i915_gem_userptr)
                                                                                               ^
../include/drm/i915_drm.h:277:37: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_USERPTR  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_USERPTR,  struct drm_i915_gem_userptr)
                                     ^
intel_bufmgr_gem.c:897:4: note: in expansion of macro
'DRM_IOCTL_I915_GEM_USERPTR'
    DRM_IOCTL_I915_GEM_USERPTR,
    ^
intel_bufmgr_gem.c: In function 'drm_intel_bo_gem_create_from_name':
../include/drm/i915_drm.h:264:100: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_GET_TILING DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_TILING, struct drm_i915_gem_get_tiling)
                                                                                                    ^
../include/drm/i915_drm.h:264:39: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_GET_TILING DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_TILING, struct drm_i915_gem_get_tiling)
                                       ^
intel_bufmgr_gem.c:1023:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_GET_TILING'
          DRM_IOCTL_I915_GEM_GET_TILING,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_map':
../include/drm/i915_drm.h:259:88: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_MMAP  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_MMAP, struct drm_i915_gem_mmap)
                                                                                        ^
../include/drm/i915_drm.h:259:34: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_MMAP  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_MMAP, struct drm_i915_gem_mmap)
                                  ^
intel_bufmgr_gem.c:1300:11: note: in expansion of macro
'DRM_IOCTL_I915_GEM_MMAP'
           DRM_IOCTL_I915_GEM_MMAP,
           ^
../include/drm/i915_drm.h:261:99: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
                                                                                                   ^
../include/drm/i915_drm.h:261:39: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
                                       ^
intel_bufmgr_gem.c:1327:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_SET_DOMAIN'
          DRM_IOCTL_I915_GEM_SET_DOMAIN,
          ^
intel_bufmgr_gem.c: In function 'map_gtt':
../include/drm/i915_drm.h:260:95: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_MMAP_GTT DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_MMAP_GTT, struct drm_i915_gem_mmap_gtt)
                                                                                               ^
../include/drm/i915_drm.h:260:37: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_MMAP_GTT DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_MMAP_GTT, struct drm_i915_gem_mmap_gtt)
                                     ^
intel_bufmgr_gem.c:1370:11: note: in expansion of macro
'DRM_IOCTL_I915_GEM_MMAP_GTT'
           DRM_IOCTL_I915_GEM_MMAP_GTT,
           ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_map_gtt':
../include/drm/i915_drm.h:261:99: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
                                                                                                   ^
../include/drm/i915_drm.h:261:39: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
                                       ^
intel_bufmgr_gem.c:1438:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_SET_DOMAIN'
          DRM_IOCTL_I915_GEM_SET_DOMAIN,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_unmap':
../include/drm/i915_drm.h:262:97: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_SW_FINISH DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SW_FINISH, struct drm_i915_gem_sw_finish)
                                                                                                 ^
../include/drm/i915_drm.h:262:38: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_SW_FINISH DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SW_FINISH, struct drm_i915_gem_sw_finish)
                                      ^
intel_bufmgr_gem.c:1535:11: note: in expansion of macro
'DRM_IOCTL_I915_GEM_SW_FINISH'
           DRM_IOCTL_I915_GEM_SW_FINISH,
           ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_subdata':
../include/drm/i915_drm.h:258:91: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_PWRITE DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_PWRITE, struct drm_i915_gem_pwrite)
                                                                                           ^
../include/drm/i915_drm.h:258:35: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_PWRITE DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_PWRITE, struct drm_i915_gem_pwrite)
                                   ^
intel_bufmgr_gem.c:1580:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_PWRITE'
          DRM_IOCTL_I915_GEM_PWRITE,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_get_pipe_from_crtc_id':
../include/drm/i915_drm.h:266:113: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GET_PIPE_FROM_CRTC_ID, struct drm_i915_get_pipe_from_crtc_id)
                                                                                                                 ^
../include/drm/i915_drm.h:266:46: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GET_PIPE_FROM_CRTC_ID, struct drm_i915_get_pipe_from_crtc_id)
                                              ^
intel_bufmgr_gem.c:1602:10: note: in expansion of macro
'DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID'
          DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_get_subdata':
../include/drm/i915_drm.h:257:89: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_PREAD, struct drm_i915_gem_pread)
                                                                                         ^
../include/drm/i915_drm.h:257:34: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_PREAD, struct drm_i915_gem_pread)
                                  ^
intel_bufmgr_gem.c:1635:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_PREAD'
          DRM_IOCTL_I915_GEM_PREAD,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_wait':
../include/drm/i915_drm.h:272:88: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_WAIT  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_WAIT, struct drm_i915_gem_wait)
                                                                                        ^
../include/drm/i915_drm.h:272:34: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_WAIT  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_WAIT, struct drm_i915_gem_wait)
                                  ^
intel_bufmgr_gem.c:1700:33: note: in expansion of macro
'DRM_IOCTL_I915_GEM_WAIT'
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_WAIT, &wait);
                                 ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_start_gtt_access':
../include/drm/i915_drm.h:261:99: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
                                                                                                   ^
../include/drm/i915_drm.h:261:39: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
                                       ^
intel_bufmgr_gem.c:1727:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_SET_DOMAIN'
          DRM_IOCTL_I915_GEM_SET_DOMAIN,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_update_buffer_offsets':
intel_bufmgr_gem.c:1998:4: warning: format '%lx' expects argument of type
'long unsigned int', but argument 5 has type 'uint64_t' [-Wformat=]
    DBG("BO %d (%s) migrated: 0x%08lx -> 0x%08llx\n",
    ^
intel_bufmgr_gem.c: In function 'drm_intel_update_buffer_offsets2':
intel_bufmgr_gem.c:2019:4: warning: format '%lx' expects argument of type
'long unsigned int', but argument 5 has type 'uint64_t' [-Wformat=]
    DBG("BO %d (%s) migrated: 0x%08lx -> 0x%08llx\n",
    ^
In file included from ../include/drm/drm.h:47:0,
                 from ../xf86drm.h:40,
                 from intel_bufmgr_gem.c:41:
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_exec':
../include/drm/i915_drm.h:246:98: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE +
DRM_I915_GEM_EXECBUFFER, struct drm_i915_gem_execbuffer)
                                                                                                  ^
../include/drm/i915_drm.h:246:39: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE +
DRM_I915_GEM_EXECBUFFER, struct drm_i915_gem_execbuffer)
                                       ^
intel_bufmgr_gem.c:2353:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_EXECBUFFER'
          DRM_IOCTL_I915_GEM_EXECBUFFER,
          ^
intel_bufmgr_gem.c: In function 'do_exec2':
../include/drm/i915_drm.h:247:100: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_EXECBUFFER2 DRM_IOW(DRM_COMMAND_BASE +
DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2)
                                                                                                    ^
../include/drm/i915_drm.h:247:40: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_EXECBUFFER2 DRM_IOW(DRM_COMMAND_BASE +
DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2)
                                        ^
intel_bufmgr_gem.c:2451:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_EXECBUFFER2'
          DRM_IOCTL_I915_GEM_EXECBUFFER2,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_pin':
../include/drm/i915_drm.h:248:86: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_PIN  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_PIN, struct drm_i915_gem_pin)
                                                                                      ^
../include/drm/i915_drm.h:248:33: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_PIN  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_PIN, struct drm_i915_gem_pin)
                                 ^
intel_bufmgr_gem.c:2525:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_PIN'
          DRM_IOCTL_I915_GEM_PIN,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_unpin':
../include/drm/i915_drm.h:249:88: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE +
DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin)
                                                                                        ^
../include/drm/i915_drm.h:249:34: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE +
DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin)
                                  ^
intel_bufmgr_gem.c:2546:33: note: in expansion of macro
'DRM_IOCTL_I915_GEM_UNPIN'
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_UNPIN, &unpin);
                                 ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_set_tiling_internal':
../include/drm/i915_drm.h:263:100: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_SET_TILING DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_TILING, struct drm_i915_gem_set_tiling)
                                                                                                    ^
../include/drm/i915_drm.h:263:39: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_SET_TILING DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_SET_TILING, struct drm_i915_gem_set_tiling)
                                       ^
intel_bufmgr_gem.c:2579:8: note: in expansion of macro
'DRM_IOCTL_I915_GEM_SET_TILING'
        DRM_IOCTL_I915_GEM_SET_TILING,
        ^
intel_bufmgr_gem.c: In function 'drm_intel_bo_gem_create_from_prime':
../include/drm/i915_drm.h:264:100: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_GET_TILING DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_TILING, struct drm_i915_gem_get_tiling)
                                                                                                    ^
../include/drm/i915_drm.h:264:39: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_GET_TILING DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_TILING, struct drm_i915_gem_get_tiling)
                                       ^
intel_bufmgr_gem.c:2702:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_GET_TILING'
          DRM_IOCTL_I915_GEM_GET_TILING,
          ^
intel_bufmgr_gem.c: In function 'get_pci_device_id':
intel_bufmgr_gem.c:3097:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
In file included from ../include/drm/drm.h:47:0,
                 from ../xf86drm.h:40,
                 from intel_bufmgr_gem.c:41:
intel_bufmgr_gem.c: In function 'drm_intel_gem_context_create':
../include/drm/i915_drm.h:273:108: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_CONTEXT_CREATE, struct drm_i915_gem_context_create)
                                                                                                            ^
../include/drm/i915_drm.h:273:43: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GEM_CONTEXT_CREATE, struct drm_i915_gem_context_create)
                                           ^
intel_bufmgr_gem.c:3208:33: note: in expansion of macro
'DRM_IOCTL_I915_GEM_CONTEXT_CREATE'
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CONTEXT_CREATE, &create);
                                 ^
intel_bufmgr_gem.c: In function 'drm_intel_gem_context_destroy':
../include/drm/i915_drm.h:274:109: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_CONTEXT_DESTROY, struct drm_i915_gem_context_destroy)
                                                                                                             ^
../include/drm/i915_drm.h:274:44: note: in expansion of macro 'DRM_IOW'
 #define DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOW (DRM_COMMAND_BASE +
DRM_I915_GEM_CONTEXT_DESTROY, struct drm_i915_gem_context_destroy)
                                            ^
intel_bufmgr_gem.c:3236:33: note: in expansion of macro
'DRM_IOCTL_I915_GEM_CONTEXT_DESTROY'
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CONTEXT_DESTROY,
                                 ^
intel_bufmgr_gem.c: In function 'drm_intel_get_reset_stats':
../include/drm/i915_drm.h:276:103: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GET_RESET_STATS  DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GET_RESET_STATS, struct drm_i915_reset_stats)
                                                                                                       ^
../include/drm/i915_drm.h:276:41: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GET_RESET_STATS  DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_GET_RESET_STATS, struct drm_i915_reset_stats)
                                         ^
intel_bufmgr_gem.c:3263:10: note: in expansion of macro
'DRM_IOCTL_I915_GET_RESET_STATS'
          DRM_IOCTL_I915_GET_RESET_STATS,
          ^
intel_bufmgr_gem.c: In function 'drm_intel_reg_read':
../include/drm/i915_drm.h:275:90: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_REG_READ   DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_REG_READ, struct drm_i915_reg_read)
                                                                                          ^
../include/drm/i915_drm.h:275:35: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_REG_READ   DRM_IOWR (DRM_COMMAND_BASE +
DRM_I915_REG_READ, struct drm_i915_reg_read)
                                   ^
intel_bufmgr_gem.c:3291:33: note: in expansion of macro
'DRM_IOCTL_I915_REG_READ'
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_REG_READ, &reg_read);
                                 ^
intel_bufmgr_gem.c: In function 'has_userptr':
../include/drm/i915_drm.h:277:95: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_USERPTR  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_USERPTR,  struct drm_i915_gem_userptr)
                                                                                               ^
../include/drm/i915_drm.h:277:37: note: in expansion of macro 'DRM_IOWR'
 #define DRM_IOCTL_I915_GEM_USERPTR  DRM_IOWR(DRM_COMMAND_BASE +
DRM_I915_GEM_USERPTR,  struct drm_i915_gem_userptr)
                                     ^
intel_bufmgr_gem.c:3398:33: note: in expansion of macro
'DRM_IOCTL_I915_GEM_USERPTR'
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr);
                                 ^
intel_bufmgr_gem.c: In function 'drm_intel_bufmgr_gem_init':
../include/drm/i915_drm.h:265:104: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
 #define DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOR  (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_APERTURE, struct drm_i915_gem_get_aperture)
                                                                                                        ^
../include/drm/i915_drm.h:265:41: note: in expansion of macro 'DRM_IOR'
 #define DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOR  (DRM_COMMAND_BASE +
DRM_I915_GEM_GET_APERTURE, struct drm_i915_gem_get_aperture)
                                         ^
intel_bufmgr_gem.c:3455:10: note: in expansion of macro
'DRM_IOCTL_I915_GEM_GET_APERTURE'
          DRM_IOCTL_I915_GEM_GET_APERTURE,
          ^
intel_bufmgr_gem.c:3507:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
intel_bufmgr_gem.c:3512:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
intel_bufmgr_gem.c:3516:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
intel_bufmgr_gem.c:3520:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
intel_bufmgr_gem.c:3528:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
intel_bufmgr_gem.c:3532:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
intel_bufmgr_gem.c:3543:2: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
  ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
  ^
intel_bufmgr_gem.c:3549:3: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
   ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
   ^
  CC       intel_decode.lo
  CC       mm.lo
  CCLD     libdrm_intel.la
  CC       test_decode.o
test_decode.c: In function ‘compare_batch’:
test_decode.c:94:9: warning: unused variable ‘size’ [-Wunused-variable]
  size_t size, ref_size, batch_size;
         ^
  CCLD     test_decode
ld: warning: file ../.libs/libdrm.so: linked to
/usr/src/libdrm-2.4.59/.libs/libdrm.so: attempted multiple inclusion of
file
Undefined			first referenced
 symbol  			    in file
_IOC                                /usr/src/libdrm-2.4.59/.libs/libdrm.so
ld: fatal: symbol referencing errors. No output written to .libs/test_decode
collect2: error: ld returned 1 exit status
gmake[2]: *** [test_decode] Error 1
gmake[2]: Leaving directory `/usr/share/src/libdrm-2.4.59/intel'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/share/src/libdrm-2.4.59'
gmake: *** [all] Error 2

[felt sad]

Expected
can run
./configure
gmake
gmake install
[feel accomplished]

This (https://code.google.com/p/tesseract-ocr/issues/detail?id=582) seems
like it might help but I'm not sure what LIBS to include.

Thank you,

Damon Zwolinski



------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
--
_______________________________________________
Dri-devel mailing list
Dri-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


More information about the dri-devel mailing list