Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548318 - x11-apps/intel-gpu-tools-1.10 - lib/intel_batchbuffer.c:551:20: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
Summary: x11-apps/intel-gpu-tools-1.10 - lib/intel_batchbuffer.c:551:20: error: cast f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: http://cgit.freedesktop.org/xorg/app/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-01 10:41 UTC by tka
Modified: 2016-06-21 18:49 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,33.29 KB, text/x-log)
2015-05-01 10:44 UTC, tka
Details
Relevant patch from upstream (intel_batchbuffer.patch,1.39 KB, patch)
2015-05-01 14:21 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2015-05-01 10:41:31 UTC
x11-apps/intel-gpu-tools-1.10 fails to compile on my x86 system (no problem on amd64) because of a cast from a pointer to an integer of a different size:


libtool: compile:  i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10/lib -I.. -I/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10 -I/usr/include/libdrm -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 -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -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 -DIGT_DATADIR=\"/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10/tests\" -DIGT_LOG_DOMAIN=\"intel-batchbuffer\" -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -march=native -mtune=native -O2 -fomit-frame-pointer -pipe -c /var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10/lib/intel_batchbuffer.c  -fPIC -DPIC -o .libs/intel_batchbuffer.o
/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10/lib/intel_batchbuffer.c: In function 'fill_object':
/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10/lib/intel_batchbuffer.c:551:20: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  obj->relocs_ptr = (uint64_t)relocs;
                    ^
/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10/lib/intel_batchbuffer.c: In function 'exec_blit':
/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10/lib/intel_batchbuffer.c:560:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  exec.buffers_ptr = (uint64_t)objs;
                     ^
cc1: some warnings being treated as errors
Makefile:575: recipe for target 'intel_batchbuffer.lo' failed
make[4]: *** [intel_batchbuffer.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10_build/lib'
Makefile:590: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10_build/lib'
Makefile:474: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10_build/lib'
Makefile:494: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10_build'
Makefile:425: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: x11-apps/intel-gpu-tools-1.10::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-apps/intel-gpu-tools-1.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-apps/intel-gpu-tools-1.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10_build'
 * S: '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/work/intel-gpu-tools-1.10'

>>> Failed to emerge x11-apps/intel-gpu-tools-1.10, Log file:

>>>  '/var/tmp/portage/x11-apps/intel-gpu-tools-1.10/temp/build.log'


# emerge --info =x11-apps/intel-gpu-tools-1.10
Portage 2.2.18 (python 3.3.5-final-0, hardened/linux/x86, gcc-4.9.2, glibc-2.20-r2, 4.0.1 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.1-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.2
KiB Mem:     2038620 total,    966896 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 01 May 2015 10:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.14::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.7.4::gentoo, 4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 acl acpi alsa apache2 berkdb bzip2 cairo caps cdda cddb cdparanoia cli cracklib crypt cxx dbus dri dts dvd fam ffmpeg fftw flac fontconfig gd gdbm gif gimp gmp gnutls gtk hardened iconv icu idn ipv6 java jpeg lame lcms libnotify mad matroska mmap mmx modules mp3 mpeg ncurses nptl ogg opengl openmp pam pcre php pic png policykit ppds readline sasl sdl session sse sse2 ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower vorbis x264 x86 xattr xcb xml xtpax xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="i915 intel" XFCE_PLUGINS="logout menu trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 tka 2015-05-01 10:44:37 UTC
Created attachment 402382 [details]
build.log

# emerge -pqv =x11-apps/intel-gpu-tools-1.10
[ebuild     U ] x11-apps/intel-gpu-tools-1.10 [1.7] USE="-python -test-programs%" PYTHON_SINGLE_TARGET="python3_3 -python3_4" PYTHON_TARGETS="python3_3 -python3_4" VIDEO_CARDS="-nouveau"
Comment 2 Felix Janda 2015-05-01 14:21:51 UTC
Created attachment 402394 [details, diff]
Relevant patch from upstream

It is already fixed upstream.

Try out this patch by dropping it into /etc/portage/patches/x11-intel-gpu-tools
(making sure that it has the .patch extension).
Comment 3 Felix Janda 2015-05-01 14:23:06 UTC
Sorry, the path is /etc/portage/patches/x11-apps/intel-gpu-tools/
Comment 4 tka 2015-05-02 22:02:38 UTC
The build was successful with the patch.
Comment 5 Viktor Yu. Kovalskii 2015-07-07 14:58:55 UTC
intel-gpu-tools-1.11 was released at 2015-06-11[1] with fix for this bug. So please version bump.

-------------------
[1] http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/commit/?id=b88212c036fbd909d70b8388fc8fffb1fac75e5b
Comment 6 Manuel Rüger (RETIRED) gentoo-dev 2015-07-07 17:46:54 UTC
Bumped it to 1.11. Let's keep this open until 1.11 is stable.
Comment 7 SpanKY gentoo-dev 2016-06-21 18:49:42 UTC
1.12 is stable