<div dir="ltr">Daniel,<div><br></div><div>Thanks, that worked well. I would never have figured that out myself.</div><div><br></div><div>Jim<br><div><br></div><div><br></div><div><br></div><div><div>Jim,</div><div><br></div><div>  Looks like GCC Link-Time-Optimization isn't working on Jessie's GCC 4.9.2.  Try re-building with:</div><div><br></div><div>    cd build</div><div>    make clean</div><div>    cmake -DENABLE_LTO=OFF ..</div><div>    make</div><div><br></div><div>  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.....</div><div><br></div><div>daniel</div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Confidential Information Notice: This email contains confidential and proprietary information of LADS Network Solutions, Inc and is intended only for the individual or entity named above.   If the reader of this email is not the intended recipient, please contact LADS at 636-220-8266 to inform them that you have received this email and then permanently delete and shred this email. Dissemination, publication and/or copying of this email is strictly prohibited. </div><div><br></div></div></div></div>
<br><div class="gmail_quote">On Wed, Sep 7, 2016 at 3:22 PM, Jim LeBeau <span dir="ltr"><<a href="mailto:jiml@ladsnet.com" target="_blank">jiml@ladsnet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Daniel,</div><div><br></div><div>I am running on a debian linux box, jessie a new install and everything up to date. </div><div><br></div><div>I downloaded the latest code from github and followed the directions at <a href="https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM" target="_blank">https://github.com/Project-<wbr>OSRM/osrm-backend/wiki/<wbr>Building-OSRM</a></div><div><br></div><div>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.</div><div><br></div><div>/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/<wbr>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<br></div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Jim</div><div><br></div><div>++++++++++++++++++++++++++++++<wbr>+++++++++++++++++++++++</div><div><br></div><div>Jim,</div><div><br></div><div>  What OS are you building on and what version of OSRM are you trying to compile?</div><div><br></div><div>  The problem is odd - you've managed to compile the code, but linking against the TBB libraries is failing with a missing symbol - I don't know how this could happen, I would've expected it to fail earlier.</div><div><br></div><div>  Are you using an old platform?  I've seen very old versions of libtbb packaged on some machines, the fix was usually to update.</div><div><br></div><div>daniel</div><div><br></div><div>> On Sep 7, 2016, at 1:00 PM, Jim LeBeau <jiml at <a href="http://ladsnet.com" target="_blank">ladsnet.com</a>> wrote:</div><div>> </div><div>> Hi,</div><div>> </div><div>> I am setting up a server to do some routing, and am having trouble with the build.  After following the instructions for debian jessie on the wiki I end up at 95% complete with:</div><div>> </div><div>> /tmp/ccgkEZ99.ltrans11.ltrans.<wbr>o:ccgkEZ99.ltrans11.o:vtable for tbb::empty_task: error: undefined reference to 'tbb::empty_task::~empty_task(<wbr>)'</div><div>> /tmp/ccgkEZ99.ltrans11.ltrans.<wbr>o:ccgkEZ99.ltrans11.o:vtable for tbb::empty_task: error: undefined reference to 'tbb::empty_task::~empty_task(<wbr>)'</div><div>> collect2: error: ld returned 1 exit status</div><div>> CMakeFiles/osrm-contract.dir/<wbr>build.make:109: recipe for target 'osrm-contract' failed</div><div>> make[2]: *** [osrm-contract] Error 1</div><div>> CMakeFiles/Makefile2:342: recipe for target 'CMakeFiles/osrm-contract.dir/<wbr>all' failed</div><div>> make[1]: *** [CMakeFiles/osrm-contract.dir/<wbr>all] Error 2</div><div>> Makefile:117: recipe for target 'all' failed</div><div>> make: *** [all] Error 2</div><div>> </div><div>> After much searching and many attempts I am unable to get past this.  Has anyone recently had success?  What can I try?</div><div>> </div><div>> Thanks,</div><div>> </div><div>> Jim</div><div>> </div><div>> <a href="https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM" target="_blank">https://github.com/Project-<wbr>OSRM/osrm-backend/wiki/<wbr>Building-OSRM</a> <<a href="https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM" target="_blank">https://github.com/Project-<wbr>OSRM/osrm-backend/wiki/<wbr>Building-OSRM</a>></div><div>> </div><div>> </div><div>> ______________________________<wbr>_________________</div><div>> OSRM-talk mailing list</div><div>> OSRM-talk at <a href="http://openstreetmap.org" target="_blank">openstreetmap.org</a></div><div>> <a href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osrm-talk</a></div><div><br></div><div><div><div dir="ltr"><div><br></div><div><br></div></div></div></div>
</div>
</blockquote></div><br></div>