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

make: *** No rule to make target `install'. Stop. #395

Open
jonmcclung opened this issue Oct 4, 2018 · 0 comments
Open

make: *** No rule to make target `install'. Stop. #395

jonmcclung opened this issue Oct 4, 2018 · 0 comments

Comments

@jonmcclung
Copy link

On macOS 10.13.6 I get an error on make install for a very basic configuration. Here is the script I am using:

#!/bin/bash
# test.sh

rm -rf PHP-CPP
git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git

rm -rf build
mkdir build
cd build

# This prevents countless warnings about 'override' not being specified
cmake -E env CXXFLAGS="-Wno-inconsistent-missing-override" \
    cmake \
        -DCMAKE_INSTALL_PREFIX=../mac \
        -DCMAKE_CXX_STANDARD=11 \
        -DPHPCPP_ARCH=x86_64 \
        -DPHPCPP_PHP_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/php\
    ../PHP-CPP
make
make install

And here is the output:

$ ./test.sh
Cloning into 'PHP-CPP'...
remote: Enumerating objects: 75, done.
remote: Counting objects: 100% (75/75), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 5848 (delta 43), reused 50 (delta 31), pack-reused 5773
Receiving objects: 100% (5848/5848), 1.86 MiB | 6.81 MiB/s, done.
Resolving deltas: 100% (4112/4112), done.
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /absolute/path/redacted/build
Scanning dependencies of target phpcpp-common
[  2%] Building CXX object CMakeFiles/phpcpp-common.dir/common/modifiers.cpp.o
[  5%] Building CXX object CMakeFiles/phpcpp-common.dir/common/streambuf.cpp.o
[  7%] Linking CXX static library libphpcpp-common.a
[  7%] Built target phpcpp-common
Scanning dependencies of target phpcpp
[ 10%] Building CXX object CMakeFiles/phpcpp.dir/zend/base.cpp.o
[ 13%] Building CXX object CMakeFiles/phpcpp.dir/zend/callable.cpp.o
[ 15%] Building CXX object CMakeFiles/phpcpp.dir/zend/classbase.cpp.o
[ 18%] Building CXX object CMakeFiles/phpcpp.dir/zend/classimpl.cpp.o
[ 21%] Building CXX object CMakeFiles/phpcpp.dir/zend/constant.cpp.o
[ 23%] Building CXX object CMakeFiles/phpcpp.dir/zend/constantfuncs.cpp.o
[ 26%] Building CXX object CMakeFiles/phpcpp.dir/zend/eval.cpp.o
[ 28%] Building CXX object CMakeFiles/phpcpp.dir/zend/exception_handler.cpp.o
[ 31%] Building CXX object CMakeFiles/phpcpp.dir/zend/exists.cpp.o
[ 34%] Building CXX object CMakeFiles/phpcpp.dir/zend/extension.cpp.o
[ 36%] Building CXX object CMakeFiles/phpcpp.dir/zend/extensionimpl.cpp.o
[ 39%] Building CXX object CMakeFiles/phpcpp.dir/zend/fatalerror.cpp.o
[ 42%] Building CXX object CMakeFiles/phpcpp.dir/zend/file.cpp.o
[ 44%] Building CXX object CMakeFiles/phpcpp.dir/zend/function.cpp.o
[ 47%] Building CXX object CMakeFiles/phpcpp.dir/zend/functor.cpp.o
[ 50%] Building CXX object CMakeFiles/phpcpp.dir/zend/global.cpp.o
[ 52%] Building CXX object CMakeFiles/phpcpp.dir/zend/globals.cpp.o
[ 55%] Building CXX object CMakeFiles/phpcpp.dir/zend/hashmember.cpp.o
[ 57%] Building CXX object CMakeFiles/phpcpp.dir/zend/ini.cpp.o
[ 60%] Building CXX object CMakeFiles/phpcpp.dir/zend/inivalue.cpp.o
[ 63%] Building CXX object CMakeFiles/phpcpp.dir/zend/iteratorimpl.cpp.o
[ 65%] Building CXX object CMakeFiles/phpcpp.dir/zend/members.cpp.o
[ 68%] Building CXX object CMakeFiles/phpcpp.dir/zend/module.cpp.o
[ 71%] Building CXX object CMakeFiles/phpcpp.dir/zend/namespace.cpp.o
[ 73%] Building CXX object CMakeFiles/phpcpp.dir/zend/object.cpp.o
[ 76%] Building CXX object CMakeFiles/phpcpp.dir/zend/sapi.cpp.o
[ 78%] Building CXX object CMakeFiles/phpcpp.dir/zend/script.cpp.o
[ 81%] Building CXX object CMakeFiles/phpcpp.dir/zend/streambuf.cpp.o
[ 84%] Building CXX object CMakeFiles/phpcpp.dir/zend/streams.cpp.o
[ 86%] Building CXX object CMakeFiles/phpcpp.dir/zend/super.cpp.o
[ 89%] Building CXX object CMakeFiles/phpcpp.dir/zend/value.cpp.o
[ 92%] Building CXX object CMakeFiles/phpcpp.dir/zend/valueiterator.cpp.o
[ 94%] Building CXX object CMakeFiles/phpcpp.dir/zend/zendcallable.cpp.o
[ 97%] Building CXX object CMakeFiles/phpcpp.dir/zend/zval.cpp.o
[100%] Linking CXX static library libphpcpp.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libphpcpp.a(members.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libphpcpp.a(members.cpp.o) has no symbols
[100%] Built target phpcpp
make: *** No rule to make target `install'.  Stop.

As you can see, it complains that there is no rule to make target `install'.

I also note that it says libphpcpp.a(members.cpp.o) has no symbols, though I'm not convinced that is an error.

I find it odd that I run into these issues with so basic a configuration. Please advise.

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

1 participant