graphnn
graphnn copied to clipboard
error: 'find: -printf: unknown primary or operator' under macOS
I tried to build this project but error occurs:
find: -printf: unknown primary or operator find: -printf: unknown primary or operator find: -printf: unknown primary or operator find: -printf: unknown primary or operator find: -printf: unknown primary or operator ar rcs build_cpuonly/lib/libgnn.a ar: no archive members specified
I tried to delete all -printf
in Makefile but another error occurs:
make: *** No rule to make target
build_cpuonly/objs/cxx/src//nn/hit_at_k.o', needed by
build_cpuonly/lib/libgnn.a'. Stop.
I tried to install findutils as suggested by this but it wouldn't work.
I think this is a trivial error that can be easily solved. However it seems that nobody has occurred the same issue.
Can anybody provide some instructions? Thanks!
I met the same issue, my macOS version is 10.14.5, I think the issue may be occurred on the new mac system.
I also built this project on Ubuntu, it built 'libgnn.a' successfully.
But some error i meet when i make 'mnist' :
I have install mkl, tbb, but it is still wrong
I copy the new floder to mac, it occurred the same issue.
Is my system path set incorrectly? If you fix it, please tell me, Thanks!
For the -printf issue: If you are using Mac, probably you want to use GNUfind (simply install it using homebrew).
For the mkl issue, if you don't have mkl environment variable set, please manually add the path in the LDFLAGS (in make_common file).