facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.18k stars 2.99k forks source link

can't build git version under Debian #599

Closed qindj closed 12 years ago

qindj commented 12 years ago

Hi, all

I just update my local version from git

but can not build, following is errors:

[ 12%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/intercept.cpp.o In file included from /software/dev/hhvm-git/src/runtime/vm/translator/hopt/tracebuilder.h:22, from /software/dev/hhvm-git/src/runtime/vm/translator/hopt/hhbctranslator.h:23, from /software/dev/hhvm-git/src/runtime/vm/translator/translator-x64.h:31, from /software/dev/hhvm-git/src/runtime/base/intercept.cpp:29: /software/dev/hhvm-git/src/runtime/vm/translator/hopt/ir.h: In constructor PHP::VM::JIT::ConstInstruction::ConstInstruction(HPHP::VM::JIT::Opcode, HPHP::VM::JIT::Type::Tag, HPHP::int64) /software/dev/hhvm-git/src/runtime/vm/translator/hopt/ir.h:808: error: uninitialized member 鈥楬PHP::VM::JIT::ConstInstruction::::m_tca鈥with 鈥榗onst鈥type 鈥榰nsigned char* const鈥 /software/dev/hhvm-git/src/runtime/vm/translator/hopt/ir.h: In constructor 鈥楬PHP::VM::JIT::ConstInstruction::ConstInstruction(HPHP::VM::JIT::Opcode, HPHP::int64)

.....

pls help me. thank you.

jackywei commented 12 years ago

are you build it in 32bit linux? what's your detailed configuration for build system.

qindj commented 12 years ago

NO, 64bit, previous version(also from git, some weeks ago) can be built

Linux dibian 2.6.32-5-amd64

icsa@icsa-dibian:/software/dev/bin$ ./curl -V curl 7.21.2 (x86_64-unknown-linux-gnu) libcurl/7.21.2 OpenSSL/0.9.8o zlib/1.2.7 libidn/1.25 libssh2/1.2.6 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: IDN IPv6 Largefile NTLM SSL libz

libevent-1.4.14b-stable

jemalloc-3.0.0

libmemcached-0.49

libunwind-1.0

icsa@icsa-dibian:/software/dev/lib$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-2' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-2)

system is up to date

thank you for your help!

jackywei commented 12 years ago

I tried GCC4.7.1 but failed too, they said they did not support 4.7 gcc offically. so I down grade to 4.6.1, and now works fine, so maybe you could try to down grade your GCC to 4.6.1 too.

jackywei commented 12 years ago

you could refer to this issue thread.https://github.com/facebook/hiphop-php/issues/568

qindj commented 12 years ago

@jackywei Thank you for your help. I tired gcc4.6.2 but got another error on 90%

log:

Linking CXX executable hphp ../../bin/libhphp_runtime.a(type_string.cpp.o): In function _GLOBAL__sub_I__ZN4HPHP11null_stringE': type_string.cpp:(.text.startup+0x28): undefined reference toboost::system::get_system_category()' type_string.cpp:(.text.startup+0x34): undefined reference to boost::system::get_generic_category()' type_string.cpp:(.text.startup+0x40): undefined reference toboost::system::get_generic_category()' type_string.cpp:(.text.startup+0x4c): undefined reference to boost::system::get_generic_category()' type_string.cpp:(.text.startup+0x58): undefined reference toboost::system::get_system_category()' ../../bin/libhphp_runtime.a(thread_init_fini.cpp.o): In function _GLOBAL__sub_I__ZN4HPHP10extra_initE': thread_init_fini.cpp:(.text.startup+0x23): undefined reference toboost::system::get_system_category()' thread_init_fini.cpp:(.text.startup+0x2f): undefined reference to boost::system::get_generic_category()' thread_init_fini.cpp:(.text.startup+0x3b): undefined reference toboost::system::get_generic_category()' thread_init_fini.cpp:(.text.startup+0x47): undefined reference to boost::system::get_generic_category()' thread_init_fini.cpp:(.text.startup+0x53): undefined reference toboost::system::get_system_category()' ../../bin/libhphp_runtime.a(object_data.cpp.o): In function _GLOBAL__sub_I__ZN4HPHP10ObjectData9os_max_idE': object_data.cpp:(.text.startup+0x23): undefined reference toboost::system::get_system_category()' object_data.cpp:(.text.startup+0x2f): undefined reference to boost::system::get_generic_category()' object_data.cpp:(.text.startup+0x3b): undefined reference toboost::system::get_generic_category()' object_data.cpp:(.text.startup+0x47): undefined reference to boost::system::get_generic_category()' object_data.cpp:(.text.startup+0x53): undefined reference toboost::system::get_system_category()' ../../bin/libhphp_runtime.a(variable_serializer.cpp.o): In function `_GLOBAL__sub_I__ZN4HPHP18VariableSerializerC2ENS0_4TypeEii':

tried libboost 1.5.0

thank you for your time!

h4ck3rm1k3 commented 12 years ago

Hi there use my branch, it just works, it has the debian packaging. I have not merge master in some weeks.

dpkg-buildpackage -us -uc works! https://github.com/h4ck3rm1k3/hiphop-php

mike

On Fri, Sep 28, 2012 at 5:15 AM, qindj notifications@github.com wrote:

@jackywei https://github.com/jackywei Thank you for your help. I tired gcc4.6.2 but got another error on 90%

log:

Linking CXX executable hphp ../../bin/libhphp_runtime.a(type_string.cpp.o): In function _GLOBALsub_IZN4HPHP11null_stringE': type_string.cpp:(.text.startup+0x28): undefined reference to boost::system::get_system_category()' type_string.cpp:(.text.startup+0x34): undefined reference to boost::system::get_generic_category()' type_string.cpp:(.text.startup+0x40): undefined reference to boost::system::get_generic_category()' type_string.cpp:(.text.startup+0x4c): undefined reference to boost::system::get_generic_category()' type_string.cpp:(.text.startup+0x58): undefined reference to boost::system::get_system_category()' ../../bin/libhphp_runtime.a(thread_init_fini.cpp.o): In function _GLOBALsub_IZN4HPHP10extra_initE': thread_init_fini.cpp:(.text.startup+0x23): undefined reference to boost::system::get_system_category()' thread_init_fini.cpp:(.text.startup+0x2f): undefined reference to boost::system::get_generic_category()' thread_init_fini.cpp:(.text.startup+0x3b): undefined reference to boost::system::get_generic_category()' thread_init_fini.cpp:(.text.startup+0x47): undefined reference to boost::system::get_generic_category()' thread_init_fini.cpp:(.text.startup+0x53): undefined reference to boost::system::get_system_category()' ../../bin/libhphp_runtime.a(object_data.cpp.o): In function _GLOBALsub_IZN4HPHP10ObjectData9os_max_idE': object_data.cpp:(.text.startup+0x23): undefined reference to boost::system::get_system_category()' object_data.cpp:(.text.startup+0x2f): undefined reference to boost::system::get_generic_category()' object_data.cpp:(.text.startup+0x3b): undefined reference to boost::system::get_generic_category()' object_data.cpp:(.text.startup+0x47): undefined reference to boost::system::get_generic_category()' object_data.cpp:(.text.startup+0x53): undefined reference to boost::system::get_system_category()' ../../bin/libhphp_runtime.a(variable_serializer.cpp.o): In function `_GLOBALsub_IZN4HPHP18VariableSerializerC2ENS0_4TypeEii':

tried libboost 1.5.0

thank you for your time!

— Reply to this email directly or view it on GitHubhttps://github.com/facebook/hiphop-php/issues/599#issuecomment-8963070.

James Michael DuPont Member of Free Libre Open Source Software Kosova http://flossk.org Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com Contributor FOSM, the CC-BY-SA map of the world http://fosm.org Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3 Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3

jackywei commented 12 years ago

After install gcc4.6(actually I use the gcc4.6.1, maybe follow sub version number will not be the same as yours), please do following step: cp /usr/local/gcc/lib64/libstdc++.so.6.0.16 /usr/lib64/. mv /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.bak ln -s -f libstdc++.so.6.0.16 libstdc++.so.6

try this, and good luck~~~

qindj commented 12 years ago

thank you all...but after i checkout the lastest git version, everything works find...

git verison: commit 86cc9c8a5e799dec906fcc32c88e7c3030e2072a Author: andrewparoski andrewparoski@fb.com Date: Sun Sep 23 22:04:22 2012 -0700

@jackywei and @h4ck3rm1k3 thank you for your help !