mongofill / mongofill-hhvm

A mix of the original Mongofill extension + BSON implementation in C++
MIT License
32 stars 19 forks source link

Compilation fails with HHVM 3.5.0 on Debian Wheezy #28

Closed kahun closed 9 years ago

kahun commented 9 years ago

$ ./build.sh

git submodule update --init Submodule 'vendor/mongofill/mongofill' (git://github.com/mongofill/mongofill) registered for path 'vendor/mongofill/mongofill' Cloning into 'vendor/mongofill/mongofill'... remote: Counting objects: 1370, done. remote: Total 1370 (delta 0), reused 0 (delta 0) Receiving objects: 100% (1370/1370), 1002.39 KiB | 273 KiB/s, done. Resolving deltas: 100% (828/828), done. Submodule path 'vendor/mongofill/mongofill': checked out '5a47b936da015e6ceecf0fb0f3f30fbb05980214' hhvm tools/merge.php hphpize * hphpize complete, now run cmake . && make to build, make test to test cmake . -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- The ASM compiler identification is GNU -- Found assembler: /opt/gcc-4.9.2/bin/gcc -- Check for working C compiler: /opt/gcc-4.9.2/bin/gcc -- Check for working C compiler: /opt/gcc-4.9.2/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /opt/gcc-4.9.2/bin/g++ -- Check for working CXX compiler: /opt/gcc-4.9.2/bin/g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring for HHVM API version 20150112 -- bson Include dir: /usr/local/include/libbson-1.0 -- libbson library: /usr/local/lib/libbson-1.0.so -- Configuring done -- Generating done -- Build files have been written to: /opt/mongofill-hhvm make Scanning dependencies of target mongo [ 33%] Building CXX object CMakeFiles/mongo.dir/src/bson.cpp.o In file included from /usr/include/hphp/runtime/base/string-data.h:22:0, from /usr/include/hphp/runtime/base/type-string.h:22, from /usr/include/hphp/runtime/base/complex-types.h:24, from /usr/include/hphp/runtime/ext/extension.h:21, from /usr/include/hphp/runtime/base/base-includes.h:24, from /opt/mongofill-hhvm/src/bson.cpp:1: /usr/include/hphp/util/alloc.h: En la función ‘void HPHP::lowfree(void)’: /usr/include/hphp/util/alloc.h:128:39: error: ‘MALLOCX_ARENA’ no se declaró en este ámbito dallocx(ptr, MALLOCX_ARENA(low_arena)); ^ In file included from /usr/include/hphp/third-party/folly/ThreadLocal.h:53:0, from /usr/include/hphp/third-party/folly/ThreadCachedInt.h:31, from /usr/include/hphp/third-party/folly/AtomicHashArray.h:41, from /usr/include/hphp/third-party/folly/AtomicHashMap.h:93, from /usr/include/hphp/runtime/vm/named-entity.h:26, from /usr/include/hphp/runtime/vm/type-constraint.h:20, from /usr/include/hphp/runtime/vm/preclass.h:28, from /usr/include/hphp/runtime/vm/class.h:32, from /usr/include/hphp/runtime/base/object-data.h:25, from /usr/include/hphp/runtime/base/type-object.h:20, from /usr/include/hphp/runtime/base/complex-types.h:26, from /usr/include/hphp/runtime/ext/extension.h:21, from /usr/include/hphp/runtime/base/base-includes.h:24, from /opt/mongofill-hhvm/src/bson.cpp:1: /usr/include/hphp/third-party/folly/detail/ThreadLocalDetail.h: En la función miembro static ‘static void folly::threadlocal_detail::StaticMeta::reserve(uint32_t)’: /usr/include/hphp/third-party/folly/detail/ThreadLocalDetail.h:365:67: error: ‘MALLOCX_ZERO’ no se declaró en este ámbito success = (xallocx(threadEntry->elements, newByteSize, 0, MALLOCX_ZERO) ^ /usr/include/hphp/third-party/folly/detail/ThreadLocalDetail.h:372:42: error: ‘MALLOCX_ZERO’ no se declaró en este ámbito mallocx(newByteSize, MALLOCX_ZERO))) != nullptr); ^ make[2]: _* [CMakeFiles/mongo.dir/src/bson.cpp.o] Error 1 make[1]: * [CMakeFiles/mongo.dir/all] Error 2 make: * [all] Error 2

kahun commented 9 years ago

Fixed upgrading jemalloc to 3.6.

Thanks to @JulienPalard #22

azec-pdx commented 9 years ago

How can I upgrade on Ubuntu 12.04?