-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__get_cpuid was not declared in this scope #1193
Comments
It's a Ubuntu server 14.04. |
Are you using gcc or clang? |
What Kind of virtual machine are you using. I suspect something is funny with the advertised cpu features |
the host is virtual box running on ubuntu 14.04. the VM is ubuntu server (only command line) 14.04. |
Hmm.. Strange. |
Here what the VM report about cpu architecture:
|
what does |
osm@mango:~/osrm-backend$ uname -a |
installing a 64bit version of the distribution should fix things. |
@emiltin any updates here? |
sorry got sidetracked. i will report back once i get time to retry |
any update here? |
Compiles on a 64 bit ubuntu server virtual machine. It would be helpful if a warning could be issued when you try to build on 32 bit systems. |
The CMake script should actually complain. |
I get a simialr issue... below is the error message `[ 84%] Building CXX object CMakeFiles/osrm-prepare.dir/contractor/processing_cha in.cpp.o /data/osrm/osrm-backend/contractor/../algorithms/crc32_processor.hpp: In member function ‘unsigned int IteratorbasedCRC32::cpuid() const’: /data/osrm/osrm-backend/contractor/../algorithms/crc32_processor.hpp:115:46: err or: ‘__get_cpuid’ was not declared in this scope CMakeFiles/Makefile2:678: recipe for target 'CMakeFiles/osrm-prepare.dir/all' fa iled make[1]: *** [CMakeFiles/osrm-prepare.dir/all] Error 2 make: *** [all] Error 2 root@xxxxxxxxx:/data/osrm/osrm-backend/build# uname -a Note I am on a powerpc64 architecture...any ideas what causes this issue? |
It's a compiler intrinsic for x64 CPUs. I will look into predefined variables on powerpc64 that will fix a couple of #ifdefs |
To add a bit of extra info... I was following carried out the following commands
|
What cpu and operating system are you using? |
|
Is there a way that OSRM can run without LuaJIT? |
Yes. Luajit is optional |
Is the lack of LuaJIT when running the |
No, this is unrelated. As explained above, it's a platform issue where it does not properly detect that it is not running on X64 hardware. We should have a fix shortly. |
Try the latest code from develop branch. It's been a bit of an instrument flight, but it should compile now. |
Amazing that worked thank you! On Tue, Apr 7, 2015 at 1:47 PM, Dennis Luxen notifications@github.com
|
On my virtual machine, compilation fails with this error:
What's missing here?
The text was updated successfully, but these errors were encountered: