M
M
mgkirs2013-08-31 01:11:43
PHP
mgkirs, 2013-08-31 01:11:43

Help build HHVM for Fedora 19

Installing according to the manual
Already going to compile hiphop-php itself
And here you are…

[***@localhost hiphop-php]$ cmake .
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
CMake Error at CMake/FindLibunwind.cmake:19 (message):
  libunwind.h found without matching unwind.h
Call Stack (most recent call first):
  CMake/HPHPFindLibs.cmake:42 (find_package)
  CMake/HPHPSetup.cmake:46 (include)
  hphp/CMakeLists.txt:18 (include)

-- Configuring incomplete, errors occurred!
...
[***@localhost ~]$ sudo yum list boost libunwind gcc elfutils-libelf-devel
[sudo] password for ***: 
Загружены модули: langpacks, refresh-packagekit
Установленные пакеты
boost.x86_64                     1.53.0-12.fc19     @updates                    
elfutils-libelf-devel.x86_64     0.156-3.fc19       @updates                    
gcc.x86_64                       4.8.1-1.fc19       @fedora                     
libunwind.x86_64                 1.1-2.fc19         @koji-override-0/$releasever
Доступные пакеты
elfutils-libelf-devel.i686       0.156-3.fc19       updates                     
libunwind.i686                   1.1-2.fc19         fedora    

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
mgkirs, 2013-08-31
@mgkirs

In general, deleted everything nafig. I opened the manual:
here I changed the line export CMAKE_PREFIX_PATH=/usr to CMAKE_PREFIX_PATH=/home/user/where to please
. Except:
here the link does not work, I downloaded version 1.0.8 from the launch pad and then as written.
It is still compiling (62%), but something tells me that everything will be ok.

I
Ivan, 2013-08-31
@iSage

is libunwind-devel worth it?

B
BratSinot, 2013-08-31
@BratSinot

Perhaps your CMake is trying to configure the 32-bit version, and your libunwind is only under amd64. Try adding the -m64 flag to CFLAGS/CXXFLAGS.

M
mgkirs, 2013-08-31
@mgkirs

Thanks again, I would never have found the solution without you. For those who in the future will find this topic:
it worked for me after I installed curl, curl-devil, libmemcached, libmemcached-devil, ttb, ttb-devil, libdwarf, libdwarf-devil, inotify-tools, inotify-tools-devel , libunwind, libunwind-devel from the fedora repository. mcrypt, mcrypt-devel from rpm as in the manual. And libevent , with the help of such a hack, only added 2 lines like this:

find_library(LIBEVENT_LIB NAMES event PATHS ${LibEvent_LIB_PATHS})

if (LIBEVENT_LIB AND LIBEVENT_INCLUDE_DIR)
  set(LibEvent_FOUND TRUE)
  set(LIBEVENT_LIB ${LIBEVENT_LIB})
else ()
set(LIBEVENT_LIB /home/user/dev/libevent/libevent.so)
set(LIBEVENT_INCLUDE_DIR /home/user/dev/libevent)
if (LIBEVENT_LIB AND LIBEVENT_INCLUDE_DIR)
  set(LibEvent_FOUND TRUE)
  set(LIBEVENT_LIB ${LIBEVENT_LIB})
else ()
  set(LibEvent_FOUND FALSE)
endif ()
endif ()

Thus, even removing libevent would not be necessary.
And don't forget to delete CMakeCache.txt before "cmake ."

M
mgkirs, 2013-08-31
@mgkirs

Heh? still not going to apparently need an older version of the memcached library)).

/home/kir/dev/hiphop-php/hphp/runtime/ext/ext_memcached.cpp:763:26: note: in expansion of macro "LMCD_SERVER_MICRO_VERSION"
uint8_t microVersion = LMCD_SERVER_MICRO_VERSION(server);
^
/home/kir/dev/hiphop-php/hphp/runtime/ext/ext_memcached.cpp: In "HPHP::Variant HPHP::c_Memcached::t_getversion()" member function:
/home/kir/dev/hiphop -php/hphp/runtime/ext/ext_memcached.cpp:778:63: error: incorrect conversion from "memcached_return_t (*)(const memcached_st*, const memcached_instance_st*, void*)" to "memcached_server_function {aka memcached_return_t (*)( const memcached_st*, const org::libmemcached::Instance*, void*)}" [-fpermissive]
memcached_server_function callbacks[] = { doVersionCallback };
^
make[2]: *** [hphp/CMakeFiles/hphp_runtime_static.dir/runtime/ext/ext_memcached.cpp.o] Error 1
make[1]: *** [hphp/CMakeFiles/hphp_runtime_static.dir/all] Error 2
make: *** [all] Error 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question