Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 723790

Summary: sys-libs/libcap-2.34 directly calls "ranlib" ( ranlib: No such file or directory )
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log.gz

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-05-18 16:40:09 UTC
Created attachment 640178 [details]
build.log.gz

Running an ago-ized box:

- no /usr/bin/{ar,cc,gcc,ranlib,nm,cpp}

> x86_64-pc-linux-gnu-gcc -m32 -O2 -pipe -mtune=native -march=native -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -fPIC -I/var/tmp/portage/sys-libs/libcap-2.34/work/libcap-2.34-abi_x86_32.x86/libcap/../libcap/include/uapi -I/var/tmp/portage/sys-libs/libcap-2.34/work/libcap-2.34-abi_x86_32.x86/libcap/../libcap/include -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -c psx.c -o psx.o
> x86_64-pc-linux-gnu-gcc -m32 -Wl,-x -shared -O2 -pipe -mtune=native -march=native -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -fPIC -Wl,-O1 -Wl,--as-needed -L/var/tmp/portage/sys-libs/libcap-2.34/work/libcap-2.34-abi_x86_32.x86/libcap -L/var/tmp/portage/sys-libs/libcap-2.34/work/libcap-2.34-abi_x86_32.x86/libcap/../libcap -Wl,-soname,libcap.so.2 -o libcap.so.2.34 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
> x86_64-pc-linux-gnu-ar rcs libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
> x86_64-pc-linux-gnu-ar rcs libpsx.a psx.o
> ln -sf libcap.so.2.34 libcap.so.2
> ln -sf libcap.so.2 libcap.so
> ranlib libcap.a
> make[1]: ranlib: No such file or directory
> make[1]: *** [Makefile:79: libcap.a] Error 127
> make[1]: *** Waiting for unfinished jobs....
> ranlib libpsx.a
> make[1]: ranlib: No such file or directory
> make[1]: *** [Makefile:83: libpsx.a] Error 127
> make[1]: Leaving directory '/var/tmp/portage/sys-libs/libcap-2.34/work/libcap-2.34-abi_x86_32.x86/libcap'
> make: *** [Makefile:12: all] Error 2
>  * ERROR: sys-libs/libcap-2.34::gentoo failed (compile phase):
>  *   emake failed

Probably needs some love with `toolchain-funcs.eclass` and $(tc_getRANLIB)
Comment 1 Larry the Git Cow gentoo-dev 2020-05-18 17:47:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19128fffe6c491ef0b3b913b38904fdad488ea2a

commit 19128fffe6c491ef0b3b913b38904fdad488ea2a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-05-18 17:45:14 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-05-18 17:45:14 +0000

    sys-libs/libcap: export toolchain vars before doing multilib configure
    
    Closes: https://bugs.gentoo.org/723790
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-libs/libcap/libcap-2.34.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)