Hi: I am having problem while trying to compile HipHop similar to what has been discussed here (https://github.com/facebook/hiphop-php/issues/480#pull_comment_form) My environments are: setenv CC /usr/local/bin/gcc44 setenv CXX /usr/local/bin/g++44 setenv HPHP_HOME `pwd` setenv HPHP_LIB `pwd`/bin setenv CMAKE_PREFIX_PATH `pwd`/../libs and I got the following pcre-related errors, when checked the lines specified in the error it seems to be associated with pcre flushing cache. Summary of error is: [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/preg.cpp.o /root/hhbuild/hiphop-php/src/runtime/base/preg.cpp: In function 'HPHP::pcre_cache_entry* HPHP::pcre_get_compiled_regex_cache(const HPHP::String&)': /root/hhbuild/hiphop-php/src/runtime/base/preg.cpp:138: error: 'pcre_info' was not declared in this scope *** Error code 1 I checked the specific line 138 which reads like: if (pcre_info(pce->re, NULL, NULL) == PCRE_ERROR_BADMAGIC) { pcre_cache.cleanup(); Any hints? Could not figure out whether it is FreeBSD9-, pcre- or HipHop-related? Thanks! /z The entire make output is as of below: # make Scanning dependencies of target xhp [ 0%] Building CXX object src/third_party/xhp/xhp/CMakeFiles/xhp.dir/code_rope.cpp.o [ 0%] Building CXX object src/third_party/xhp/xhp/CMakeFiles/xhp.dir/xhp_preprocess.cpp.o [ 0%] Building CXX object src/third_party/xhp/xhp/CMakeFiles/xhp.dir/xhpize.cpp.o [ 0%] Building CXX object src/third_party/xhp/xhp/CMakeFiles/xhp.dir/fastpath.cpp.o [ 0%] Building CXX object src/third_party/xhp/xhp/CMakeFiles/xhp.dir/parser.yacc.cpp.o [ 1%] Building CXX object src/third_party/xhp/xhp/CMakeFiles/xhp.dir/scanner.lex.cpp.o scanner.lex.cpp: In function 'yy_state_type yy_try_NUL_trans(yy_state_type, void*)': scanner.lex.cpp:9714: warning: unused variable 'yyg' Linking CXX static library ../../../../bin/libxhp.a [ 1%] Built target xhp Scanning dependencies of target afdt [ 1%] Building C object src/third_party/libafdt/CMakeFiles/afdt.dir/src/lowlevel.c.o [ 1%] Building C object src/third_party/libafdt/CMakeFiles/afdt.dir/src/strlcpy.c.o [ 1%] Building C object src/third_party/libafdt/CMakeFiles/afdt.dir/src/sync.c.o [ 1%] Building C object src/third_party/libafdt/CMakeFiles/afdt.dir/src/util.c.o [ 1%] Building C object src/third_party/libafdt/CMakeFiles/afdt.dir/src/async.c.o Linking C static library ../../../bin/libafdt.a [ 1%] Built target afdt Scanning dependencies of target mbfl [ 2%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter.c.o [ 2%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_string.c.o [ 2%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_language.c.o [ 2%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_encoding.c.o [ 2%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_convert.c.o [ 2%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_ident.c.o [ 2%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_memory_device.c.o [ 3%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_allocators.c.o [ 3%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfl_filter_output.c.o [ 3%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter_pass.c.o [ 3%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter_wchar.c.o [ 3%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter_8bit.c.o [ 3%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp936.c.o [ 3%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_hz.c.o [ 4%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_euc_tw.c.o [ 4%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_big5.c.o [ 4%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_euc_jp.c.o [ 4%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_jis.c.o [ 4%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_1.c.o [ 4%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_2.c.o [ 4%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp1254.c.o [ 5%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp1252.c.o [ 5%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp1251.c.o [ 5%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_ascii.c.o [ 5%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_3.c.o [ 5%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_4.c.o [ 5%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_5.c.o [ 5%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_6.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_7.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_8.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_9.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_10.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_13.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_14.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_15.c.o [ 6%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso8859_16.c.o [ 7%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_htmlent.c.o [ 7%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_byte2.c.o [ 7%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_byte4.c.o [ 7%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_uuencode.c.o [ 7%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_base64.c.o [ 7%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_sjis.c.o [ 7%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_7bit.c.o [ 8%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_qprint.c.o [ 8%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_ucs4.c.o [ 8%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_ucs2.c.o [ 8%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_utf32.c.o [ 8%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_utf16.c.o [ 8%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_utf8.c.o [ 8%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_utf7.c.o [ 9%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_utf7imap.c.o [ 9%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_euc_jp_win.c.o [ 9%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp932.c.o [ 9%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp51932.c.o [ 9%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_euc_cn.c.o [ 9%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_euc_kr.c.o [ 9%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_uhc.c.o [ 10%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso2022_jp_ms.c.o [ 10%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_iso2022_kr.c.o [ 10%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp866.c.o [ 10%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_koi8r.c.o [ 10%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_koi8u.c.o [ 10%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_armscii8.c.o [ 10%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/mbfilter_cp850.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/filters/html_entities.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_ja.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_de.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_en.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_hy.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_tr.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_kr.c.o [ 11%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_ru.c.o [ 12%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_ua.c.o [ 12%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_zh.c.o [ 12%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_uni.c.o [ 12%] Building C object src/third_party/libmbfl/mbfl/CMakeFiles/mbfl.dir/__/nls/nls_neutral.c.o Linking C static library ../../../../bin/libmbfl.a [ 12%] Built target mbfl Scanning dependencies of target sqlite3 [ 12%] Building C object src/third_party/libsqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.o Linking C static library ../../../bin/libsqlite3.a [ 12%] Built target sqlite3 Scanning dependencies of target timelib [ 12%] Building C object src/third_party/timelib/CMakeFiles/timelib.dir/astro.c.o [ 12%] Building C object src/third_party/timelib/CMakeFiles/timelib.dir/dow.c.o [ 12%] Building C object src/third_party/timelib/CMakeFiles/timelib.dir/parse_date.c.o [ 12%] Building C object src/third_party/timelib/CMakeFiles/timelib.dir/parse_tz.c.o [ 12%] Building C object src/third_party/timelib/CMakeFiles/timelib.dir/timelib.c.o [ 13%] Building C object src/third_party/timelib/CMakeFiles/timelib.dir/tm2unixtime.c.o [ 13%] Building C object src/third_party/timelib/CMakeFiles/timelib.dir/unixtime2tm.c.o Linking C static library ../../../bin/libtimelib.a [ 13%] Built target timelib Scanning dependencies of target hphp_runtime_static [ 13%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/builtin_functions.cpp.o [ 13%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/class_info.cpp.o [ 13%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/comparisons.cpp.o [ 13%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/debuggable.cpp.o [ 14%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/dynamic_object_data.cpp.o [ 14%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/execution_context.cpp.o [ 14%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/fiber_async_func.cpp.o [ 14%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/fiber_reference_map.cpp.o [ 14%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/fiber_safe.cpp.o [ 14%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/frame_injection.cpp.o [ 14%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/global_array_wrapper.cpp.o [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/hphp_ffi.cpp.o [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/hphp_system.cpp.o [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/ini_setting.cpp.o [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/intercept.cpp.o [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/list_assignment.cpp.o [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/object_data.cpp.o [ 15%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/preg.cpp.o /root/hhbuild/hiphop-php/src/runtime/base/preg.cpp: In function 'HPHP::pcre_cache_entry* HPHP::pcre_get_compiled_regex_cache(const HPHP::String&)': /root/hhbuild/hiphop-php/src/runtime/base/preg.cpp:138: error: 'pcre_info' was not declared in this scope *** Error code 1 Stop in /root/hhbuild/hiphop-php. *** Error code 1 Stop in /root/hhbuild/hiphop-php. *** Error code 1 Stop in /root/hhbuild/hiphop-php.
Shane Ambler
2012-Apr-19 14:27 UTC
pcre-related problem to compile HipHop in FreeBSD9-RELEASE
On 18/04/2012 17:29, Zenny wrote:> Hi: > > I am having problem while trying to compile HipHop similar to what has > been discussed here > (https://github.com/facebook/hiphop-php/issues/480#pull_comment_form) >> /root/hhbuild/hiphop-php/src/runtime/base/preg.cpp:138: error: > 'pcre_info' was not declared in this scope > *** Error code 1 > > I checked the specific line 138 which reads like: > > if (pcre_info(pce->re, NULL, NULL) == PCRE_ERROR_BADMAGIC) { > pcre_cache.cleanup(); > > Any hints? Could not figure out whether it is FreeBSD9-, pcre- or > HipHop-related? > Thanks!not declared in this scope - means it hasn't found a declaration for that function. Usual cause is not including the correct header file, but in the case of pcre the recent update broke a few programs when first brought in. I don't see it by greping the pcre headers and a quick search on http://www.freebsd.org/cgi/man.cgi for pcre_info in 9.0-release and ports shows it as obsolete and replaced by pcre_fullinfo() - my guess is pcre_info() was removed in the pcre-8.30 release.