Mellanox / nccl-rdma-sharp-plugins

RDMA and SHARP plugins for nccl library
BSD 3-Clause "New" or "Revised" License
162 stars 32 forks source link

make error #136

Open zzhngsx opened 12 months ago

zzhngsx commented 12 months ago

Hi , make all-recursive make[1]: Entering directory /root/nccl-rdma-sharp-plugins-2.1.0' Making all in src make[2]: Entering directory/root/nccl-rdma-sharp-plugins-2.1.0/src' CC libnccl_net_la-ibvwrap.lo CC libnccl_net_la-utils.lo CC libnccl_net_la-p2p_plugin.lo CC libnccl_net_la-ib_plugin.lo CC libnccl_net_la-ucx_plugin.lo CC libnccl_net_la-ucx_rma_plugin.lo CC libnccl_net_la-sharp_plugin.lo CCLD libnccl-net.la /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status make[2]: [libnccl-net.la] Error 1 make[2]: Leaving directory `/root/nccl-rdma-sharp-plugins-2.1.0/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/root/nccl-rdma-sharp-plugins-2.1.0' make: *** [all] Error 2

[root@gpu1 nccl-rdma-sharp-plugins-2.1.0]# gcc -lz --verbose Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/ LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -lz -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status

RiskySignal commented 10 months ago

It solves this problem. https://stackoverflow.com/questions/3373995/usr-bin-ld-cannot-find-lz