Created attachment 530376 [details] build log libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna -I../.. -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/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/render_program -fvisibility=hidden -I/usr/include/xorg -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -Wno-cast-qual -Wno-redundant-decls -Wno-maybe-uninitialized -O2 -pipe -fomit-frame-pointer -march=atom -mtune=atom -c /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen5_render.c -fPIC -DPIC -o .libs/gen5_render.o In file included from /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c:34: /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c: In function ‘emit_vertex’: /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/sna_render_inline.h:40:26: error: inlining failed in call to always_inline ‘vertex_emit_2s’: target specific option mismatch static force_inline void vertex_emit_2s(struct sna *sna, int16_t x, int16_t y) ^~~~~~~~~~~~~~ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c:308:25: note: called from here #define OUT_VERTEX(x,y) vertex_emit_2s(sna, x,y) /* XXX assert(!too_large(x, y)); */ ^~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c:360:2: note: in expansion of macro ‘OUT_VERTEX’ OUT_VERTEX(dstX, dstY); ^~~~~~~~~~ make[4]: *** [Makefile:694: gen4_vertex.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/xf86-video-intel-2.99.917_p20180214_build/src/sna' make[3]: *** [Makefile:709: all-recursive] Error 1 make[3]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/xf86-video-intel-2.99.917_p20180214_build/src/sna' make[2]: *** [Makefile:622: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/xf86-video-intel-2.99.917_p20180214_build/src' make[1]: *** [Makefile:486: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/xf86-video-intel-2.99.917_p20180214_build' make: *** [Makefile:418: all] Error 2 * ERROR: x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo'`, * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo'`. * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/temp/environment'. * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/xf86-video-intel-2.99.917_p20180214_build' * S: '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214/work/75795523003798d789d417e82aaa81c7ea1ed616' >>> Failed to emerge x11-drivers/xf86-video-intel-2.99.917_p20180214, Log file:
# emerge --info '=x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo' Portage 2.3.36 (python 3.5.5-final-0, default/linux/x86/17.0/desktop, gcc-8.1.0, glibc-2.26-r7, 4.16.7-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-4.16.7-gentoo-i686-Intel-R-_Celeron-R-_2957U_@_1.40GHz-with-gentoo-2.4.1 KiB Mem: 3960444 total, 3260284 free KiB Swap: 4094972 total, 3977024 free Timestamp of repository gentoo: Mon, 07 May 2018 06:00:01 +0000 sh bash 4.4_p19 ld GNU gold (Gentoo 2.30 p2 2.30.0) 1.15 distcc 3.2rc1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.4_p19::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.14-r2::gentoo, 3.5.5-r1::gentoo dev-util/cmake: 3.11.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.35.5::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r2::gentoo sys-devel/gcc: 8.1.0-r2::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r3::gentoo sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: git://anongit.gentoo.org/repo/gentoo.git priority: -1000 local location: /data/nas/xavier/portage/n0n4m3/usr/local/portage/overlay masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="@FREE freedist as-is" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=atom -mtune=atom" 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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=atom -mtune=atom" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="fr_BE.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed" LINGUAS="fr fr_FR fr_BE nl nl_BE nl_NL" MAKEOPTS="-j5 -l3" PKGDIR="/var/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 aac acpi alsa branding bzip2 cairo cli crypt cups cxx dbus dri dts emboss encode exif fam flac gif glamor gpm gtk iconv jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg ncurses nls nptl ocr ogg opengl openmp osc pam pango pcre pdf png ppds qt5 readline sane scanner seccomp sndfile snmp spell sqlite sse sse2 ssl ssse3 startup-notification svg symlink tcpd tiff truetype udev unicode usb vorbis wmf wxwidgets x264 x86 xattr xcb xinerama xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel usb-audio virmidi" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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="keyboard mouse synaptics libinput" KERNEL="linux" L10N="fr nl" 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" QEMU_SOFTMMU_TARGETS="arm i386" QEMU_USER_TARGETS="arm i386" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel" 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, ENV_UNSET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo was built with the following: USE="dri sna udev -debug -dri3 -tools -uxa -xvmc" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,lazy"
Have you checked if it's fixed in upstream git? That would be useful information.
(In reply to Matt Turner from comment #2) > Have you checked if it's fixed in upstream git? That would be useful > information. I don't see anything in the latest logs [1] I only see a irc trace saying it's a bug related to GCC ("smells to GCC 8 bug") [2] Xavier ---- [1] https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/log/ [2]https://dri.freedesktop.org/~cbrill/dri-log/?channel=intel-gfx&highlight_names=&date=2018-01-20
You could determine the result directly by attempting to emerge =xf86-video-intel-9999 :) It's exactly cases like this that I keep git ebuilds in tree.
(In reply to Matt Turner from comment #4) > You could determine the result directly by attempting to emerge > =xf86-video-intel-9999 :) > > It's exactly cases like this that I keep git ebuilds in tree. Sorry ;) Same error: -intel-9999/src/sna/gen4_vertex.c -fPIC -DPIC -o .libs/gen4_vertex.o In file included from /var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999/src/sna/gen4_vertex.c:34: /var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999/src/sna/gen4_vertex.c: In function ‘emit_vertex’: /var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999/src/sna/sna_render_inline.h:40:26: error: inlining failed in call to always_inline ‘vertex_emit_2s’: target specific option mismatch static force_inline void vertex_emit_2s(struct sna *sna, int16_t x, int16_t y) ^~~~~~~~~~~~~~ /var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999/src/sna/gen4_vertex.c:308:25: note: called from here #define OUT_VERTEX(x,y) vertex_emit_2s(sna, x,y) /* XXX assert(!too_large(x, y)); */ ^~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999/src/sna/gen4_vertex.c:360:2: note: in expansion of macro ‘OUT_VERTEX’ OUT_VERTEX(dstX, dstY); ^~~~~~~~~~ make[4]: *** [Makefile:694: gen4_vertex.lo] Error 1 make[4]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999_build/src/sna' make[3]: *** [Makefile:709: all-recursive] Error 1 make[3]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999_build/src/sna' make[2]: *** [Makefile:622: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999_build/src' make[1]: *** [Makefile:486: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-9999/work/xf86-video-intel-9999_build' make: *** [Makefile:418: all] Error 2 * ERROR: x11-drivers/xf86-video-intel-9999::gentoo failed (compile phase): * emake failed
I don't have any problems with xf86-video-intel, build fine and works fine. [ebuild R ] x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo USE="dri dri3 sna udev -debug -tools -uxa -xvmc" 0 KiB
(In reply to lekto from comment #6) > I don't have any problems with xf86-video-intel, build fine and works fine. > > [ebuild R ] x11-drivers/xf86-video-intel-2.99.917_p20180214::gentoo > USE="dri dri3 sna udev -debug -tools -uxa -xvmc" 0 KiB same here using 8.1.0-r3 from musl overlay
Created attachment 534886 [details] build.log lto Fails with lto, builds with nolto
Created attachment 534888 [details] nolfto suceeds
I can build it by disabling sna (and enabling uxa)
Maybe this Fedora patch could help on this: https://src.fedoraproject.org/rpms/xorg-x11-drv-intel/raw/master/f/0001-Fix-build-on-F28-and-later.patch
(In reply to Pacho Ramos from comment #11) > Maybe this Fedora patch could help on this: > https://src.fedoraproject.org/rpms/xorg-x11-drv-intel/raw/master/f/0001-Fix- > build-on-F28-and-later.patch Hi, This patch doesn't help: libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna -I../.. -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/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/render_program -fvisibility=hidden -I/usr/include/xorg -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm -Wno-cast-qual -Wno-redundant-decls -Wno-maybe-uninitialized -O2 -pipe -fomit-frame-pointer -march=atom -mtune=atom -c /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c -fPIC -DPIC -o .libs/gen4_vertex.o In file included from /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c:34: /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c: In function ‘emit_vertex’: /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/sna_render_inline.h:40:26: error: inlining failed in call to always_inline ‘vertex_emit_2s’: target specific option mismatch static force_inline void vertex_emit_2s(struct sna *sna, int16_t x, int16_t y) ^~~~~~~~~~~~~~ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c:308:25: note: called from here #define OUT_VERTEX(x,y) vertex_emit_2s(sna, x,y) /* XXX assert(!too_large(x, y)); */ ^~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/75795523003798d789d417e82aaa81c7ea1ed616/src/sna/gen4_vertex.c:360:2: note: in expansion of macro ‘OUT_VERTEX’ OUT_VERTEX(dstX, dstY); ^~~~~~~~~~ make[4]: *** [Makefile:694: gen4_vertex.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/xf86-video-intel-2.99.917_p20180214_build/src/sna' make[3]: *** [Makefile:709: all-recursive] Error 1 make[3]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/xf86-video-intel-2.99.917_p20180214_build/src/sna' make[2]: *** [Makefile:622: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/xf86-video-intel-2.99.917_p20180214_build/src' make[1]: *** [Makefile:486: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.917_p20180214-r1/work/xf86-video-intel-2.99.917_p20180214_build' make: *** [Makefile:418: all] Error 2 * ERROR: x11-drivers/xf86-video-intel-2.99.917_p20180214-r1::gentoo failed (compile phase): * emake failed
Maybe you are hitting this problem with i686 systems https://src.fedoraproject.org/rpms/xorg-x11-drv-intel/raw/master/f/0001-Fix-build-on-i686.patch
(In reply to Pacho Ramos from comment #13) > Maybe you are hitting this problem with i686 systems > https://src.fedoraproject.org/rpms/xorg-x11-drv-intel/raw/master/f/0001-Fix- > build-on-i686.patch Hi! This patch fixes my problem! Thank you for finding it!
(In reply to Pacho Ramos from comment #13) > Maybe you are hitting this problem with i686 systems > https://src.fedoraproject.org/rpms/xorg-x11-drv-intel/raw/master/f/0001-Fix- > build-on-i686.patch Thx! Fixed build on my x86_64 system.
(In reply to Pacho Ramos from comment #13) > Maybe you are hitting this problem with i686 systems > https://src.fedoraproject.org/rpms/xorg-x11-drv-intel/raw/master/f/0001-Fix- > build-on-i686.patch I've mailed this patch upstream.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8f5cedfaeeef0bbbea83c6497876b9fb0bf33c7 commit d8f5cedfaeeef0bbbea83c6497876b9fb0bf33c7 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2019-02-22 00:28:13 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2019-02-22 01:54:17 +0000 x11-drivers/xf86-video-intel: Fix build on x86 Closes: https://bugs.gentoo.org/655206 Signed-off-by: Matt Turner <mattst88@gentoo.org> ...ntel-2.99.917_p20180214-Fix-build-on-i686.patch | 47 +++++++++++ .../xf86-video-intel-2.99.917_p20180214-r2.ebuild | 96 ++++++++++++++++++++++ 2 files changed, 143 insertions(+)