Gentoo Archives: gentoo-user

From: "Valmor F. de Almeida" <val.gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] why both /usr/lib and /usr/lib64 on a 64bit system?
Date: Sat, 13 Feb 2021 19:33:38
Message-Id: 1b737992-9361-c307-79ad-240461d6d733@gmail.com
1 Hello,
2 I use the global flags USE="elogind alsa -multilib -abi_x86_32" and I
3 thought this would prevent 32bit libraries to be installed.
4
5 For example I have (from glibc) both:
6
7 /usr/lib/libutil.so
8 /usr/lib64/libutil.so
9
10 this causes problems with some packages outside portage that I would
11 like to install. The install fails (or is incomplete) because it is
12 trying to link a 32bit incompatible library, e.g.:
13
14 /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
15 skipping incompatible /usr/lib/libutil.so when searching for -lutil
16
17 Is there a way to have only /usr/lib64 in gentoo or is this not
18 possible? I do use
19
20 export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
21
22 in my shell startup file.
23
24 Thanks for inputs.
25 --
26 Valmor

Replies