ibm-s390-linux / smc-tools

Tools for use with AF_SMC sockets
Eclipse Public License 1.0
19 stars 14 forks source link

Got a compile failed when make the tool #3

Closed penny56 closed 2 years ago

penny56 commented 2 years ago

Hi, I got this error while I make the smc-tools:

[root@t257davet smc-tools-1.6.0]# make
  CC      smc-preload.o
/bin/sh: cc: command not found
make: *** [Makefile:88: smc-preload.o] Error 127

I loaded the SMC module before I did the make

[root@t257davet smc-tools-1.6.0]# lsmod | grep smc
smc                   135168  0
pnet                   16384  1 smc
ib_core               385024  7 rdma_cm,rpcrdma,smc,iw_cm,rdma_ucm,ib_uverbs,ib_cm

The OS environment is RHEL8.3 and the tool version is 1.6.0, thanks for the help and any question please let me know.

Stefan-Raspl commented 2 years ago

Looks like you don't have a compiler installed. The most pragmatic way on RHEL 8.3 should be to install the "Development Tools" group via dnf group install "Development Tools"

penny56 commented 2 years ago

Thanks Stefan, I think I have a progress after the "Development Tools" installed, but still encountered a fatal while make:

[root@t257davet smc-tools-1.6.0]# make
  CC      smc-preload.o
  LINK    libsmc-preload.so
Makefile:101: "Warning: Skipping 31/32-bit library build because 31/32-bit build tools"
Makefile:102: "         are unavailable. SMC will not support 31/32 bit applications"
Makefile:103: "         unless the glibc devel package for the appropriate addressing"
Makefile:104: "         mode is installed and the preload libraries are rebuilt."
  CC      smcd.o
In file included from smc.c:27:
libnetlink.h:23:10: fatal error: netlink/genl/genl.h: No such file or directory
 #include <netlink/genl/genl.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:110: smcd.o] Error 1

Thanks~

Stefan-Raspl commented 2 years ago

You're missing the header file netlink/genl/genl.h. Install libnl3-devel to get that.

penny56 commented 2 years ago

Thanks Stefan, it compiled completed, close this ticket.