Skip to content

Instantly share code, notes, and snippets.

@faheemmughal
Created April 14, 2016 15:32
Show Gist options
  • Save faheemmughal/412886ca81d2d9d4b309a99ebd10fd1c to your computer and use it in GitHub Desktop.
Save faheemmughal/412886ca81d2d9d4b309a99ebd10fd1c to your computer and use it in GitHub Desktop.
Step 3 : RUN git clone git://github.com/Project-OSRM/osrm-backend.git /src && mkdir -p /build && cd /build && cmake /src && make && mv /src/profiles/bicycle.lua profile.lua && mv /src/profiles/lib/ lib && echo "disk=/tmp/stxxl,2500,syscall" > /build/.stxxl && rm -rf /src
---> Running in b2dd4072ab00
Cloning into '/src'...
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Building on a 64 bit system
-- Configuring OSRM in release mode
-- Performing Test LTO_AVAILABLE
-- Performing Test LTO_AVAILABLE - Success
-- Performing Test LTO_WORKS
-- Performing Test LTO_WORKS - Success
-- LTO working
-- Disabling LTO on GCC < 4.9.0 since it is broken, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038
-- Performing Test HAS_COLOR_FLAG
-- Performing Test HAS_COLOR_FLAG - Failed
-- Setting linker optimizations
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version "2.1.0")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so - found
-- Found Osmium: /src/third_party/libosmium/include
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- date_time
-- filesystem
-- iostreams
-- program_options
-- regex
-- system
-- thread
-- Found Intel TBB
-- Looking for Luabind...
-- Found Luabind: /usr/lib/libluabind.so
-- Found Luabind: /usr/lib/libluabind.so
-- Found Lua52: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so
-- Looking for LuaJIT 5.2
-- Could NOT find LUAJIT (missing: LUAJIT_LIBRARIES)
-- Performing Test LUABIND_WORKS
-- Performing Test LUABIND_WORKS - Success
-- Luabind/Lua5.2 combination working with /usr/lib/x86_64-linux-gnu/liblua5.2.so
-- Looking for STXXL...
-- Found STXXL: /usr/lib/libstxxl.so
-- Found STXXL: /usr/lib/libstxxl.so
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- OpenMP support found. Linking just in case for stxxl
-- Could NOT find GDAL (missing: GDAL_LIBRARY GDAL_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:346 (message):
libgdal and/or development headers not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /build
Scanning dependencies of target CONTRACTOR
[ 1%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o
[ 1%] Built target CONTRACTOR
Scanning dependencies of target ENGINE
[ 3%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine.cpp.o
In file included from /src/src/engine/engine.cpp:3:0:
/src/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 = {}]':
/src/include/engine/api/match_parameters.hpp:58:29: required from here
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::coordinates' [-Wmissing-field-initializers]
geometries{geometries_}, overview{overview_}, continue_straight{continue_straight_}
^
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::hints' [-Wmissing-field-initializers]
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::radiuses' [-Wmissing-field-initializers]
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::bearings' [-Wmissing-field-initializers]
[ 4%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o
[ 6%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o
[ 7%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o
[ 9%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o
[ 10%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o
[ 12%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o
[ 13%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o
[ 15%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o
[ 16%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o
[ 18%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o
[ 20%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/table.cpp.o
[ 21%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o
[ 23%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/nearest.cpp.o
[ 24%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o
In file included from /src/include/engine/api/match_parameters.hpp:31:0,
from /src/include/engine/plugins/match.hpp:5,
from /src/src/engine/plugins/match.cpp:2:
/src/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 = {}]':
/src/include/engine/api/match_parameters.hpp:58:29: required from here
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::coordinates' [-Wmissing-field-initializers]
geometries{geometries_}, overview{overview_}, continue_straight{continue_straight_}
^
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::hints' [-Wmissing-field-initializers]
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::radiuses' [-Wmissing-field-initializers]
/src/include/engine/api/route_parameters.hpp:80:93: warning: missing initializer for member 'osrm::engine::api::BaseParameters::bearings' [-Wmissing-field-initializers]
[ 26%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o
[ 27%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o
[ 27%] Built target ENGINE
Scanning dependencies of target EXTRACTOR
[ 29%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[2]: *** [CMakeFiles/EXTRACTOR.dir/src/extractor/extractor.cpp.o] Error 4
make[1]: *** [CMakeFiles/EXTRACTOR.dir/all] Error 2
make: *** [all] Error 2
The command '/bin/sh -c git clone git://github.com/Project-OSRM/osrm-backend.git /src && mkdir -p /build && cd /build && cmake /src && make && mv /src/profiles/bicycle.lua profile.lua && mv /src/profiles/lib/ lib && echo "disk=/tmp/stxxl,2500,syscall" > /build/.stxxl && rm -rf /src' returned a non-zero code: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment