javer / gentoo-overlay

Gentoo Portage Overlay [javer]
9 stars 11 forks source link

HHVM 2.3.2 compile fails with onigurama-5.9.2 #5

Closed pelletiermaxime closed 10 years ago

pelletiermaxime commented 10 years ago

It seems to build with onigurama 5.9.4, but can't test a full compile successfully because of another problem. Probably needs 5.9.4 since the commit in https://github.com/facebook/hhvm/issues/1400.

javer commented 10 years ago

I've sucessfully compiled HHVM 2.3.2 and master with dev-libs/oniguruma-5.9.2-r1. What kind of errors have you seen?

pelletiermaxime commented 10 years ago
In file included from /usr/include/unicode/utypes.h:36:0,
                 from /usr/include/unicode/ucnv_err.h:86,
                 from /usr/include/unicode/ucnv.h:50,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /var/tmp/portage/dev-php/hhvm-2.3.2/work/hhvm-2.3.2/hphp/runtime/base/program-functions.cpp:68:
/usr/include/unicode/umachine.h:276:29: error: conflicting declaration ‘typedef short unsigned int OnigUChar’
In file included from /var/tmp/portage/dev-php/hhvm-2.3.2/work/hhvm-2.3.2/hphp/runtime/base/program-functions.cpp:66:0:
/usr/include/oniguruma.h:99:24: error: ‘OnigUChar’ has a previous declaration as ‘typedef unsigned char OnigUChar’
[ 46%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/timezone.cpp.o
make[2]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/program-functions.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2
make: *** [all] Error 2
emake failed
└> emerge --info '=dev-php/hhvm-2.3.2::javer'
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.16.0, 3.10.17-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8099688 total,   2345760 free
KiB Swap:     986108 total,    983060 free
Timestamp of tree: Sun, 29 Dec 2013 22:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.8.5-r4, 1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.16.0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
javer commented 10 years ago

HHVM 2.3.2 does not include commit https://github.com/facebook/hhvm/commit/d93cdc2ca8b94ce6ffad40630ed4b39445ee975a which fixes compatibility with oniguruma 5.9.4 so you should use hhvm-9999 (master) or wait for HHVM 2.3.3/2.4, or downgrade oniguruma to 5.9.2.