Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723006 - media-video/vlc-3.0.10-r1[omxil] fails to build with -fno-common/GCC 10.1
Summary: media-video/vlc-3.0.10-r1[omxil] fails to build with -fno-common/GCC 10.1
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: media-video herd
URL: https://trac.videolan.org/vlc/ticket/...
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-05-14 12:41 UTC by Mohammad S. Babaei
Modified: 2020-05-15 14:35 UTC (History)
2 users (show)

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


Attachments
build log (build.log.tar.xz,76.96 KB, application/x-xz)
2020-05-14 12:44 UTC, Mohammad S. Babaei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mohammad S. Babaei 2020-05-14 12:41:51 UTC
The build stops with the error: multiple definition of `pf_get_hal_format'; codec/omxil/.libs/libomxil_plugin_la-utils.o:(.bss+0x0): first defined here

libtool: link:  x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  codec/omxil/.libs/libomxil_plugin_la-utils.o packetizer/.libs/libomxil_plugin_la-h264_nal.o packetizer/.libs/libomxil_plugin_la-hevc_nal.o codec/omxil/.libs/libomxil_plugin_la-qcom.o codec/omxil/.libs/libomxil_plugin_la-omxil.o codec/omxil/.libs/libomxil_plugin_la-omxil_core.o  -Wl,--whole-archive ./.libs/libchroma_copy.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/var/tmp/portage/media-video/vlc-3.0.10-r1/work/vlc-3.0.10/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lidn -lpthread -lm -ldbus-1 -Wl,--as-needed -ldl  -march=native -O2 -Wl,-O1 -Wl,--sort-common -Wl,-z -Wl,defs   -Wl,-soname -Wl,libomxil_plugin.so -Wl,-version-script -Wl,.libs/libomxil_plugin.ver -o .libs/libomxil_plugin.so
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:(.bss+0x0): multiple definition of `pf_get_hal_format'; codec/omxil/.libs/libomxil_plugin_la-utils.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:(.bss+0x8): multiple definition of `pf_get_graphic_buffer_usage'; codec/omxil/.libs/libomxil_plugin_la-utils.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil.o:(.bss+0x10): multiple definition of `pf_enable_graphic_buffers'; codec/omxil/.libs/libomxil_plugin_la-utils.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:(.bss+0x30): multiple definition of `pf_get_hal_format'; codec/omxil/.libs/libomxil_plugin_la-utils.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:(.bss+0x38): multiple definition of `pf_get_graphic_buffer_usage'; codec/omxil/.libs/libomxil_plugin_la-utils.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: codec/omxil/.libs/libomxil_plugin_la-omxil_core.o:(.bss+0x40): multiple definition of `pf_enable_graphic_buffers'; codec/omxil/.libs/libomxil_plugin_la-utils.o:(.bss+0x10): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:16885: libomxil_plugin.la] Error 1
make[4]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.10-r1/work/vlc-3.0.10/modules'
make[3]: *** [Makefile:27632: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.10-r1/work/vlc-3.0.10/modules'
make[2]: *** [Makefile:12591: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.10-r1/work/vlc-3.0.10/modules'
make[1]: *** [Makefile:1560: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/vlc-3.0.10-r1/work/vlc-3.0.10'
make: *** [Makefile:1445: all] Error 2
 * ERROR: media-video/vlc-3.0.10-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-video/vlc-3.0.10-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/vlc-3.0.10-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/vlc-3.0.10-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-3.0.10-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/vlc-3.0.10-r1/work/vlc-3.0.10'
 * S: '/var/tmp/portage/media-video/vlc-3.0.10-r1/work/vlc-3.0.10'


Reproducible: Always

Steps to Reproduce:
1. emerge -tv media-video/vlc
2.
3.
Actual Results:  
The build fails

Expected Results:  
The build has to success

$ emerge --info

Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-10.1.0, glibc-2.31-r3, 5.4.40 x86_64)
=================================================================
System uname: Linux-5.4.40-x86_64-Intel-R-_Core-TM-_i7-6820HK_CPU_@_2.70GHz-with-gentoo-2.7
KiB Mem:    65803504 total,  27544560 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 13 May 2020 22:44:17 +0000
Head commit of repository gentoo: 62ad8358b5ebd98eb40be0e8ae80715660e7d3f5

sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
ccache version 3.7.9 [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 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: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: 10

NuLL3rr0r
    location: /var/lib/layman/NuLL3rr0r
    masters: gentoo
    priority: 50

local
    location: /usr/local/portage
    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/lib64/libreoffice/program/sofficerc /usr/share/config /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/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8 --keep-going --with-bdeps=y"
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 buildpkg 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="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_US en fa_IR fa nl_NL nl"
MAKEOPTS="-j9 -l8"
PKGDIR="/var/cache/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 acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="joystick keyboard libinput mouse" KERNEL="linux" L10N="en-US en fa-IR fa nl-NL nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LLVM_TARGETS="BPF NVPTX X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mohammad S. Babaei 2020-05-14 12:44:34 UTC
Created attachment 638918 [details]
build log
Comment 2 Mohammad S. Babaei 2020-05-14 12:46:58 UTC
$ emerge -atv media-video/vlc

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild     U  ] media-video/vlc-3.0.10-r1:0/5-9::gentoo [3.0.8:0/5-9::gentoo] USE="X a52 alsa aom archive aribsub bidi bluray cddb dbus dc1394 dts dvbpsi dvd encode faad fdk ffmpeg flac fluidsynth fontconfig gcrypt gme gnome-keyring gstreamer ieee1394 jack jpeg kate libass libcaca libnotify libsamplerate libtar libtiger linsys lirc live lua mad matroska modplug mp3 mpeg mtp musepack nfs ogg omxil opus png projectm pulseaudio qt5 run-as-root samba sdl-image sftp shout sid skins soxr speex srt ssl svg taglib test theora tremor truetype twolame udev upnp v4l vaapi vdpau vnc vorbis vpx wayland x264 x265 xml zeroconf zvbi -chromaprint -chromecast -dav1d -debug (-directx) -macosx-notifications -ncurses -optimisememory -rdp (-altivec%) (-libav%) (-postproc%*)" CPU_FLAGS_X86="mmx sse" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]
Comment 3 Sam James (sec padawan) 2020-05-15 14:35:52 UTC
For now, I suggest you disable omxil.