Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933124 - dev-util/intel_clc and media-libs/mesa multilib 64-bit compile uses wrong 32-bit /usr/lib/libz.*
Summary: dev-util/intel_clc and media-libs/mesa multilib 64-bit compile uses wrong 32-...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 15:30 UTC by Jon Daniel
Modified: 2024-07-19 18:42 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info.txt,17.76 KB, text/plain)
2024-05-29 17:33 UTC, Jon Daniel
Details
experimental ebuild update (intel_clc-24.1.0-r1.ebuild,1.73 KB, application/vnd.gentoo.ebuild)
2024-05-29 17:43 UTC, Jon Daniel
Details
build.log (build.log.gz,35.03 KB, application/gzip)
2024-05-29 17:46 UTC, Jon Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Daniel 2024-05-29 15:30:19 UTC
Current versions don't support multilib try to use the wrong library directory resulting in failing emerge process.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-29 15:40:40 UTC
Please include the build.log and emerge --info.
Comment 2 Jon Daniel 2024-05-29 17:33:03 UTC
Created attachment 894614 [details]
emerge --info
Comment 3 Jon Daniel 2024-05-29 17:43:14 UTC
Created attachment 894615 [details]
experimental ebuild update
Comment 4 Jon Daniel 2024-05-29 17:44:41 UTC
Added experimental updated multilib ebuild that doesn't find LLVMSPIRVLib
Comment 5 Jon Daniel 2024-05-29 17:46:45 UTC
Created attachment 894616 [details]
build.log
Comment 6 Matt Turner gentoo-dev 2024-05-30 13:20:24 UTC
Why would this package need multilib support? It installs a single binary for the native ABI that is used by the build of Mesa for each ABI.
Comment 7 Jon Daniel 2024-05-31 14:06:52 UTC
The native ABI install obviously doesn't recognize the library directory configuration.
Probably changing the meson libdir should be enough to get the effeccts of GNUInstallDirs in CMake
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-31 14:10:06 UTC
Yes, but you're going down the wrong path. We need to figure out why the vanilla ebuild in ::gentoo doesn't work. multilib makes no sense for this package.
Comment 9 Matt Turner gentoo-dev 2024-05-31 15:36:56 UTC
(In reply to Jon Daniel from comment #7)
> The native ABI install obviously doesn't recognize the library directory
> configuration.

Don't you think that if that was the problem, that it would still fail to build the native ABI binary?
Comment 10 Jon Daniel 2024-06-04 11:54:07 UTC
temporarily removing 32-bit libz.* in /usr/lib as a workaround successfuly completes inteL_clc emerge.

rm /usr/lib/libz.* && emerge -v intel_clc::gentoo && emerge -v zlib
Comment 11 Jon Daniel 2024-06-04 11:57:40 UTC
The bug is reproduceable and not resolved or invalid
Comment 12 Matt Turner gentoo-dev 2024-06-04 15:54:14 UTC
I think you need to start inspecting /usr/lib64/pkgconfig/*.pc. E.g.

> grep -r -- 'usr/lib$' /usr/share/pkgconfig /usr/lib64/pkgconfig
Comment 13 Matt Turner gentoo-dev 2024-06-04 15:58:13 UTC
Also grep your intel_clc build directory for `/usr/lib/libz.so` after running `sudo ebuild intel_clc-24.1.0.ebuild clean install`.
Comment 14 Jon Daniel 2024-06-05 21:52:56 UTC
The error occurs with media-libs/mesa-24.1.0-r1 too which supports multilib.
This time I am not able to merge it with just removing the /usr/lib/libz.*
Comment 15 Jon Daniel 2024-06-05 22:10:52 UTC
Latest updates to 24.1.1 didn't fix the problem
Comment 16 Matt Turner gentoo-dev 2024-06-06 01:02:31 UTC
(In reply to Jon Daniel from comment #14)
> The error occurs with media-libs/mesa-24.1.0-r1 too which supports multilib.
> This time I am not able to merge it with just removing the /usr/lib/libz.*

This is because the problem has nothing to do with support for multilib or lack thereof.

(In reply to Jon Daniel from comment #15)
> Latest updates to 24.1.1 didn't fix the problem

This makes sense because the problem is almost certainly something specific to your local machine.
Comment 17 Matt Turner gentoo-dev 2024-06-23 01:35:12 UTC
It's been fun.
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-23 01:55:29 UTC
You likely have some junk in /usr/local or some odd environment variable set (check `env`). Otherwise, this is better debugged in a support forum.
Comment 19 Jon Daniel 2024-07-05 10:58:59 UTC
As a workaround disable 32-bit multilib ABI for mesa and delete /usr/lib/libz.*