Package Details: libnvidia-container 1.11.0-1

Git Clone URL: https://aur.archlinux.org/libnvidia-container.git (read-only, click to copy)
Package Base: libnvidia-container
Description: NVIDIA container runtime library
Upstream URL: https://github.com/NVIDIA/libnvidia-container
Licenses: Apache
Submitter: lukeyeager
Maintainer: jshap (kiendang)
Last Packager: kiendang
Votes: 24
Popularity: 1.70
First Submitted: 2017-09-12 21:34 (UTC)
Last Updated: 2022-09-21 14:52 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

Nephyrin commented on 2022-03-29 23:10 (UTC)

The problem seems to be go breaking their whole ecosystem with their module shenanigans.

This fixes the build for me:

diff --git a/PKGBUILD b/PKGBUILD
index ab0a282..0988186 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -74,7 +74,7 @@ build(){
   cd ${_srcdir}

   # finally actually make
-  CC=gcc make
+  CC=gcc make GO111MODULE=auto
 }

 make_dist(){

Nephyrin commented on 2022-03-29 23:02 (UTC)

1.9.0 seems to be failing as of today with:

go build -o libnvidia-container-go.so -ldflags "-s -w" -buildmode=c-shared .
main.go:22:2: cannot find package "nvcgo/internal/cgroup" in any of:
        /usr/lib/go/src/nvcgo/internal/cgroup (from $GOROOT)
        /home/$USER/go/src/nvcgo/internal/cgroup (from $GOPATH)
make[2]: *** [Makefile:40: libnvidia-container-go.so] Error 1

jshap commented on 2022-02-14 18:02 (UTC)

@trumee should be fixed now, somehow missed adding go as a makedep.

trumee commented on 2022-02-13 05:13 (UTC) (edited on 2022-02-13 05:13 (UTC) by trumee)

1.8.0 failed to install,

export CGO_CFLAGS="-std=gnu11 -O2"; \
export CGO_LDFLAGS="-Wl,--gc-sections -Wl,-s -Wl,-soname,libnvidia-container-go.so.1"; \
go build -o libnvidia-container-go.so -ldflags "-s -w" -buildmode=c-shared .
/bin/sh: line 3: go: command not found
make[2]: *** [Makefile:40: libnvidia-container-go.so] Error 127

KerfuffleV2 commented on 2022-02-09 17:44 (UTC)

1.8.0 seems to have a build dependency on the go compiler which is not correctly defined. Therefore, it fails to build in a chroot (and presumably any system without the go toolchain already installed.)

ruidc commented on 2022-01-08 23:31 (UTC)

Following a reboot it installed fine. I must have applied system updates during that boot.

ruidc commented on 2022-01-04 08:57 (UTC)

Very strange indeed! sorry, I can't explain why on my fresh Arch system (not derivative) they were missing when base-devel was installed - sorry for the noise. Can you suggest a solution to the linking error? or should I have a go at producing it in a docker image?

jshap commented on 2022-01-03 15:14 (UTC)

Both groff and patch are in base-devel[1]. Are you perhaps on a derivative distro and not archlinux?

[1] https://archlinux.org/groups/x86_64/base-devel/

ruidc commented on 2022-01-03 05:53 (UTC)

I am also getting this on a freshly built system. Also, patch,groff/nroff and patch were not part of base-devel

osiro commented on 2021-09-02 10:42 (UTC) (edited on 2021-09-02 10:48 (UTC) by osiro)

Have you guys come across with this:

/usr/bin/ld: warning: ./libnvidia-container/src/libnvidia-container-1.4.0/src/libnvidia-container.lds contains output sections; did you forget -T?
/usr/bin/ld: ./libnvidia-container/src/libnvidia-container-1.4.0/deps/usr/lib/libelf.a(elf_scn.o): in function `_libelf_load_section_headers':
./libnvidia-container/src/libnvidia-container-1.4.0/deps/src/elftoolchain-0.7.1/libelf/elf_scn.c:72: undefined reference to `_libelf_fsize'
/usr/bin/ld: ./libnvidia-container/src/libnvidia-container-1.4.0/deps/usr/lib/libelf.a(gelf_fsize.o): in function `elf32_fsize':
./libnvidia-container/src/libnvidia-container-1.4.0/deps/src/elftoolchain-0.7.1/libelf/gelf_fsize.c:37: undefined reference to `_libelf_fsize'
/usr/bin/ld: ./libnvidia-container/src/libnvidia-container-1.4.0/deps/usr/lib/libelf.a(gelf_fsize.o): in function `elf64_fsize':
./libnvidia-container/src/libnvidia-container-1.4.0/deps/src/elftoolchain-0.7.1/libelf/gelf_fsize.c:43: undefined reference to `_libelf_fsize'
/usr/bin/ld: ./libnvidia-container/src/libnvidia-container-1.4.0/deps/usr/lib/libelf.a(libelf_ehdr.o): in function `_libelf_ehdr':
./libnvidia-container/src/libnvidia-container-1.4.0/deps/src/elftoolchain-0.7.1/libelf/libelf_ehdr.c:138: undefined reference to `_libelf_fsize'
/usr/bin/ld: ./libnvidia-container/src/libnvidia-container-1.4.0/deps/usr/lib/libelf.a(libelf_ehdr.o): in function `_libelf_load_extended':
./libnvidia-container/src/libnvidia-container-1.4.0/deps/src/elftoolchain-0.7.1/libelf/libelf_ehdr.c:52: undefined reference to `_libelf_fsize'
collect2: error: ld returned 1 exit status
make: *** [Makefile:202: libnvidia-container.so.1.4.0] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

I am unsure whether this has to do with the version of ld, the one I've got it: GNU ld (GNU Binutils) 2.36.1