Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation errors on Linux #6896

Closed
guillaumechauvat opened this issue May 24, 2024 · 1 comment · Fixed by #6906
Closed

Compilation errors on Linux #6896

guillaumechauvat opened this issue May 24, 2024 · 1 comment · Fixed by #6906

Comments

@guillaumechauvat
Copy link

Issue

I am trying to compile osrm-backend on Arch Linux with gcc 14.1.1. I checked out the latest git master branch, commit 21607e0cb2e8446f9c2a18dfbff08fba02dfa1d8.

The compilation fails with

In file included from [...]/osrm-backend/include/util/timezones.hpp:10,
                 from [...]/osrm-backend/src/util/timezones.cpp:1:
[...]/osrm-backend/third_party/rapidjson/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
[...]/osrm-backend/third_party/rapidjson/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~

Steps to reproduce

Compile with

$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .

Specifications

  • osrm-backend git 21607e0cb2e8446f9c2a18dfbff08fba02dfa1d8
  • gcc 14.1.1
  • CMake 3.29.3
@SiarheiFedartsou
Copy link
Member

Should be fixed after merge of #6906

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

Successfully merging a pull request may close this issue.

2 participants