- bench.h:38:10: fatal error: rpc/rpc.h: No such file or directory
解决办法:dnf -y install libtirpc libtirpc-devel cp /usr/include/tirpc/rpc/* /usr/include/rpc/
- fatal error: netconfig.h: No such file or directory
解决办法:ln -s /usr/include/tirpc/netconfig.h /usr/include
- collect2: fatal error: cannot find 'ld'
解决办法: cd /usr/bin/ cp ld.gold ld
见:https://forum.huawei.com/enterprise/zh/thread/580923718304153600 改换a9版本,目前用的lmbench-3.0-a1,换成a9版本后加入参数编译成功
make results LDFLAGS=-ltirpc
5. has failed to recognize the operating system you are using.
解决:
加上OS=uname -n
make results LDFLAGS=-ltirpc OS=uname -n