[OSRM-talk] Building OSRM undefined reference to 'tbb::empty_task::~empty_task()
Daniel Patterson
daniel at mapbox.com
Wed Sep 7 22:00:19 UTC 2016
Jim,
Looks like GCC Link-Time-Optimization isn't working on Jessie's GCC 4.9.2. Try re-building with:
cd build
make clean
cmake -DENABLE_LTO=OFF ..
make
and see if that fixes it for you. I get a clean compile on my Docker image. If that corrects the issue, then we can add the instructions to the Wiki. We already detect broken LTO support in GCC < 4.9.0, but maybe 4.9.2 is also broken.....
daniel
> On Sep 7, 2016, at 1:51 PM, Daniel Patterson <daniel at mapbox.com> wrote:
>
> Hi Jim,
>
> Welp, the good news is that I can reproduce this with a Docker image from Jessie. I'll see if I can track down the problem.
>
> daniel
>
>> On Sep 7, 2016, at 1:22 PM, Jim LeBeau <jiml at ladsnet.com <mailto:jiml at ladsnet.com>> wrote:
>>
>> Daniel,
>>
>> I am running on a debian linux box, jessie a new install and everything up to date.
>>
>> I downloaded the latest code from github and followed the directions at https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM <https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM>
>>
>> I saw a reference to linker issues from some years ago, and the command that is failing seems ugly to me with -ltbb repeated more than once.
>>
>> /usr/bin/c++ -flto=2 -Wall -Wextra -pedantic -Wuninitialized -Wunreachable-code -Wstrict-overflow=1 -D_FORTIFY_SOURCE=2 -fdiagnostics-color=auto -fPIC -ffunction-sections -fdata-sections -std=c++1y -fopenmp -O3 -DNDEBUG -fuse-ld=gold -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common CMakeFiles/osrm-contract.dir/src/tools/contract.cpp.o -o osrm-contract -rdynamic -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_program_options -lboost_regex -lboost_system -lboost_thread -lpthread -ltbb -ltbbmalloc libosrm_contract.a -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_program_options -lboost_regex -lboost_system -lboost_thread -lpthread -lpthread -lluabind -llua5.2 -lstxxl -ltbb -ltbbmalloc -lrt
>>
>>
>> Thanks,
>>
>> Jim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20160907/3d6f8d2b/attachment.html>
More information about the OSRM-talk
mailing list