{"action":"created","issue":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1193","labels_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1193/labels{/name}","comments_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1193/comments","events_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1193/events","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/1193","id":43223831,"number":1193,"title":"__get_cpuid was not declared in this scope","user":{"login":"emiltin","id":66034,"avatar_url":"https://avatars.githubusercontent.com/u/66034?v=3","gravatar_id":"","url":"https://api.github.com/users/emiltin","html_url":"https://github.com/emiltin","followers_url":"https://api.github.com/users/emiltin/followers","following_url":"https://api.github.com/users/emiltin/following{/other_user}","gists_url":"https://api.github.com/users/emiltin/gists{/gist_id}","starred_url":"https://api.github.com/users/emiltin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emiltin/subscriptions","organizations_url":"https://api.github.com/users/emiltin/orgs","repos_url":"https://api.github.com/users/emiltin/repos","events_url":"https://api.github.com/users/emiltin/events{/privacy}","received_events_url":"https://api.github.com/users/emiltin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/labels/Compilation","name":"Compilation","color":"FF66CC"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-09-19T10:14:47Z","updated_at":"2015-04-07T11:04:36Z","closed_at":"2014-10-27T10:19:53Z","body":"On my virtual machine, compilation fails with this error:\r\n\r\n```\r\n...\r\n[ 78%] Building CXX object CMakeFiles/osrm-prepare.dir/Contractor/Prepare.cpp.o\r\nIn file included from /home/osm/osrm-backend/Contractor/Prepare.cpp:32:0:\r\n/home/osm/osrm-backend/Contractor/../Algorithms/IteratorBasedCRC32.h: In member function ‘unsigned int IteratorbasedCRC32::cpuid() const’:\r\n/home/osm/osrm-backend/Contractor/../Algorithms/IteratorBasedCRC32.h:115:46: error: ‘__get_cpuid’ was not declared in this scope\r\n         __get_cpuid(1, &eax, &ebx, &ecx, &edx);\r\n                                              ^\r\nmake[2]: *** [CMakeFiles/osrm-prepare.dir/Contractor/Prepare.cpp.o] Error 1\r\nmake[1]: *** [CMakeFiles/osrm-prepare.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n\r\nWhat's missing here?"},"comment":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/comments/90507868","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/1193#issuecomment-90507868","issue_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1193","id":90507868,"user":{"login":"hmaeda","id":824843,"avatar_url":"https://avatars.githubusercontent.com/u/824843?v=3","gravatar_id":"","url":"https://api.github.com/users/hmaeda","html_url":"https://github.com/hmaeda","followers_url":"https://api.github.com/users/hmaeda/followers","following_url":"https://api.github.com/users/hmaeda/following{/other_user}","gists_url":"https://api.github.com/users/hmaeda/gists{/gist_id}","starred_url":"https://api.github.com/users/hmaeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmaeda/subscriptions","organizations_url":"https://api.github.com/users/hmaeda/orgs","repos_url":"https://api.github.com/users/hmaeda/repos","events_url":"https://api.github.com/users/hmaeda/events{/privacy}","received_events_url":"https://api.github.com/users/hmaeda/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T11:04:36Z","updated_at":"2015-04-07T11:04:36Z","body":"To add a bit of extra info...\r\n\r\nI was following carried out the following commands\r\n\r\n    root@xxxxxxxx:/data/osrm/osrm-backend/build# cmake ..\r\n    -- Building on a 64 bit system\r\n    -- Configuring OSRM in release mode\r\n    -- LTO working\r\n    -- Using gcc specific binutils for LTO.\r\n    -- Boost version: 1.55.0\r\n    -- Found the following Boost libraries:\r\n    --   date_time\r\n    --   filesystem\r\n    --   iostreams\r\n    --   program_options\r\n    --   regex\r\n    --   system\r\n    --   thread\r\n    --   unit_test_framework\r\n    -- Found Intel TBB\r\n    -- Looking for Luabind...\r\n    -- Found Luabind: /usr/lib/libluabind.so\r\n    -- Looking for LuaJIT 5.2\r\n    -- Could NOT find LUAJIT (missing:  LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR)\r\n    -- Performing Test LUABIND_WORKS\r\n    -- Performing Test LUABIND_WORKS - Success\r\n    -- Luabind/Lua5.2 combination working with /usr/lib/powerpc64le-linux-gnu/liblua5.2.so\r\n    -- Looking for STXXL...\r\n    -- Found STXXL: /usr/lib/libstxxl.so\r\n    -- OpenMP support found. Linking just in case for stxxl\r\n    -- Looking for OSMPBF...\r\n    -- Found OSMPBF: /usr/lib/libosmpbf.a\r\n    -- Configuring done\r\n    -- Generating done\r\n    -- Build files have been written to: /data/osrm/osrm-backend/build\r\n    root@xxxxxxx:/data/osrm/osrm-backend/build# sudo make install\r\n    [  2%] Built target ANGLE\r\n    [  7%] Built target COORDINATE\r\n    [ 10%] Built target EXCEPTION\r\n    [ 12%] Configuring revision fingerprint\r\n    [ 12%] Built target FingerPrintConfigure\r\n    Scanning dependencies of target FINGERPRINT\r\n    [ 15%] Building CXX object CMakeFiles/FINGERPRINT.dir/util/fingerprint.cpp.o\r\n    [ 15%] Built target FINGERPRINT\r\n    [ 17%] Built target GITDESCRIPTION\r\n    [ 23%] Built target IMPORT\r\n    [ 25%] Built target LOGGER\r\n    [ 28%] Built target MERCATOR\r\n    [ 30%] Built target PHANTOMNODE\r\n    Linking CXX static library libOSRM.a\r\n    [ 53%] Built target OSRM\r\n    [ 56%] Built target RESTRICTION\r\n    Linking CXX executable osrm-datastore\r\n    [ 58%] Built target osrm-datastore\r\n    Linking CXX executable osrm-extract\r\n    [ 76%] Built target osrm-extract\r\n    [ 79%] Building CXX object CMakeFiles/osrm-prepare.dir/contractor/processing_chain.cpp.o\r\n    In file included from /data/osrm/osrm-backend/contractor/processing_chain.cpp:32:0:\r\n    /data/osrm/osrm-backend/contractor/../algorithms/crc32_processor.hpp: In member function ‘unsigned int IteratorbasedCRC32::cpuid() const’:\r\n    /data/osrm/osrm-backend/contractor/../algorithms/crc32_processor.hpp:115:46: error: ‘__get_cpuid’ was not declared in this scope\r\n             __get_cpuid(1, &eax, &ebx, &ecx, &edx);\r\n                                                  ^\r\n    CMakeFiles/osrm-prepare.dir/build.make:100: recipe for target 'CMakeFiles/osrm-prepare.dir/contractor/processing_chain.cpp.o' failed\r\n    make[2]: *** [CMakeFiles/osrm-prepare.dir/contractor/processing_chain.cpp.o] Error 1\r\n    CMakeFiles/Makefile2:678: recipe for target 'CMakeFiles/osrm-prepare.dir/all' failed\r\n    make[1]: *** [CMakeFiles/osrm-prepare.dir/all] Error 2\r\n    Makefile:113: recipe for target 'all' failed\r\n    make: *** [all] Error 2\r\n"}}