Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645946 - x11-apps/intel-gpu-tools-1.20 - .../work/intel-gpu-tools-1.20/lib/igt_x86.c:96:10: error: redefinition of 'igt_x86_features'
Summary: x11-apps/intel-gpu-tools-1.20 - .../work/intel-gpu-tools-1.20/lib/igt_x86.c:9...
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-28 11:21 UTC by tka
Modified: 2018-06-13 22:19 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,44.86 KB, text/plain)
2018-01-28 11:21 UTC, tka
Details
Fix compilation error "redefinition of 'igt_x86_features'" =x11-apps/intel-gpu-tools-1.20 (0001-lib-Fix-compilation-on-non-x86.patch,2.07 KB, patch)
2018-03-21 07:07 UTC, Viktor Yu. Kovalskii
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2018-01-28 11:21:51 UTC
Created attachment 516978 [details]
build.log

libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/lib -I.. -I/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20 -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 -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -I/usr/include/libdrm -I/usr/include/libdrm -g3 -Og -Wno-maybe-uninitialized -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DIGT_SRCDIR=\"/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/tests\" -DIGT_DATADIR=\"/usr/share/intel-gpu-tools\" -D_GNU_SOURCE -DIGT_LOG_DOMAIN=\"igt-x86\" -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.20/work/intel-gpu-tools-1.20/lib/igt_x86.c  -fPIC -DPIC -o .libs/igt_x86.o
/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/lib/igt_x86.c:96:10: error: redefinition of 'igt_x86_features'
 unsigned igt_x86_features(void)
          ^~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/lib/igt_x86.c:38:0:
/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/lib/igt_x86.h:47:24: note: previous definition of 'igt_x86_features' was here
 static inline unsigned igt_x86_features(void)
                        ^~~~~~~~~~~~~~~~
/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/lib/igt_x86.c:148:7: error: redefinition of 'igt_x86_features_to_string'
 char *igt_x86_features_to_string(unsigned features, char *line)
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/lib/igt_x86.c:38:0:
/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20/lib/igt_x86.h:51:21: note: previous definition of 'igt_x86_features_to_string' was here
 static inline char *igt_x86_features_to_string(unsigned features, char *line)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:718: igt_x86.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20_build/lib'
make[3]: *** [Makefile:735: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20_build/lib'
make[2]: *** [Makefile:573: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20_build/lib'
make[1]: *** [Makefile:533: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-apps/intel-gpu-tools-1.20/work/intel-gpu-tools-1.20_build'
make: *** [Makefile:465: all] Error 2
 * ERROR: x11-apps/intel-gpu-tools-1.20::gentoo failed (compile phase):
 *   emake failed


# emerge --info '=x11-apps/intel-gpu-tools-1.20::gentoo'
Portage 2.3.20 (python 3.5.4-final-0, hardened/linux/x86, gcc-7.2.0, glibc-2.26-r5, 4.14.15 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.15-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.4.1
KiB Mem:     2036784 total,    310376 free
KiB Swap:   16777212 total,  16738556 free
Timestamp of repository gentoo: Sun, 28 Jan 2018 10:30:01 +0000
Head commit of repository gentoo: a4a4dfe71cde92b2eaa38c774d19eeb002d00236
sh bash 4.4_p12-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r4::gentoo, 7.2.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
Repositories:

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

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/apache2-php7.2/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.2/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 cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox 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"
LINGUAS=""
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 acl acpi alsa apache2 berkdb bzip2 cairo caps cdda cddb cdparanoia cli 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 pie png policykit ppds readline sasl sdl seccomp sse sse2 ssl ssp 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" 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 isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq 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-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


 # emerge -pqv '=x11-apps/intel-gpu-tools-1.20::gentoo'
[ebuild     U ] x11-apps/intel-gpu-tools-1.20 [1.15] USE="X%* alsa%* udev%* xrandr%* xv%* -glib% -gsl% -sound% -test-programs -unwind -valgrind%" VIDEO_CARDS="intel%* -amdgpu% -nouveau"
Comment 1 Viktor Yu. Kovalskii 2018-03-21 07:07:34 UTC
Created attachment 524636 [details, diff]
Fix compilation error "redefinition of 'igt_x86_features'" =x11-apps/intel-gpu-tools-1.20

I have the similar error when building  =x11-apps/intel-gpu-tools-1.20

This patch helps me to compile: 

https://gitlab.com/SkyBase-Mirror/meta-intel/commit/be9a2e5ae2105000b7ce92a30ed512b676280252
Comment 2 Matt Turner gentoo-dev 2018-06-13 22:19:27 UTC
Fixed in v1.22. v1.20 now removed from the tree.