Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dafei-qin opened this issue Jul 18, 2019 · 2 comments
Open

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

dafei-qin opened this issue Jul 18, 2019 · 2 comments

Comments

@dafei-qin
Copy link

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!

@XinxinMa11
Copy link

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!

@Hanjun-Dai
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants