Last modified: 2014-09-13 23:28:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51789, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49789 - HHVM doesn't compile on Vagrant
HHVM doesn't compile on Vagrant
Status: RESOLVED WORKSFORME
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
: hhvm
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-19 00:54 UTC by Tyler Romeo
Modified: 2014-09-13 23:28 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tyler Romeo 2013-06-19 00:54:42 UTC
I've tried compiling HHVM on Vagrant with both Windows and Linux as the host system (in case it mattered). However, I'm running into the following error when it tries to compile the memcached extension:

/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp: In member function âHPHP::Variant HPHP::c_Memcache::t_getversion()â:
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:361:5: error: âmemcached_server_instance_stâ was not declared in this scope
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:361:34: error: expected â;â before âinstanceâ
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:364:10: error: âinstanceâ was not declared in this scope
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:369:9: error: âinstanceâ was not declared in this scope
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp: In member function âHPHP::Array HPHP::c_Memcache::t_getstats(HPHP::CStrRef, int, int)â:
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:461:3: error: âmemcached_server_instance_stâ was not declared in this scope
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:461:32: error: expected â;â before âinstanceâ
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:465:53: error: âinstanceâ was not declared in this scope
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp: In member function âHPHP::Array HPHP::c_Memcache::t_getextendedstats(HPHP::CStrRef, int, int)â:
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:490:5: error: âmemcached_server_instance_stâ was not declared in this scope
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:490:34: error: expected â;â before âserverâ
/home/vagrant/hiphop-php/hphp/runtime/ext/ext_memcache.cpp:495:5: error: âserverâ was not declared in this scope

This only occurs on Vagrant, and not on regular Ubuntu 12.04 VMs. I think it may have something to do with the package configuration, but I'm not sure.
Comment 1 Ori Livneh 2013-06-19 04:58:05 UTC
There's a note on https://github.com/facebook/hiphop-php/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04 saying you should try removing CMakeCache.txt if you get build errors. Have you tried that? Also, have you otherwise followed the instructions on that page?
Comment 2 Tyler Romeo 2013-06-19 05:02:11 UTC
Yep, I've tried it all, and the people at Facebook have no idea either. The main error seems to be the missing memcached_server_instance_st type. In the vagrant VM, when I grep through /usr/include/libmemcached, this type is nowhere to be found. On a normal Ubuntu VM, it's there. So it has something to do with whatever version of libmemcached-dev is being installed.
Comment 3 Tyler Romeo 2013-08-07 20:12:25 UTC
The reason this occurs is because of the Wikimedia APT repository. It has some sort of custom version of libmemcached-dev. When I removed the repository and then purged and re-installed libmemcached, it continues to compile successfully.
Comment 4 Andre Klapper 2013-09-11 22:45:46 UTC
[mass-moving from Tools>MediaWiki-Vagrant to separate product. See bug 54041. Filter bugmail on this comment.]
Comment 5 Ori Livneh 2013-09-16 05:34:20 UTC
I was able to successfully compile HHVM with libmemcached-dev 1.0.17-1~wmf+precise1 installed. Either it wasn't the problem, or (more likely) it was once a problem but has since been fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links