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

When "sudo make install", No rule to make target bin/potion-s', needed by pkg/potion-0.1.1106-x86_64-apple-darwin13.0.0-devel.tar.gz'. #67

Open
lanjiann opened this issue Dec 12, 2013 · 2 comments
Assignees
Milestone

Comments

@lanjiann
Copy link

make [DEBUG=1] with no error.
make test with no error.

When "sudo make install", I get this:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f dist.mak install PREFIX="/usr/local"
rm -rf dist
mkdir -p dist dist/bin dist/include/potion dist/lib/potion \
                 dist/share/potion/doc dist/share/potion/example
cp bin/potion            dist/bin/
cp lib/libpotion.dylib         dist/lib/
cp -r lib/potion               dist/lib/
if [ 0 = 1 ]; then mv dist/lib/*.dll dist/bin/; fi
if [ 1 = 1 ]; then rsync -a lib/libuv*.dylib dist/lib/; fi
cp core/potion.h               dist/include/potion/
cp core/config.h               dist/include/potion/
cp doc/*.html doc/*.png       dist/share/potion/doc/
cp: doc/*.html: No such file or directory
make[1]: [pkg/potion-0.1.1106-x86_64-apple-darwin13.0.0.tar.gz] Error 1 (ignored)
cp doc/core-files.txt         dist/share/potion/doc/
cp README COPYING LICENSE ChangeLog  dist/share/potion/doc/
cp example/*                   dist/share/potion/example/
mkdir -p pkg
(cd dist && tar czf ../pkg/potion-0.1.1106-x86_64-apple-darwin13.0.0.tar.gz * && cd ..)
rm -rf dist
make[1]: *** No rule to make target `bin/potion-s', needed by `pkg/potion-0.1.1106-x86_64-apple-darwin13.0.0-devel.tar.gz'.  Stop.
make: *** [install] Error 2

Then, i tired "make SANDBOX=1", I get this:

LINK bin/potion-s
Undefined symbols for architecture x86_64:
  "_Potion_Init_buffile", referenced from:
      _main in potion.os
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/potion-s] Error 1 
@ghost ghost assigned rurban Dec 12, 2013
@rudchenkos
Copy link

I had stuck at the same problem.
After reading the Makefile I have managed to build potion-s this way:

$ make bin/potion-s
CC core/file.o
CC core/load.o
AR lib/libpotion.a
RANLIB lib/libpotion.a
CC lib/buffile.o
LINK bin/potion-s
STRIP bin/potion-s

@lanjiann
Copy link
Author

Thank you! It works!

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