Skip to content

make fails on "Linking CXX static library libOSRM.a" #1253

@awakse

Description

@awakse

Hi,
the make script fails when linking CXX static library libOSRM.a

This is on a 64-bit CentOS 6 system. I recently updated to c/c++ 4.9.2, compiled from source. I have made successful OSRM builds on this machine before with 4.7.2. Any idea on what might be wrong?

Below is the output from my cmake and make commands.

[root@search188 build]# cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/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 HAS_LTO_FLAG
-- Performing Test HAS_LTO_FLAG - Success
-- Using gcc specific binutils for LTO.
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   iostreams
--   program_options
--   regex
--   system
--   thread
--   unit_test_framework
-- 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 Intel TBB
-- Looking for Luabind...
-- Found Luabind: /usr/local/lib/libluabind.so  
-- Found Luabind: /usr/local/lib/libluabind.so
-- Luabind debug library availible: /usr/local/lib/libluabindd.so
-- Found Lua52: /usr/lib64/liblua.so;/usr/lib64/libm.so (found version "5.1.4") 
-- 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/lib64/liblua.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6") 
-- Looking for STXXL...
-- Found STXXL: /usr/lib64/libstxxl.so  
-- Found STXXL: /usr/lib64/libstxxl.so
-- Looking for OSMPBF...
-- Found OSMPBF: /usr/local/lib/libosmpbf.a  
-- Found OSMPBF: /usr/local/lib/libosmpbf.a
-- Found PROTOBUF: /usr/lib64/libprotobuf.so  
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.5") 
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3") 
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/osrm-backend/build
[root@search188 build]# make
Scanning dependencies of target COORDINATE
[  2%] Building CXX object CMakeFiles/COORDINATE.dir/DataStructures/Coordinate.cpp.o
[  2%] Built target COORDINATE
Scanning dependencies of target FingerPrintConfigure
[  5%] Configuring FingerPrint.cpp
[  5%] Built target FingerPrintConfigure
Scanning dependencies of target FINGERPRINT
[  8%] Configuring FingerPrint.cpp
[ 11%] Building CXX object CMakeFiles/FINGERPRINT.dir/Util/FingerPrint.cpp.o
[ 11%] Built target FINGERPRINT
Scanning dependencies of target GITDESCRIPTION
[ 13%] Building CXX object CMakeFiles/GITDESCRIPTION.dir/Util/GitDescription.cpp.o
[ 13%] Built target GITDESCRIPTION
Scanning dependencies of target IMPORT
[ 16%] Building CXX object CMakeFiles/IMPORT.dir/DataStructures/ImportNode.cpp.o
[ 19%] Building CXX object CMakeFiles/IMPORT.dir/DataStructures/ImportEdge.cpp.o
[ 19%] Built target IMPORT
Scanning dependencies of target LOGGER
[ 22%] Building CXX object CMakeFiles/LOGGER.dir/Util/simple_logger.cpp.o
[ 22%] Built target LOGGER
Scanning dependencies of target OSRM
[ 25%] Building CXX object CMakeFiles/OSRM.dir/Library/OSRM_impl.cpp.o
[ 27%] Building CXX object CMakeFiles/OSRM.dir/Descriptors/DescriptionFactory.cpp.o
[ 30%] Building CXX object CMakeFiles/OSRM.dir/DataStructures/SearchEngineData.cpp.o
[ 33%] Building CXX object CMakeFiles/OSRM.dir/DataStructures/RouteParameters.cpp.o
[ 36%] Building CXX object CMakeFiles/OSRM.dir/DataStructures/Coordinate.cpp.o
[ 38%] Building CXX object CMakeFiles/OSRM.dir/Algorithms/PolylineCompressor.cpp.o
[ 41%] Building CXX object CMakeFiles/OSRM.dir/Algorithms/DouglasPeucker.cpp.o
[ 44%] Building CXX object CMakeFiles/OSRM.dir/Server/Http/Reply.cpp.o
Linking CXX static library libOSRM.a
Error running link command: No such file or directory
make[2]: *** [libOSRM.a] Error 2
make[1]: *** [CMakeFiles/OSRM.dir/all] Error 2
make: *** [all] Error 2
[root@search188 build]#

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions