NVIDIA / libnvidia-container

NVIDIA container runtime library
Apache License 2.0
834 stars 204 forks source link

Ubuntu22.04 make err #274

Open jason-gideon opened 4 months ago

jason-gideon commented 4 months ago
cc -pipe -O2 -fdata-sections -ffunction-sections -fstack-protector -fno-strict-aliasing -fPIC                   -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf -I/tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf/../common -D_FORTIFY_SOURCE=2           -c -fpic -DPIC libelf_convert.c -o libelf_convert.pico.o
--- libelf_fsize.pico ---
ld -x -r libelf_fsize.pico.o -o libelf_fsize.pico
--- libelf_msize.pico ---
ld -x -r libelf_msize.pico.o -o libelf_msize.pico
--- libelf_convert.pico ---
ld -x -r libelf_convert.pico.o -o libelf_convert.pico
--- libelf.a ---
--- libelf_pic.a ---
--- libelf.a ---
building standard elf library
--- libelf_pic.a ---
building shared object elf library
--- libelf_p.a ---
building profiled elf library
--- libelf.a ---
ranlib libelf.a
--- libelf_pic.a ---
ranlib libelf_pic.a
--- libelf.so.1 ---
building shared elf library (version 1)
cc -pipe -o libelf.so.1 -shared -Wl,"-soname libelf.so.1" -Wl,--whole-archive libelf_pic.a -Wl,--no-whole-archive
--- libelf_p.a ---
ranlib libelf_p.a
--- libelf.so.1 ---
/usr/bin/ld: Error: unable to disambiguate: -soname libelf.so.1 (did you mean --soname libelf.so.1 ?)
collect2: error: ld returned 1 exit status
*** [libelf.so.1] Error code 1

bmake[2]: stopped in /tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf
1 error

bmake[2]: stopped in /tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf
make[1]: *** [/tmp/libiluvatar-container/mk/elftoolchain.mk:45: /tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/.build_stamp] Error 2
make[1]: Leaving directory '/tmp/libiluvatar-container'
make: *** [Makefile:264: deps] Error 2
Tumb1eweed commented 2 months ago

I enter the same problem...

andresriancho commented 2 months ago

Maybe this thread in the archlinux mailing list helps?

andresriancho commented 2 months ago

Installing bmake from source will fix this.