#18 Fix #16. lmbench compilation on F28.
Merged 3 years ago by jforbes. Opened 3 years ago by low.
low/kernel-tests master  into  master

@@ -111,8 +111,8 @@ 

  	$O/lib_sched.o

  

  lmbench: $(UTILS)

- 	@env CFLAGS=-O MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build all

- 	-@env CFLAGS=-O MAKE="$(MAKE)" MAKEFLAGS="-k $(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build opt

+ 	@env LDFLAGS="-ltirpc" CFLAGS="-O -I/usr/include/tirpc" MAKE="$(MAKE)" MAKEFLAGS="$(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build all

+ 	-@env LDFLAGS="-ltirpc" CFLAGS="-O -I/usr/include/tirpc" MAKE="$(MAKE)" MAKEFLAGS="-k $(MAKEFLAGS)" CC="$(CC)" OS="$(OS)" ../scripts/build opt

  

  results: lmbench

  	@env OS="${OS}" ../scripts/config-run

Now compiles fine. I guess it may need more work, as it’s likely to break on previous Fedora (untested, but I’m afraid LDFLAGS=-ltirpc usage may fail on older fedora not providing libtirpc).

Pull-Request has been merged by jforbes

3 years ago

Doing the performance test with fedora 29 and kernel still leads to this issue.

Log:

Test suite called with performance
In file included from lib_tcp.c:9:
bench.h:38:10: fatal error: rpc/rpc.h: No such file or directory
#include <rpc/rpc.h>
^~~
compilation terminated.
gmake[2]: [Makefile:244: ../bin/x86_64-linux-gnu/lib_tcp.o] Error 1
make[1]:
[Makefile:114: lmbench] Error 2
make: [Makefile:20: build] Error 2
In file included from lib_tcp.c:9:
bench.h:38:10: fatal error: rpc/rpc.h: No such file or directory
#include <rpc/rpc.h>
^~~
compilation terminated.
gmake[2]:
[Makefile:244: ../bin/x86_64-linux-gnu/lib_tcp.o] Error 1
make[1]: [Makefile:114: lmbench] Error 2
make:
[Makefile:23: results] Error 2

Hi,

Do you have libntirpc-devel installed ?

After a reset of my machine and re-installing all the packages the issue does not occur any more. I cannot reproduce it.

Thanks for your reply.

Metadata