Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918997 - media-video/ffmpeg-chromium-117 - vulkan.c:(.text+<snip>): multiple definition of ff_vk_ret2str; libavcodec/libavcodec.a(vulkan.o):vulkan.c:(.text+<sn
Summary: media-video/ffmpeg-chromium-117 - vulkan.c:(.text+<snip>): multiple definitio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-02 01:42 UTC by Toralf Förster
Modified: 2023-12-03 16:33 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.48 KB, text/plain)
2023-12-02 01:42 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,212.36 KB, text/plain)
2023-12-02 01:42 UTC, Toralf Förster
Details
environment (environment,86.22 KB, text/plain)
2023-12-02 01:43 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,964 bytes, application/x-xz)
2023-12-02 01:43 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,29.52 KB, application/x-xz)
2023-12-02 01:43 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,39.02 KB, application/x-xz)
2023-12-02 01:43 UTC, Toralf Förster
Details
media-video:ffmpeg-chromium-117:20231202-004752.log.xz (media-video:ffmpeg-chromium-117:20231202-004752.log.xz,11.11 KB, application/x-xz)
2023-12-02 01:43 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,52.84 KB, application/x-xz)
2023-12-02 01:43 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,29.94 KB, application/x-xz)
2023-12-02 01:43 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-02 01:42:56 UTC
too long lines were shrinked:

skipping strip -x libavutil/x86/tx_float.o
rm -f libavutil/libavutil.a
x86_64-pc-linux-gnu-ar rcD libavutil/libavutil.a libavutil/adler32.o libavutil/aes.o libavutil/aes_ctr.o libavutil/ambient_viewing_environment.o libavutil/audio_fifo.o libavutil/avsscanf.o libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o libavutil/bprint.o libavutil/buffer.o libavutil/ca
x86_64-pc-linux-gnu-ranlib -D libavutil/libavutil.a
x86_64-pc-linux-gnu-gcc -shared -Wl,-soname,libffmpeg.so -Wl,-Bsymbolic -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--gc-sections -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libavutil/libavutil.a(vulkan.o): in function `ff_vk_ret2str':
vulkan.c:(.text+0xc0): multiple definition of `ff_vk_ret2str'; libavcodec/libavcodec.a(vulkan.o):vulkan.c:(.text+0xc0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libavutil/libavutil.a(vulkan.o): in function `ff_vk_load_props':
vulkan.c:(.text+0x450): multiple definition of `ff_vk_load_props'; libavcodec/libavcodec.a(vulkan.o):vulkan.c:(.text+0x450): first defined here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-20231127-152538

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.6
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.8.1_p1 [openjdk-17]
2)	OpenJDK 21.0.1_p12 [openjdk-21]
3)	OpenJDK 8.382_p05 [openjdk-8]
4)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-17 
  [3]   openjdk-21 
  [4]   openjdk-bin-17 
  [5]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 739458d9b6b24b3f5bd207ee877ad598b66f4f38
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 1 23:46:55 2023 +0000

    2023-12-01 23:46:55 UTC

emerge -qpvO media-video/ffmpeg-chromium
[ebuild  NS   ] media-video/ffmpeg-chromium-117 [114] USE="gpl opus threads vulkan -cpudetection -debug (-mmal) -nvenc -vaapi -vdpau" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop"
Comment 1 Toralf Förster gentoo-dev 2023-12-02 01:42:57 UTC
Created attachment 876295 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-02 01:42:58 UTC
Created attachment 876296 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-02 01:43:00 UTC
Created attachment 876297 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-02 01:43:01 UTC
Created attachment 876298 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-02 01:43:02 UTC
Created attachment 876299 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-02 01:43:03 UTC
Created attachment 876300 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-02 01:43:04 UTC
Created attachment 876301 [details]
media-video:ffmpeg-chromium-117:20231202-004752.log.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-02 01:43:05 UTC
Created attachment 876302 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-02 01:43:06 UTC
Created attachment 876303 [details]
temp.tar.xz
Comment 10 James Le Cuirot gentoo-dev 2023-12-02 14:24:15 UTC
I can't reproduce this. I wanted to try with GCC 14, but I can't get that to build at all.
Comment 11 James Le Cuirot gentoo-dev 2023-12-02 16:46:58 UTC
Turns out it was working for me because I use mold.
Comment 12 Larry the Git Cow gentoo-dev 2023-12-03 16:33:25 UTC
The bug has been closed via the following commit(s):

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

commit a6d55492eca0425b5bc9750681d00510d809e4ea
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2023-12-03 16:32:47 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2023-12-03 16:32:47 +0000

    media-video/ffmpeg-chromium: Work around vulkan linking issue with flag
    
    This should be fixed upstream in the next release.
    
    Closes: https://bugs.gentoo.org/918997
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 media-video/ffmpeg-chromium/ffmpeg-chromium-117.ebuild | 3 +++
 1 file changed, 3 insertions(+)