Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919505 - media-libs/libva-2.20.0 - [clang] ld.lld: error: .../va_compat.c.o: symbol vaCreateSurfaces@VA_API_0.32.0 has undefined version VA_API_0.32.0
Summary: media-libs/libva-2.20.0 - [clang] ld.lld: error: .../va_compat.c.o: symbol va...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: VA-API Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 912821
  Show dependency tree
 
Reported: 2023-12-09 10:39 UTC by Toralf Förster
Modified: 2024-01-17 05:57 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.35 KB, text/plain)
2023-12-09 10:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,175.25 KB, text/plain)
2023-12-09 10:39 UTC, Toralf Förster
Details
environment (environment,124.81 KB, text/plain)
2023-12-09 10:39 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-09 10:39 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.20 KB, application/x-xz)
2023-12-09 10:39 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,2.77 KB, application/x-xz)
2023-12-09 10:39 UTC, Toralf Förster
Details
media-libs:libva-2.20.0:20231209-014336.log (media-libs:libva-2.20.0:20231209-014336.log,15.10 KB, text/plain)
2023-12-09 10:39 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,44.68 KB, application/x-xz)
2023-12-09 10:39 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,35.97 KB, application/x-xz)
2023-12-09 10:39 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,2.02 KB, application/x-xz)
2023-12-09 10:39 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-09 10:39:39 UTC
too long lines were shrinked:

[17/23] clang -Iva/libva-x11.so.2.2000.0.p -Iva -I../libva-2.20.0/va -I. -I../libva-2.20.0 -I/usr/include/libdrm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DHAVE_SECURE_GETENV -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=imp
[18/23] /usr/lib/python-exec/python3.11/meson --internal copy ../libva-2.20.0/va/x11/va_dricommon.h va/va_dricommon.h
[19/23] clang -Iva/libva.so.2.2000.0.p -Iva -I../libva-2.20.0/va -I. -I../libva-2.20.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DHAVE_SECURE_GETENV -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -fPIC '-DSYSCONF
[20/23] clang  -o va/libva.so.2.2000.0 va/libva.so.2.2000.0.p/va.c.o va/libva.so.2.2000.0.p/va_compat.c.o va/libva.so.2.2000.0.p/va_str.c.o va/libva.so.2.2000.0.p/va_trace.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libva.so.2 -O2 -pipe -march=native -fno-diagn
FAILED: va/libva.so.2.2000.0 
clang  -o va/libva.so.2.2000.0 va/libva.so.2.2000.0.p/va.c.o va/libva.so.2.2000.0.p/va_compat.c.o va/libva.so.2.2000.0.p/va_str.c.o va/libva.so.2.2000.0.p/va_trace.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libva.so.2 -O2 -pipe -march=native -fno-diagnostics-c
ld.lld: error: va/libva.so.2.2000.0.p/va_compat.c.o: symbol vaCreateSurfaces@VA_API_0.32.0 has undefined version VA_API_0.32.0
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang_merged_usr-20231206-115013

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
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+libcxx
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

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

  HEAD of ::gentoo
commit 4d027252c3f605b0dfb94a1a958ce5c39d8e20da
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Dec 9 00:02:03 2023 +0000

    2023-12-09 00:02:03 UTC

emerge -qpvO media-libs/libva
[ebuild  N    ] media-libs/libva-2.20.0  USE="X -wayland" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2023-12-09 10:39:40 UTC
Created attachment 878514 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-09 10:39:42 UTC
Created attachment 878515 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-09 10:39:43 UTC
Created attachment 878516 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-09 10:39:44 UTC
Created attachment 878517 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-09 10:39:45 UTC
Created attachment 878518 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-09 10:39:46 UTC
Created attachment 878519 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-09 10:39:47 UTC
Created attachment 878520 [details]
media-libs:libva-2.20.0:20231209-014336.log
Comment 8 Toralf Förster gentoo-dev 2023-12-09 10:39:48 UTC
Created attachment 878521 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-09 10:39:49 UTC
Created attachment 878522 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-09 10:39:50 UTC
Created attachment 878523 [details]
var.tmp.clang.tar.xz
Comment 11 Larry the Git Cow gentoo-dev 2024-01-17 05:47:27 UTC
The bug has been referenced in the following commit(s):

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

commit 1c1f23a3f5823b569085863bbf6c70fa4bb5d076
Author:     Nicholas Vinson <nvinson234@gmail.com>
AuthorDate: 2024-01-15 15:41:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-17 05:43:55 +0000

    media-libs/libva: backport proposed upstream patch
    
    Backport proposed upstream patch from
    https://github.com/intel/libva/pull/732
    
    Bug: https://bugs.gentoo.org/919505
    Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34818
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/clang-17-version-script-check-fix.patch  | 62 ++++++++++++++++++++++
 media-libs/libva/libva-2.20.0.ebuild               |  6 ++-
 2 files changed, 67 insertions(+), 1 deletion(-)