You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
root@azguard:/opt/hhvm/hphp/runtime/ext/extension-example# ./build.sh
** hphpize complete, now run cmake . && make to build
-- Configuring for HHVM API version 20140702
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/hhvm/hphp/runtime/ext/extension-example
[100%] Building CXX object CMakeFiles/example.dir/example.cpp.o
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h: In function ‘bool HPHP::isBuiltinByRef(HPHP::MaybeDataType)’:
/opt/hhvm/hphp/runtime/base/datatype.h:325:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
return t != KindOfNull &&
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h:326:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
t != KindOfBoolean &&
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h:327:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
t != KindOfInt64 &&
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h:328:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
t != KindOfDouble;
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/vm/preclass.h:28:0,
from /opt/hhvm/hphp/runtime/vm/class.h:31,
from /opt/hhvm/hphp/runtime/base/object-data.h:26,
from /opt/hhvm/hphp/runtime/base/type-object.h:20,
from /opt/hhvm/hphp/runtime/base/complex-types.h:26,
from /opt/hhvm/hphp/runtime/base/type-conversions.h:22,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:29,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/vm/type-constraint.h: In member function ‘bool HPHP::TypeConstraint::isArray() const’:
/opt/hhvm/hphp/runtime/vm/type-constraint.h:169:49: error: use of deleted function ‘bool folly::operator==(const folly::Optional&, const V&) [with V = HPHP::DataType]’
bool isArray() const { return m_type.dt == KindOfArray; }
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:308:24: error: declared here
template bool operator==(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/vm/preclass.h:28:0,
from /opt/hhvm/hphp/runtime/vm/class.h:31,
from /opt/hhvm/hphp/runtime/base/object-data.h:26,
from /opt/hhvm/hphp/runtime/base/type-object.h:20,
from /opt/hhvm/hphp/runtime/base/complex-types.h:26,
from /opt/hhvm/hphp/runtime/base/type-conversions.h:22,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:29,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/vm/type-constraint.h: In member function ‘bool HPHP::TypeConstraint::isObjectOrTypeAlias() const’:
/opt/hhvm/hphp/runtime/vm/type-constraint.h:177:25: error: use of deleted function ‘bool folly::operator==(const folly::Optional&, const V&) [with V = HPHP::DataType]’
return m_type.dt == KindOfObject;
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:308:24: error: declared here
template bool operator==(const Optional&, const V& other) = delete;
^
make[2]: *** [CMakeFiles/example.dir/example.cpp.o] Error 1
make[1]: *** [CMakeFiles/example.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
Interesting good catch. I didn't see that. I've been using HHVM for a while now they must be old.
My HHVM repo is cloned in /opt/hhvm. I removed the files in /usr/local/include/hphp, but now when I build the extension I get base-includes.h is missing, but the file exists.
root@azguard:/opt/hhvm/hphp/runtime/ext/extension-example# cmake .
-- Configuring for HHVM API version 20140829
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/hhvm/hphp/runtime/ext/extension-example
root@azguard:/opt/hhvm/hphp/runtime/ext/extension-example# make
[100%] Building CXX object CMakeFiles/example.dir/example.cpp.o
/opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:45: fatal error: hphp/runtime/base/base-includes.h: No such file or directory
#include "hphp/runtime/base/base-includes.h"
^
compilation terminated.
make[2]: *** [CMakeFiles/example.dir/example.cpp.o] Error 1
make[1]: *** [CMakeFiles/example.dir/all] Error 2
make: *** [all] Error 2
root@azguard:/opt/hhvm/hphp/runtime/ext/extension-example# ls /opt/hhvm/hphp/runtime/base/base-includes.h
/opt/hhvm/hphp/runtime/base/base-includes.h
root@azguard:/opt/hhvm/hphp/runtime/ext/extension-example#
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
root@azguard:/opt/hhvm/hphp/runtime/ext/extension-example# ./build.sh
** hphpize complete, now run
cmake . && make
to build-- Configuring for HHVM API version 20140702
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/hhvm/hphp/runtime/ext/extension-example
[100%] Building CXX object CMakeFiles/example.dir/example.cpp.o
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h: In function ‘bool HPHP::isBuiltinByRef(HPHP::MaybeDataType)’:
/opt/hhvm/hphp/runtime/base/datatype.h:325:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
return t != KindOfNull &&
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h:326:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
t != KindOfBoolean &&
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h:327:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
t != KindOfInt64 &&
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/base/types.h:35:0,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/base/datatype.h:328:15: error: use of deleted function ‘bool folly::operator!=(const folly::Optional&, const V&) [with V = HPHP::DataType]’
t != KindOfDouble;
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:309:24: error: declared here
template bool operator!=(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/vm/preclass.h:28:0,
from /opt/hhvm/hphp/runtime/vm/class.h:31,
from /opt/hhvm/hphp/runtime/base/object-data.h:26,
from /opt/hhvm/hphp/runtime/base/type-object.h:20,
from /opt/hhvm/hphp/runtime/base/complex-types.h:26,
from /opt/hhvm/hphp/runtime/base/type-conversions.h:22,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:29,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/vm/type-constraint.h: In member function ‘bool HPHP::TypeConstraint::isArray() const’:
/opt/hhvm/hphp/runtime/vm/type-constraint.h:169:49: error: use of deleted function ‘bool folly::operator==(const folly::Optional&, const V&) [with V = HPHP::DataType]’
bool isArray() const { return m_type.dt == KindOfArray; }
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:308:24: error: declared here
template bool operator==(const Optional&, const V& other) = delete;
^
In file included from /opt/hhvm/hphp/runtime/vm/preclass.h:28:0,
from /opt/hhvm/hphp/runtime/vm/class.h:31,
from /opt/hhvm/hphp/runtime/base/object-data.h:26,
from /opt/hhvm/hphp/runtime/base/type-object.h:20,
from /opt/hhvm/hphp/runtime/base/complex-types.h:26,
from /opt/hhvm/hphp/runtime/base/type-conversions.h:22,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:29,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/opt/hhvm/hphp/runtime/vm/type-constraint.h: In member function ‘bool HPHP::TypeConstraint::isObjectOrTypeAlias() const’:
/opt/hhvm/hphp/runtime/vm/type-constraint.h:177:25: error: use of deleted function ‘bool folly::operator==(const folly::Optional&, const V&) [with V = HPHP::DataType]’
return m_type.dt == KindOfObject;
^
In file included from /opt/hhvm/hphp/runtime/base/datatype.h:25:0,
from /opt/hhvm/hphp/runtime/base/types.h:35,
from /opt/hhvm/hphp/runtime/base/zend-functions.h:21,
from /opt/hhvm/hphp/runtime/base/hphp-system.h:27,
from /opt/hhvm/hphp/runtime/base/base-includes.h:24,
from /opt/hhvm/hphp/runtime/ext/extension-example/example.cpp:17:
/usr/local/include/hphp/third-party/folly/Optional.h:308:24: error: declared here
template bool operator==(const Optional&, const V& other) = delete;
^
make[2]: *** [CMakeFiles/example.dir/example.cpp.o] Error 1
make[1]: *** [CMakeFiles/example.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: