Skip to content

Conversation

@pxpeterxu
Copy link

@pxpeterxu pxpeterxu commented May 1, 2024

Issue

Multiple GitHub issues have mentioned that building the planet.osm.pbf (worldwide OSM dataset) with the foot profile results in segmentation faults.

Tasklist

  • CHANGELOG.md entry (How to write a changelog entry)
  • update relevant Wiki pages
  • add tests (see testing documentation)
    • Note: we did not add tests, but did run the tests based on the documentation to make sure they passed in 64-bit mode:
      cd osrm-backend
      mkdir -p build
      cd build
      cmake -DUSE_64BIT_IDS ..
      make tests
  • review
  • adjust for comments
  • cherry pick to release branch

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on? None

Wiki changes once merged in

Add to https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM/_edit

Debug mode
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake --build .
sudo cmake --build . --target install
With 64-bit node and edge IDs (currently unreleased as of May, 2024: #1)

If you're trying to build the foot profile for the whole planet (i.e. using planet.osm.pbf), you'll need 64-bit IDs for the number of edges and nodes in OSRM. Otherwise, you'll get a segmentation fault.

Warning: This will cause OSRM to use more memory during osrm-extract, etc. so this is not recommended unless you absolutely need to build the foot profile for the whole planet.

mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_64BIT_IDS
cmake --build .
sudo cmake --build . --target install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants