Closed cordovapolymer closed 7 years ago
any hope that this will be fixed?
I have a same problem while trying to run npm install osrm
. Can someone please check this error?
Thanks
@DennisOSRM @TheMarex @daniel-j-h @emiltin @MoKob @danpat @oxidase @karenzshea @lbud Any comments on this?
@cordovapolymer try building without mason and install all dependencies manually:
apt-get install libboost-all-dev libtbb-dev
rm -rf build
mkdir build
cd build
cmake ..
make
This assumes you have libosrm installed globally.
There is a good chance that the dependencies in Debian Jessie are too old however. You might want to wrap this all in a docker container.
@TheMarex I think the problem is probably an LTO bug the the users compiler/linker. @TheMarex how about disabling LTO for node-osrm builds by default? (we could enable it for binaries only).
@springmeyer with a manual build (not using the Makefile in the root) that is already the default behavior.
Please re-open in osrm-backend if you're still seeing this issue. There is a known issue with mason not building compatible binaries for Debian Jessie:
https://github.com/Project-OSRM/osrm-backend/issues/3978
I can recommend you building from source without mason.
@daniel-j-h , but osrm-backend builds successfully, only node-osrm doesn't
@cordovapolymer the node bindings now live in the osrm-backend
project (as of OSRM 5.7), this repo is only maintained for source access to older versions.
It's not clear which version of OSRM you're trying to use here. The code a build scripts in osrm-backend
have seen some work since this issue was opened, so it's probably worth trying the latest.
Grab a copy of osrm-backend
from 5.7 or newer (we try to keep master
stable-ish), and run cmake with:
mkdir build
cd build
cmake -DENABLE_NODE_BINDINGS=ON ..
make
This will build osrm-backend and the nodejs bindings.
the issue is solved, have successfully built the node bindings under Debian Jessie
For the record if you're using mason it's not solved and it's tracked in
https://github.com/Project-OSRM/osrm-backend/issues/3978#issuecomment-297717938
the issue is an abi incompatibility between the mason binaries and the debian jessie stdlib.
node-osrm cannot be built from source, I'm building it separately from osrm-backend because of #232. When trying to build it using an existing local osrm-backend, the following error occurs after running
cmake ..
When building it with
npm install --build-from-source --unsafe-perm
if fails findingbinding.gyp
and starts building osrm-backend, which wouldn't build on my system because mason doesn't obeyexport CXXFLAGS="-I/home/osrm/boost_1_61_0"
.When trying to build it with
npm install -g --build-from-source --unsafe-perm
it starts building but fails in the end of the build withI'm running debian jessie, and am able to build node-osrm successfully up to v5.3.3.