Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707934 - x11-libs/libva-intel-driver-2.4.0_pre1: fails to build with -fno-common or gcc-10
Summary: x11-libs/libva-intel-driver-2.4.0_pre1: fails to build with -fno-common or gc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
: 707936 722866 (view as bug list)
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-02 15:03 UTC by lekto
Modified: 2021-01-05 21:59 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,108.84 KB, text/plain)
2020-02-02 15:03 UTC, lekto
Details
Partch for gcc10 (b39e160d3974613328c570f46ecbcbcb70a5101b.patch,951 bytes, patch)
2020-06-03 17:37 UTC, amedeos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2020-02-02 15:03:29 UTC
Created attachment 611056 [details]
build.log

/usr/lib/gcc/x86_64-pc-linux-gnu/10.0.0-pre9999/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libi965_drv_video.a(libi965_drv_video_la-gen9_hevc_encoder.o):(.rodata+0x2a20): multiple definition of `gen9_hevc_encoder_kernels'; ./.libs/libi965_drv_video.a(libi965_drv_video_la-gen9_hevc_enc_kernels_binary.o):(.rodata+0x0): first defined here
collect2: error: ld returned 1 exit status
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-02-02 15:08:55 UTC
*** Bug 707936 has been marked as a duplicate of this bug. ***
Comment 2 Gabriel 2020-05-13 03:54:22 UTC
I have the same problem. I was running gentoo testinting on my laptop (intel Sandy Bridge), when I realized the high usage of cpu when watching a video on youtube, so I tried to install the libva-intel-driver package, but there are always errors when trying to install.

System uname: Linux-5.6.11-x86_64-Intel-R-_Core-TM-_i5-2450M_CPU_@_2.50GHz-with-gentoo-2.7
KiB Mem:     8067200 total,   1227840 free
KiB Swap:     307196 total,    307196 free
Timestamp of repository gentoo: Wed, 13 May 2020 02:00:01 +0000
Head commit of repository gentoo: dc3735aefa00d489bbc2a4f4fd7eda0ccbe35a06
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.17.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

flatpak-overlay
    location: /var/lib/layman/flatpak-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=native -O2 -pipe"
CHOST="x86_64-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"
CXXFLAGS=" -march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS=" -march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=" -march=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ http://gentoo.c3sl.ufpr.br/ rsync://gentoo.c3sl.ufpr.br/gentoo/"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
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 acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret libtirpc luks1_default mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vaapi vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="karbon sheets words" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pt-BR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 radeon r600" 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Brian Evans (RETIRED) gentoo-dev 2020-05-13 16:44:32 UTC
*** Bug 722866 has been marked as a duplicate of this bug. ***
Comment 4 Alexander Wessel 2020-05-19 21:49:53 UTC
Same here. This will become more of a problem since gcc-10.1.0 was officially released on May 7th, 2020, and it's ~amd64 now.

Also note that 2.4.0 (non-pre1) was released upstream, so a version bump would be in order as well. I've opened a request for a (pre-)release upstream to incorporate their gcc-10 build fixes (#503 and #509) as #510 (see https://github.com/intel/intel-vaapi-driver/issues/510).
Comment 5 Alexander Wessel 2020-05-20 22:00:57 UTC
I've just confirmed that a live build against upstreams current master/HEAD builds just fine. Therefore once a new release out, we can just version bump the ebuild and close this issue.
Comment 6 Gabriel 2020-06-01 23:55:20 UTC
A new version of intel-vaapi-driver (2.4.1) has been released on the project's github (https://github.com/intel/intel-vaapi-driver/releases).
Comment 7 amedeos 2020-06-03 17:37:00 UTC
Created attachment 643292 [details, diff]
Partch for gcc10

Applied the attached patch kept from https://github.com/intel/intel-vaapi-driver/commit/b39e160d3974613328c570f46ecbcbcb70a5101b and compiles fine with gcc10
Comment 8 Alexander Wessel 2020-06-06 03:22:10 UTC
Apparently a tag was made for 2.4.1 upstream, but no official release yet, it appears.
Comment 9 Gabriel 2020-06-08 19:10:04 UTC
Now version 2.4.1 has been released (https://github.com/intel/intel-vaapi-driver/releases/tag/2.4.1). I compiled on my machine and everything worked out.
Comment 10 Gabriel 2020-06-23 05:21:42 UTC
(In reply to Gabriel from comment #9)
> Now version 2.4.1 has been released
> (https://github.com/intel/intel-vaapi-driver/releases/tag/2.4.1). I compiled
> on my machine and everything worked out.

Has anyone created a new ebuild from this new version? If so, I think you can close this issue now. I'm testing and so far I haven't seen any errors
Comment 11 Reva Denis 2020-06-28 08:07:08 UTC
https://github.com/gentoo/gentoo/pull/16465
Comment 12 Larry the Git Cow gentoo-dev 2020-07-09 21:15:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3720171e9b464542410cfc071bc174d9b32f3b6d

commit 3720171e9b464542410cfc071bc174d9b32f3b6d
Author:     Denis Reva <denis7774@gmail.com>
AuthorDate: 2020-06-28 08:04:06 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-07-09 21:15:14 +0000

    x11-libs/libva-intel-driver: new version 2.4.1
    
    Closes: https://github.com/gentoo/gentoo/pull/16465
    Closes: https://bugs.gentoo.org/707934
    Signed-off-by: Denis Reva <denis7774@gmail.com>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-libs/libva-intel-driver/Manifest               |  1 +
 .../libva-intel-driver-2.4.1.ebuild                | 54 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)
Comment 13 Larry the Git Cow gentoo-dev 2021-01-05 21:59:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92e559d95a7bad751d0f6cd1af595e4bd850422a

commit 92e559d95a7bad751d0f6cd1af595e4bd850422a
Author:     Andreas K. Huettel <dilfridge@gentoo.org>
AuthorDate: 2021-01-05 21:42:34 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: 2021-01-05 21:58:47 +0000

    x11-libs/libva-intel-driver: Remove old
    
    Bug: https://bugs.gentoo.org/707934
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 x11-libs/libva-intel-driver/Manifest               |  2 -
 .../libva-intel-driver-2.3.0.ebuild                | 53 ---------------------
 .../libva-intel-driver-2.4.0_pre1.ebuild           | 54 ----------------------
 3 files changed, 109 deletions(-)