facebook / hhvm

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

HHVM build failing on REL7.1 #5353

Closed terah closed 9 years ago

terah commented 9 years ago

Hi,

Running on Red Hat Enterprise Linux Server release 7.1 (Maipo)


rm -fr hhvm
git clone https://github.com/facebook/hhvm -b master  --recursive
cd hhvm/
cmake .
make -j$(($(nproc)+1))

produces

[ 98%] Generating webscalesqlclient_depends.c
Scanning dependencies of target webscalesqlclient
[ 98%] Building C object libmysql/CMakeFiles/webscalesqlclient.dir/webscalesqlclient_depends.c.o
00:00:46 651  (0   ) hh_format.native                                                         ONbP--iL \Linking CXX static library libwebscalesqlclient.a
/usr/bin/ar: creating /tmp/hhvm/third-party/webscalesqlclient/webscalesql-5.6/libmysql/libwebscalesqlclient.a
[ 98%] Built target webscalesqlclient
Scanning dependencies of target symlink_libwebscalesqlclient_r.a
00:00:46 651  (0   ) hh_format.native                                                         ONbP--iL \[100%] Generating libwebscalesqlclient_r.a
[100%] Built target symlink_libwebscalesqlclient_r.a
[ 30%] No install step for 'webscalesqlclient'
[ 30%] Completed 'webscalesqlclient'
[ 30%] Built target webscalesqlclient
Finished, 746 targets (0 cached) in 00:00:49.
[ 30%] Built target hack
make: *** [all] Error 2
simonwelsh commented 9 years ago

Can you run make without a -j flag, so the error's obvious?

fredemmott commented 9 years ago

yep - unfortunately your paste doesn't include an error - '[all] Error 2' just means that an error occurred somewhere higher up, possibly several screenfulls.

paulm17 commented 9 years ago

I am getting the same result. Does this help you?

http://pastebin.com/raw.php?i=QWmUH5N8

fredemmott commented 9 years ago
/root/rpmbuild/BUILD/hhvm-3.7/third-party/proxygen/lib/http/gen_HTTPCommonHeaders.cpp.sh: line 14: gperf: command not found
[  2%] [  2%] make[2]: *** [third-party/proxygen/lib/http/HTTPCommonHeaders.cpp] Error 127

Try installing gperf. This shouldn't be required on master though, but it looks like you're building 3.7?

paulm17 commented 9 years ago

Yes I am (3.7). Will give it a go @fredemmott. I'm not sure what the OP is building tho.

paulm17 commented 9 years ago

@fredemmott that's what worked for me. Thanks!

tegansnyder commented 9 years ago

@fredemmott installing gperf worked for me too. Thanks.

fredemmott commented 9 years ago

@tegansnyder : what version are you building? I want to undo your wiki edit after the next release, as this should not be required in master.

terah commented 9 years ago

Sorry for the delay...

/tmp/hhvm/third-party/proxygen/lib/http/gen_HTTPCommonHeaders.cpp.sh: line 14: gperf: command not found
make[2]: *** [third-party/proxygen/lib/http/HTTPCommonHeaders.cpp] Error 127
make[1]: *** [third-party/proxygen/CMakeFiles/hphp_proxygen.dir/all] Error 2
make: *** [all] Error 2
terah commented 9 years ago

I've installed gperf and it looks like it's going to build. Thanks for the help.

tegansnyder commented 9 years ago

@fredemmott sorry for late reply, at the time I was building 3.8.0-dev on RHEL 7.1. I haven't tried the latest yet.