<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Daniel<br>
<br>
I've upgraded the GCC version on the system to 5.3, but I now get
a different error when running the initial MAKE command. the
output is shown below:<br>
<br>
<b>root@Dell-Poweredge-860:/osrm5/osrm-backend/build# cmake ..
-DCMAKE_BUILD_TYPE=Release -DBUILD_TOOLS=1</b><b><br>
</b><b>-- The C compiler identification is GNU 5.3.0</b><b><br>
</b><b>-- The CXX compiler identification is unknown</b><b><br>
</b><b>-- Check for working C compiler: /usr/bin/cc</b><b><br>
</b><b>-- Check for working C compiler: /usr/bin/cc -- works</b><b><br>
</b><b>-- Detecting C compiler ABI info</b><b><br>
</b><b>-- Detecting C compiler ABI info - done</b><b><br>
</b><b>CMake Error: your CXX compiler:
"CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set
CMAKE_CXX_COMPILER to a valid compiler path or name.</b><b><br>
</b><b>-- Building on a 64 bit system</b><b><br>
</b><b>-- Configuring OSRM in release mode</b><b><br>
</b><b>-- Performing Test LTO_AVAILABLE</b><b><br>
</b><b>CMake Error at
/usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37
(get_filename_component):</b><b><br>
</b><b> get_filename_component called with incorrect number of
arguments</b><b><br>
</b><b>Call Stack (most recent call first):</b><b><br>
</b><b> CMakeLists.txt:3 (PROJECT)</b><b><br>
</b><b><br>
</b><b><br>
</b><b>CMake Error: CMAKE_CXX_COMPILER not set, after
EnableLanguage</b><b><br>
</b><b>CMake Error: Internal CMake error, TryCompile configure of
cmake failed</b><b><br>
</b><b>-- Performing Test LTO_AVAILABLE - Failed</b><b><br>
</b><b>CMake Error at CMakeLists.txt:154 (if):</b><b><br>
</b><b> if given arguments:</b><b><br>
</b><b><br>
</b><b> "STREQUAL" "Clang"</b><b><br>
</b><b><br>
</b><b> Unknown arguments specified</b><b><br>
</b><b><br>
</b><b><br>
</b><b>-- Configuring incomplete, errors occurred!</b><b><br>
<br>
</b>The error log file contained the following information:<br>
<b><br>
</b><b>root@Dell-Poweredge-860:/osrm5/osrm-backend/build# more
/osrm5/osrm-backend/build/CMakeFiles/CMakeError.log</b><b><br>
</b><b>Compiling the CXX compiler identification source file
"CMakeCXXCompilerId.cpp" failed.</b><b><br>
</b><b>Compiler: CMAKE_CXX_COMPILER-NOTFOUND </b><b><br>
</b><b>Build flags: </b><b><br>
</b><b>Id flags: </b><b><br>
</b><b><br>
</b><b>The output was:</b><b><br>
</b><b>No such file or directory</b><b><br>
</b><b><br>
</b><b><br>
</b><b>Compiling the CXX compiler identification source file
"CMakeCXXCompilerId.cpp" failed.</b><b><br>
</b><b>Compiler: CMAKE_CXX_COMPILER-NOTFOUND </b><b><br>
</b><b>Build flags: </b><b><br>
</b><b>Id flags: -c</b><b><br>
</b><b><br>
</b><b>The output was:</b><b><br>
</b><b>No such file or directory</b><b><br>
</b><b><br>
</b><b><br>
</b><b>Checking whether the CXX compiler is IAR using "" did not
match "IAR .+ Compiler":</b><b><br>
</b><b>Performing C++ SOURCE FILE Test LTO_AVAILABLE failed with
the following output:</b><b><br>
</b><b><br>
</b><b>Source file was:</b><b><br>
</b><b>int main() { return 0;}</b><br>
<b><br>
</b>Any thoughts on how to get round this issue? <br>
<br>
Cheers<br>
<br>
<br>
On 24-Apr-16 6:01 PM, Daniel Hofmann wrote:<br>
</div>
<blockquote
cite="mid:CAG=qy8ezrUpiqN43NnCLbY2eThFAfTofVxTVEzJ4zf8pcKc7Wg@mail.gmail.com"
type="cite">
<div dir="ltr">-DBUILD_TOOLS does not need gdal from what I can
see:<br>
<div><br>
<a moz-do-not-send="true"
href="https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L350-L365">https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L350-L365</a><br>
<br>
</div>
<div>It's only the -DBUILD_COMPONENTS flag that enables the tool
for small components that needs gdal:<br>
</div>
<div><br>
<a moz-do-not-send="true"
href="https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L337-L348">https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L337-L348</a><br>
<br>
</div>
<div>That is, this is the error you are seeing:<br>
<br>
<a moz-do-not-send="true"
href="https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L346">https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L346</a><br>
<br>
</div>
<div>Please make sure you're actually building the latest v5
release.<br>
<br>
In addition, the warnings at the bottom come from using gcc
4.8 which has some issues (amongst other issues, its link time
optimization is broken).<br>
For production use you may want to update your compiler.<br>
<br>
</div>
<div>Cheers,<br>
</div>
<div>Daniel J H<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Apr 24, 2016 at 12:32 AM, James
Grant <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:james@grantzone.net" target="_blank">james@grantzone.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font
face="Helvetica, Arial, sans-serif">Hi there.<br>
<br>
I'm currently building the latest version of OSRM and
when going through the build commands, I'm noticing the
following errors:<br>
<br>
<font color="#3333ff">root@Dell-Poweredge-860:/osrm5/osrm-backend/build#
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TOOLS=1</font><br>
-- The C compiler identification is GNU 4.8.4<br>
-- The CXX compiler identification is GNU 4.8.4<br>
-- Check for working C compiler: /usr/bin/cc<br>
-- Check for working C compiler: /usr/bin/cc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Building on a 64 bit system<br>
-- Configuring OSRM in release mode<br>
-- Performing Test LTO_AVAILABLE<br>
-- Performing Test LTO_AVAILABLE - Success<br>
-- Performing Test LTO_WORKS<br>
-- Performing Test LTO_WORKS - Success<br>
-- LTO working<br>
-- Disabling LTO on GCC < 4.9.0 since it is broken,
see: <a moz-do-not-send="true"
href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038"
target="_blank">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038</a><br>
-- Performing Test HAS_COLOR_FLAG<br>
-- Performing Test HAS_COLOR_FLAG - Failed<br>
-- Setting linker optimizations<br>
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found
version "1.2.8") <br>
-- Looking for include file pthread.h<br>
-- Looking for include file pthread.h - found<br>
-- Looking for pthread_create<br>
-- Looking for pthread_create - not found<br>
-- Looking for pthread_create in pthreads<br>
-- Looking for pthread_create in pthreads - not found<br>
-- Looking for pthread_create in pthread<br>
-- Looking for pthread_create in pthread - found<br>
-- Found Threads: TRUE <br>
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so
(found version "2.1.0") <br>
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so
(found version "1.0.6") <br>
-- Looking for BZ2_bzCompressInit in
/usr/lib/x86_64-linux-gnu/libbz2.so<br>
-- Looking for BZ2_bzCompressInit in
/usr/lib/x86_64-linux-gnu/libbz2.so - found<br>
-- Found Osmium:
/osrm5/osrm-backend/third_party/libosmium/include <br>
-- Boost version: 1.54.0<br>
-- Found the following Boost libraries:<br>
-- date_time<br>
-- filesystem<br>
-- iostreams<br>
-- program_options<br>
-- regex<br>
-- system<br>
-- thread<br>
-- Found Intel TBB<br>
-- Looking for Luabind...<br>
-- Found Luabind: /usr/lib/libluabind.so <br>
-- Found Luabind: /usr/lib/libluabind.so<br>
-- Found Lua52: /usr/lib/x86_64-linux-gnu/<a
moz-do-not-send="true" href="http://liblua5.2.so"
target="_blank">liblua5.2.so</a>;/usr/lib/x86_64-linux-gnu/libm.so
<br>
-- Looking for LuaJIT 5.2<br>
-- Could NOT find LUAJIT (missing: LUAJIT_LIBRARIES) <br>
-- Performing Test LUABIND_WORKS<br>
-- Performing Test LUABIND_WORKS - Success<br>
-- Luabind/Lua5.2 combination working with
/usr/lib/x86_64-linux-gnu/<a moz-do-not-send="true"
href="http://liblua5.2.so" target="_blank">liblua5.2.so</a><br>
-- Looking for STXXL...<br>
-- Found STXXL: /usr/lib/libstxxl.so <br>
-- Found STXXL: /usr/lib/libstxxl.so<br>
-- Try OpenMP C flag = [-fopenmp]<br>
-- Performing Test OpenMP_FLAG_DETECTED<br>
-- Performing Test OpenMP_FLAG_DETECTED - Success<br>
-- Try OpenMP CXX flag = [-fopenmp]<br>
-- Performing Test OpenMP_FLAG_DETECTED<br>
-- Performing Test OpenMP_FLAG_DETECTED - Success<br>
-- OpenMP support found. Linking just in case for stxxl<br>
<font color="#ff0000">-- Could NOT find GDAL (missing:
GDAL_LIBRARY GDAL_INCLUDE_DIR) <br>
CMake Warning at CMakeLists.txt:346 (message):<br>
libgdal and/or development headers not found</font><br>
<br>
<br>
-- Activating OSRM internal tools<br>
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
<br>
-- Boost version: 1.54.0<br>
-- Found the following Boost libraries:<br>
-- unit_test_framework<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to:
/osrm5/osrm-backend/build<br>
<br>
When I run the next command it gives the errors again
shown below, but this is simply a snippet of several
that I get:<br>
<br>
<font color="#3333ff">root@Dell-Poweredge-860:/osrm5/osrm-backend/build#
cmake --build .</font><br>
Scanning dependencies of target CONTRACTOR<br>
[ 0%] Building CXX object
CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o<br>
[ 0%] Built target CONTRACTOR<br>
Scanning dependencies of target ENGINE<br>
[ 1%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o<br>
[ 3%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o<br>
[ 4%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o<br>
[ 6%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/engine.cpp.o<br>
<font color="#ff0000">In file included from
/osrm5/osrm-backend/src/engine/engine.cpp:3:0:<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:
In instantiation of
‘osrm::engine::api::RouteParameters::RouteParameters(bool,
bool,
osrm::engine::api::RouteParameters::GeometriesType,
osrm::engine::api::RouteParameters::OverviewType,
boost::optional<bool>, Args ...) [with Args =
{}]’:<br>
/osrm5/osrm-backend/include/engine/api/match_parameters.hpp:58:29:
required from here<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::coordinates’
[-Wmissing-field-initializers]<br>
geometries{geometries_},
overview{overview_},
continue_straight{continue_straight_}<br>
^<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::hints’
[-Wmissing-field-initializers]<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::radiuses’
[-Wmissing-field-initializers]<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::bearings’
[-Wmissing-field-initializers]</font><br>
[ 7%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o<br>
[ 9%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o<br>
[ 10%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o<br>
[ 12%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o<br>
[ 13%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o<br>
[ 15%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o<br>
[ 16%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o<br>
[ 18%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o<br>
[ 19%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o<br>
[ 21%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o<br>
<font color="#ff0000">In file included from
/osrm5/osrm-backend/include/engine/api/match_parameters.hpp:31:0,<br>
from
/osrm5/osrm-backend/include/engine/plugins/match.hpp:5,<br>
from
/osrm5/osrm-backend/src/engine/plugins/match.cpp:2:<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:
In instantiation of
‘osrm::engine::api::RouteParameters::RouteParameters(bool,
bool,
osrm::engine::api::RouteParameters::GeometriesType,
osrm::engine::api::RouteParameters::OverviewType,
boost::optional<bool>, Args ...) [with Args =
{}]’:<br>
/osrm5/osrm-backend/include/engine/api/match_parameters.hpp:58:29:
required from here<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::coordinates’
[-Wmissing-field-initializers]<br>
geometries{geometries_},
overview{overview_},
continue_straight{continue_straight_}<br>
^<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::hints’
[-Wmissing-field-initializers]<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::radiuses’
[-Wmissing-field-initializers]<br>
/osrm5/osrm-backend/include/engine/api/route_parameters.hpp:80:93:
warning: missing initializer for member
‘osrm::engine::api::BaseParameters::bearings’
[-Wmissing-field-initializers]</font><br>
[ 22%] Building CXX object
CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o<br>
<br>
I am trying to compile this on Ubuntu 14.04, anyone have
any ideas? I haven't taken it further than this so far
as I didn't think it would work with the errors shown.<br>
<br>
Regards<span class="HOEnZb"><font color="#888888"><br>
James.<br>
</font></span></font> </div>
<br>
_______________________________________________<br>
OSRM-talk mailing list<br>
<a moz-do-not-send="true"
href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a moz-do-not-send="true"
href="https://lists.openstreetmap.org/listinfo/osrm-talk"
rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OSRM-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/osrm-talk">https://lists.openstreetmap.org/listinfo/osrm-talk</a>
</pre>
</blockquote>
<br>
</body>
</html>