Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913621 - media-libs/mesa-23.2.0_rc2 librusticl fails to link
Summary: media-libs/mesa-23.2.0_rc2 librusticl fails to link
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-04 13:03 UTC by Honza Macháček
Modified: 2025-01-07 18:55 UTC (History)
8 users (show)

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


Attachments
link failure build.log (build.log.gz,173.34 KB, application/gzip)
2023-11-05 03:04 UTC, Ben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Honza Macháček 2023-09-04 13:03:53 UTC
media-libs/mesa-23.2.0_rc2 failed to compile for me, complaining of:
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: src/gallium/drivers/r600/libr600.a.p/r600_pipe.c.o: in function `r600_create_context':
r600_pipe.c:(.text.r600_create_context+0xbb): undefined reference to `vl_video_buffer_create'

and some more undefined references.

The commit 33673bcc
https://gitlab.freedesktop.org/mesa/mesa/-/commit/33673bcc2ab84de0b1ff35519e7d7a58ef572fba
was the cause. It states “ rusticl: stop linking with libgalliumvl, it's not needed,” but apparently it is, at leas as long as librusticl contains r600 driver, added by the commit 7c78c346
https://gitlab.freedesktop.org/mesa/mesa/-/commit/7c78c346ff86b16e5e8dec09b6ee5209719e44c8

Reverting the commit 33673bcc, that is adding libgalliumvl back to the dependencies of librusticl, made media-libs/mesa-23.2.0_rc2 compile and install for me.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-04 13:21:29 UTC
Could you report this upstream please and link it here? Thanks.

If you could also throw in the full build.log here, that would be appreciated.
Comment 2 Ben 2023-11-05 03:04:37 UTC
Created attachment 874095 [details]
link failure build.log
Comment 3 Ben 2023-11-05 03:13:51 UTC
BTW would like to add, not sure what else is needed to get clinfo to detect my R600 so there might be more issues here - I am still using several r600 gpus.

Also, this is mesa-23.2.1 since mesa-23.2.0_rc2 expired.
Comment 4 Matt Turner gentoo-dev 2025-01-04 19:08:13 UTC
I built mesa 24.2.8 and 24.3.2 with VIDEO_CARDS=r600 USE=opencl successfully.

Does this version build successfully for you?
Comment 5 Matt Turner gentoo-dev 2025-01-04 19:10:58 UTC
I suspect this was fixed by I think this was fixed by https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26680
Comment 6 Honza Macháček 2025-01-06 08:45:12 UTC
(In reply to Matt Turner from comment #4)
> I built mesa 24.2.8 and 24.3.2 with VIDEO_CARDS=r600 USE=opencl successfully.
> 
> Does this version build successfully for you?

Yes. I can confirm 24.2.8 and 24.3.2 build with r600 and opencl for me without problems.
Comment 7 Matt Turner gentoo-dev 2025-01-07 18:55:54 UTC
Excellent, thanks for confirming!