hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

cmake . problem (Cannot find source file "parser.yacc.cpp")

Open diegoIta opened this issue 16 years ago • 7 comments

hi, i'm following procedure for building and installing on ubuntu 9.10 but when i do "cmake ." i had a problem. this is the code:

-- MySQL Include dir: /usr/include library dir: /usr/lib -- MySQL client libraries: mysqlclient_r -- Found libevent: /home/diego/hiphop/lib/libevent.so -- Found GD: /usr/lib/libgd.so -- Found ICU header files in /home/diego/hiphop/include -- Found ICU libraries: /home/diego/hiphop/lib/libicuuc.so -- Skipping TCmalloc -- Found Intel TBB -- Found mcrypt: /usr/lib/libmcrypt.so -- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so -- Found libevent: /home/diego/hiphop/lib/libevent.so -- Found libevent 1.4.5+ -- Configuring done CMake Error in src/third_party/xhp/xhp/CMakeLists.txt: Cannot find source file "parser.yacc.cpp". Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx -- Build files have been written to: /home/diego/hiphop/hiphop-php

this it's very strange because i've tried this procedure several times before today, but this problem was never presented before. After that i've tried to make the last instruction "make" but this failed and in the console i have this code:

find: "../external-fedora/mozilla": Nessun file o directory find: "../external-fedora/mozilla": Nessun file o directory find: "../external-fedora/mozilla": Nessun file o directory Compiling system/gen/sys/dynamic_table_constant.no.cpp ... make[1]: distcc: comando non trovato make[1]: *** [system/gen/sys/dynamic_table_constant.no.o] Errore 127 make[1]: uscita dalla directory «/home/diego/hiphop/hiphop-php/src» make: *** [setup] Errore 2

have you have some ideas for resolve that? thanks everybody Diego

diegoIta avatar Jul 21 '10 13:07 diegoIta

Fixed in 34d6232dbad3db70961a36046cbaf42937f33b43

There was some missing files that my .gitignore was missing.

scottmac avatar Jul 21 '10 19:07 scottmac

This issue has returned as of git current...

joelastpass avatar Nov 09 '10 21:11 joelastpass

I've not changed anything around xhp since July.

What does git log show as the last version pulled?

scottmac avatar Nov 09 '10 22:11 scottmac

commit 7a45b5e73de5455adf1dd29d99694cdad51fce64 Author: hzhao [email protected] Date: Mon Nov 8 20:23:50 2010 -0800

Sorry I meant the ../external/fedora/mozilla/

joe@rodan:~/hiphop-php$ make make -C src make[1]: Entering directory /home/joe/hiphop-php/src' find:../external-fedora/mozilla': No such file or directory find: ../external-fedora/mozilla': No such file or directory make[2]: *** No rule to make targetdo-setup'. Stop. make[1]: *** [compiler-setup] Error 2 make[1]: Leaving directory `/home/joe/hiphop-php/src' make: *** [setup] Error 2

joelastpass avatar Nov 09 '10 22:11 joelastpass

It doesn't look like cmake ran, since thats the make from the regular hphp and not the open source version.

run cmake . then make

scottmac avatar Nov 09 '10 22:11 scottmac

Sorry. I was running that but it looks like the ubuntu package libc-client2007e-dev is now needed to complete cmake .

joelastpass avatar Nov 09 '10 22:11 joelastpass

Yeah, we added IMAP support.

scottmac avatar Nov 09 '10 22:11 scottmac