Gentoo Archives: gentoo-user

From: Dan Egli <dan@×××××××××××.site>
To: gentoo-user@l.g.o, "Valmor F. de Almeida" <val.gentoo@×××××.com>
Subject: Re: [gentoo-user] why both /usr/lib and /usr/lib64 on a 64bit system?
Date: Sun, 14 Feb 2021 04:39:03
Message-Id: 3b0c89a3-d1b9-3fad-ef96-83f41540b5ee@newideatest.site
In Reply to: [gentoo-user] why both /usr/lib and /usr/lib64 on a 64bit system? by "Valmor F. de Almeida"
1 I think there will always be some things that want /usr/lib. That said,
2 I'm guessing you started with a no-multilib tarball? Frankly, I find
3 there's still too many programs that want 32bit libraries to go full
4 no-multilib. Maybe in a few more years as the last of the 32bit only
5 machines die off and are replaced with 64 bit machines.
6
7 On 2/13/2021 12:33 PM, Valmor F. de Almeida wrote:
8 >
9 > Hello,
10 > I use the global flags USE="elogind alsa -multilib -abi_x86_32" and I
11 > thought this would prevent 32bit libraries to be installed.
12 >
13 > For example I have (from glibc) both:
14 >
15 > /usr/lib/libutil.so
16 > /usr/lib64/libutil.so
17 >
18 > this causes problems with some packages outside portage that I would
19 > like to install. The install fails (or is incomplete) because it is
20 > trying to link a 32bit incompatible library, e.g.:
21 >
22 > /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
23 > skipping incompatible /usr/lib/libutil.so when searching for -lutil
24 >
25 > Is there a way to have only /usr/lib64 in gentoo or is this not
26 > possible? I do use
27 >
28 > export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
29 >
30 > in my shell startup file.
31 >
32 > Thanks for inputs.
33 > --
34 > Valmor
35 >
36 --
37 Dan Egli
38 On my test server

Replies

Subject Author
Re: [gentoo-user] why both /usr/lib and /usr/lib64 on a 64bit system? Grant Taylor <gtaylor@×××××××××××××××××××××.net>