graphnn icon indicating copy to clipboard operation
graphnn copied to clipboard

error: 'find: -printf: unknown primary or operator' under macOS

Open dafei-qin opened this issue 5 years ago • 2 comments

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!

dafei-qin avatar Jul 18 '19 09:07 dafei-qin

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. image

But some error i meet when i make 'mnist' : image I have install mkl, tbb, but it is still wrong

I copy the new floder to mac, it occurred the same issue. image

Is my system path set incorrectly? If you fix it, please tell me, Thanks!

XinxinMa11 avatar Jul 18 '19 11:07 XinxinMa11

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).

Hanjun-Dai avatar Jul 20 '19 21:07 Hanjun-Dai