FS#65479 - [nccl] .pc file point to /usr/local/lib because missing PREFIX make option

Attached to Project: Community Packages
Opened by Gustavo Alvarez (sl1pkn07) - Thursday, 13 February 2020, 04:04 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 23 February 2020, 15:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Konstantin Gizdov (kgizdov)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

└───╼ pkg-config nccl --libs
-L/usr/local/lib -lnccl

https://github.com/NVIDIA/nccl/blob/44c34e5d102f7f62936b5eee2db88b15ea11bc06/makefiles/common.mk#L8

makefile sets PREFIX in /usr/local

https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/nccl#n48

use

make CUDA_HOME='/opt/cuda' PREFIX='/usr' src.build

solve the problem
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 23 February 2020, 15:02 GMT
Reason for closing:  Fixed
Comment by Gustavo Alvarez (sl1pkn07) - Thursday, 13 February 2020, 04:20 GMT
also makefile have install step

https://github.com/NVIDIA/nccl/blob/a34c90c1edf8133efc92f6d0b57736ae720cb86a/src/Makefile#L122

cd "${pkgname}"
make CUDA_HOME='/opt/cuda' PREFIX="${pkgdir}/usr" install

greetings

Loading...