Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915200 - media-libs/libva-2.19.0 fails to link with clang-17: ld.lld: error: va/libva.so.2.1900.0.p/va_compat.c.o: symbol vaCreateSurfaces@VA_API_0.32.0 has undefined version VA_API_0.32.0
Summary: media-libs/libva-2.19.0 fails to link with clang-17: ld.lld: error: va/libva....
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: VA-API Project
URL:
Whiteboard:
Keywords:
: 928752 (view as bug list)
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2023-10-05 09:39 UTC by ppw0
Modified: 2024-04-06 19:52 UTC (History)
3 users (show)

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


Attachments
build log (media-libs:libva-2.19.0:20231005-093038.log,7.87 KB, text/x-log)
2023-10-05 09:39 UTC, ppw0
Details
emerge --info (emerge_info.log,7.38 KB, text/x-log)
2023-10-05 09:39 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-10-05 09:39:26 UTC
Created attachment 872154 [details]
build log

In a clang-17[default-libcxx] environment, media-libs/libva-2.19.0 will fail to link during emerge with the following error message:

```
FAILED: va/libva.so.2.1900.0 
clang  -o va/libva.so.2.1900.0 va/libva.so.2.1900.0.p/va.c.o va/libva.so.2.1900.0.p/va_compat.c.o va/libva.so.2.1900.0.p/va_str.c.o va/libva.so.2.1900.0.p/va_trace.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libva.so.2 -O2 -march=native -pipe -Wl,-O2 -Wl,--as-needed -ldl -Wl,--end-group
ld.lld: error: va/libva.so.2.1900.0.p/va_compat.c.o: symbol vaCreateSurfaces@VA_API_0.32.0 has undefined version VA_API_0.32.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
```

This can be avoided by passing "-Wl,--undefined-version" to LDFLAGS.

Attaching logs.
Comment 1 ppw0 2023-10-05 09:39:43 UTC
Created attachment 872155 [details]
emerge --info
Comment 2 jospezial 2023-10-09 12:27:56 UTC
https://github.com/intel/libva/pull/758

Just released libva-2.20.0 will possibly fail the same.
Comment 3 listout 2023-10-11 08:35:46 UTC
Reproducible with media-libs/libva-2.20.0
Comment 4 Alfred Wingate 2024-04-06 19:52:25 UTC
*** Bug 928752 has been marked as a duplicate of this bug. ***