{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/5184","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/5184/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/5184/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/5184/events","html_url":"https://github.com/facebook/hhvm/issues/5184","id":69311283,"number":5184,"title":"hhvm-3.6.1 fail to build with gcc-5 RC1","user":{"login":"costel78","id":5815647,"avatar_url":"https://avatars.githubusercontent.com/u/5815647?v=3","gravatar_id":"","url":"https://api.github.com/users/costel78","html_url":"https://github.com/costel78","followers_url":"https://api.github.com/users/costel78/followers","following_url":"https://api.github.com/users/costel78/following{/other_user}","gists_url":"https://api.github.com/users/costel78/gists{/gist_id}","starred_url":"https://api.github.com/users/costel78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/costel78/subscriptions","organizations_url":"https://api.github.com/users/costel78/orgs","repos_url":"https://api.github.com/users/costel78/repos","events_url":"https://api.github.com/users/costel78/events{/privacy}","received_events_url":"https://api.github.com/users/costel78/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/build","name":"build","color":"f7de7b"},{"url":"https://api.github.com/repos/facebook/hhvm/labels/wishlist","name":"wishlist","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-18T13:52:12Z","updated_at":"2016-03-21T22:53:17Z","closed_at":"2016-03-21T22:53:17Z","body":"hhvm compiled from source failed to build with gcc-5 at the begining throwing error regarding std::basic_string.\r\nWhen -D_GLIBCXX_USE_CXX11_ABI=0 was added to cflags it fail to link in the final phase.\r\nI make it verbose to see the command:\r\n\r\n```\r\n[100%] Built target ext_hhvm_static\r\nLinking CXX executable hhvm\r\n/usr/bin/c++   -O2 -pipe -march=native -w -D_GLIBCXX_USE_CXX11_ABI=0  -Wall -std=gnu++11 -ffunction-sections -fno-gcse -fno-omit-frame-pointer -ftemplate-depth-180 -Woverloaded-virtual -Wno-deprecated -Wno-strict-aliasing -Wno-write-strings -Wno-invalid-offsetof -fno-operator-names -Wno-error=array-bounds -Wno-error=switch -Werror=format-security -Wno-unused-result -Wno-sign-compare -Wno-attributes -Wno-maybe-uninitialized -Wno-unused-local-typedefs -fno-canonical-system-headers -Wno-deprecated-declarations -Wno-unused-function  -ftrack-macro-expansion=0 -fno-builtin-memcmp -fno-delete-null-pointer-checks -mcrc32 -O3 -DNDEBUG -fno-gcse -momit-leaf-frame-pointer --param max-inline-insns-auto=100 --param early-inlining-insns=200 --param max-early-inliner-iterations=50   -Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now CMakeFiles/hhvm.dir/global-variables.cpp.o CMakeFiles/hhvm.dir/main.cpp.o CMakeFiles/hhvm.dir/process-init.cpp.o  -o hhvm -rdynamic -Wl,-uregister_libevent_server,-uregister_fastcgi_server -Wl,--whole-archive ../runtime/libhphp_runtime.a ../runtime/ext/libhphp_runtime_ext.a ../runtime/ext_zend_compat/libhphp_ext_zend_compat.a -Wl,--no-whole-archive ../compiler/libhphp_analysis.a ../runtime/ext_hhvm/libext_hhvm.a ../system/libhphp_system.a ../parser/libhphp_parser.a ../zend/libhphp_zend.a ../util/libhphp_util.a ../hhbbc/libhphp_hhbbc.a ../vixl/libvixl.a ../neo/libneo.a ../../third-party/thrift/libhphp_thrift.a ../../third-party/proxygen/libhphp_proxygen.a -fuse-ld=gold -Wl,--section-ordering-file,/var/tmp/portage/dev-php/hhvm-3.6.1/work/hhvm-3.6.1/hphp/hhvm/../tools/oss_hot_section_ordering -lyaml ../runtime/ext/libhphp_runtime_ext.a ../../third-party/squangle/libsquangle.a -lre2 ../../third-party/double-conversion/libdouble-conversion.a ../../third-party/fastlz/libfastlz.a ../../third-party/timelib/libtimelib.a ../../third-party/mcrouter/libmcrouter.a ../../third-party/folly/libfolly.a -lboost_context-mt -lboost_regex-mt ../../third-party/libafdt/libafdt.a ../../third-party/libmbfl/mbfl/libmbfl.a -Wl,--wrap=pthread_create -Wl,--wrap=pthread_exit -Wl,--wrap=pthread_join -lMagickWand-6.Q16 -lMagickCore-6.Q16 -lgmp -lc-client -ljpeg -lpng -lvpx -lfreetype -lfribidi -ldl -lpcre -licudata -licui18n -licuuc -lcurl -lcap -lresolv -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic -ltbb -lssl -lcrypto -lz -lbz2 -lxml2 -lxslt -lexslt -lexpat -lonig -lmcrypt -lldap -llber -lmemcached -lcrypt -lrt -lsqlite3 -llz4 -lzip -ldl -lpcre -licudata -licui18n -licuuc -lcurl -lcap -lresolv -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic -ltbb -lssl -lcrypto -lz -lbz2 -lxml2 -lxslt -lexslt -lexpat -lonig -lmcrypt -lldap -llber -lmemcached -lcrypt -lrt -lsqlite3 -llz4 -lzip -ljemalloc -lboost_program_options-mt -lboost_filesystem-mt ../../third-party/webscalesqlclient/src//libmysql/libwebscalesqlclient_r.a ../../third-party/webscalesqlclient/src//extra/yassl/libyassl.a ../../third-party/webscalesqlclient/src//extra/yassl/taocrypt/libtaocrypt.a -levent -lreadline -lpam -ldwarf -lelf ../../third-party/thrift/libhphp_thrift.a -lboost_thread-mt -lboost_system-mt -lglog -lpthread \r\n../runtime/libhphp_runtime.a(preg.cpp.o):preg.cpp:function std::string* google::MakeCheckOpString<double, double>(double const&, double const&, char const*): error: undefined reference to 'google::base::CheckOpMessageBuilder::NewString()'\r\n../runtime/libhphp_runtime.a(preg.cpp.o):preg.cpp:function std::string* google::MakeCheckOpString<HPHP::StringData const*, HPHP::StringData const*>(HPHP::StringData const* const&, HPHP::StringData const* const&, char const*): error: undefined reference to 'google::base::CheckOpMessageBuilder::NewString()'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::typed_value<bool, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const: error: undefined reference to 'boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool*, int)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::typed_value<std::string, char>::xparse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&) const: error: undefined reference to 'boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, std::string*, int)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::string const&, std::string const&, int): error: undefined reference to 'boost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::string const&, std::string const&, int): error: undefined reference to 'boost::program_options::error_with_option_name::error_with_option_name(std::string const&, std::string const&, std::string const&, int)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::typed_value<bool, char>::name() const: error: undefined reference to 'boost::program_options::arg'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::typed_value<int, char>::name() const: error: undefined reference to 'boost::program_options::arg'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::typed_value<std::vector<std::string, std::allocator<std::string> >, char>::name() const: error: undefined reference to 'boost::program_options::arg'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::typed_value<std::string, char>::name() const: error: undefined reference to 'boost::program_options::arg'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const*): error: undefined reference to 'boost::program_options::to_internal(std::string const&)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const*): error: undefined reference to 'boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const*): error: undefined reference to 'boost::program_options::to_internal(std::string const&)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function void boost::program_options::validate<std::string, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::string, std::allocator<std::string> >*, int): error: undefined reference to 'boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, std::string*, int)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function void boost::program_options::validate<std::string, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::string, std::allocator<std::string> >*, int): error: undefined reference to 'boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function void boost::program_options::validate<int, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*, long): error: undefined reference to 'boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function HPHP::execute_program_impl(int, char**): error: undefined reference to 'boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function HPHP::execute_program_impl(int, char**): error: undefined reference to 'boost::program_options::option_description::long_name() const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:function HPHP::execute_program_impl(int, char**): error: undefined reference to 'boost::program_options::option_description::format_name() const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>: error: undefined reference to 'boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value> >: error: undefined reference to 'boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::exception_detail::error_info_injector<boost::program_options::validation_error>: error: undefined reference to 'boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >: error: undefined reference to 'boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::program_options::typed_value<std::string, char>: error: undefined reference to 'boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::program_options::typed_value<std::vector<std::string, std::allocator<std::string> >, char>: error: undefined reference to 'boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::program_options::typed_value<int, char>: error: undefined reference to 'boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'\r\n../runtime/libhphp_runtime.a(program-functions.cpp.o):program-functions.cpp:vtable for boost::program_options::typed_value<bool, char>: error: undefined reference to 'boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'\r\n../runtime/libhphp_runtime.a(static-string-table.cpp.o):static-string-table.cpp:function std::string* google::MakeCheckOpString<long, long>(long const&, long const&, char const*): error: undefined reference to 'google::base::CheckOpMessageBuilder::NewString()'\r\n../runtime/libhphp_runtime.a(timezone.cpp.o):timezone.cpp:function std::string* google::MakeCheckOpString<char const*, char const*>(char const* const&, char const* const&, char const*): error: undefined reference to 'google::base::CheckOpMessageBuilder::NewString()'\r\n../compiler/libhphp_analysis.a(compiler.cpp.o):compiler.cpp:function HPHP::prepareOptions(HPHP::CompilerOptions&, int, char**): error: undefined reference to 'boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'\r\n../hhbbc/libhphp_hhbbc.a(main.cpp.o):main.cpp:function HPHP::HHBBC::main(int, char**): error: undefined reference to 'boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'\r\n../hhbbc/libhphp_hhbbc.a(main.cpp.o):main.cpp:function HPHP::HHBBC::main(int, char**): error: undefined reference to 'boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'\r\n../hhbbc/libhphp_hhbbc.a(main.cpp.o):main.cpp:function HPHP::HHBBC::main(int, char**): error: undefined reference to 'boost::program_options::detail::cmdline::set_additional_parser(boost::function1<std::pair<std::string, std::string>, std::string const&>)'\r\n../hhbbc/libhphp_hhbbc.a(main.cpp.o):main.cpp:function void boost::program_options::validate<unsigned long, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, unsigned long*, long): error: undefined reference to 'boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'\r\n../hhbbc/libhphp_hhbbc.a(main.cpp.o):main.cpp:function void boost::program_options::validate<unsigned int, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, unsigned int*, long): error: undefined reference to 'boost::program_options::invalid_option_value::invalid_option_value(std::string const&)'\r\ncollect2: error: ld returned 1 exit status\r\nhphp/hhvm/CMakeFiles/hhvm.dir/build.make:361: recipe for target 'hphp/hhvm/hhvm' failed\r\nmake[2]: *** [hphp/hhvm/hhvm] Error 1\r\nCMakeFiles/Makefile2:1789: recipe for target 'hphp/hhvm/CMakeFiles/hhvm.dir/all' failed\r\nmake[1]: *** [hphp/hhvm/CMakeFiles/hhvm.dir/all] Error 2\r\nMakefile:116: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nAre there plans to make it able to compile with almost here gcc 5 ?"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/199523865","html_url":"https://github.com/facebook/hhvm/issues/5184#issuecomment-199523865","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/5184","id":199523865,"user":{"login":"Orvid","id":709247,"avatar_url":"https://avatars.githubusercontent.com/u/709247?v=3","gravatar_id":"","url":"https://api.github.com/users/Orvid","html_url":"https://github.com/Orvid","followers_url":"https://api.github.com/users/Orvid/followers","following_url":"https://api.github.com/users/Orvid/following{/other_user}","gists_url":"https://api.github.com/users/Orvid/gists{/gist_id}","starred_url":"https://api.github.com/users/Orvid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orvid/subscriptions","organizations_url":"https://api.github.com/users/Orvid/orgs","repos_url":"https://api.github.com/users/Orvid/repos","events_url":"https://api.github.com/users/Orvid/events{/privacy}","received_events_url":"https://api.github.com/users/Orvid/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T22:53:17Z","updated_at":"2016-03-21T22:53:17Z","body":"GCC5 does at least compile, open a separate issue if new problems arise."}}