-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
FTBFS Debian/Bookworm lua5.4 / lua_getfield(L, tableindex, &key[0]); array ... partly outside array bound #6704
Comments
I can confirm this, on Ubuntu 23.04 as well as on a fresh install of the latest Raspbian, which is Debian bookworm. I followed the instructions in the README:
I can provide the complete output for both, if that helps. |
Interestingly using LLVM it works - So its a gcc incompatibility. |
Looks like newer GCC is catching a bug in the The options here are:
I'm kind of surprised that (2) isn't already working - we use the As a quick and dirty hack, you can just comment out this line: https://github.com/Project-OSRM/osrm-backend/blob/master/CMakeLists.txt#L244 which turns off all the |
LLVM works, thanks |
I just comment out this line: and then another two: and compiled with GCC and debian 12. |
I think is related to ThePhD/sol2#1535 |
I believe this is actually caused by a GCC bug. The key part of the error is this What I believe is happening is that we have one place where we use a 30 character key into properties ("continue_straight_at_waypoint" - 29 characters plus a null terminator). It looks like GCC is static-analyzing and assuming that this function will always read 30 characters from the key, and then giving the bounds error any time we try to use a less-than-30-character key. |
For others like me, who don't know enough about the toolchain to really understand this thread, note that the line number in CMakeLists.txt has changed slightly, it's now line 243.
In addition to this, I also had to comment lines 293 and 294 (like hpkit mentions above, but these have also shifted one line by now):
|
I used this (with
|
I see two paths here, LLVM and patching the source. It seems that the best option right now is to use LLVM, and people report success. However I'm not familiar with LLVM. Is anyone able to provide a step-by-step on how to compile this project using LLVM instead of gcc (Debian 12)? |
I found was able to do this by just setting the environment variables:
ENV CXX=clang++
ENV CC=clang
and then building as usual.
…On Fri, Oct 4, 2024, 8:49 AM Kristian Rønningen ***@***.***> wrote:
I see two paths here, LLVM and patching the source. It seems that the best
option right now is to use LLVM, and people report success. However I'm not
familiar with LLVM. Is anyone able to provide a step-by-step on how to
compile this project using LLVM instead of gcc (Debian 12)?
—
Reply to this email directly, view it on GitHub
<#6704 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEKNLUS7AWT6LJJU5JUQB3ZZ2FEHAVCNFSM6AAAAABJOBPJGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGYZTGMRTGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It is not working for me ( ? |
I built the service on Ubutu 24.04.1 LTS with success. These was my steps:
Copy, move or download the Open Street Map source (source-name.osm.pbf) to the directory above. Extract the data from the source using car.lua profile (for car only). Contract the osrm data (using Contraction Hierarchies (CH) only). Run the Built-in HTTP Service Worked like a charm for me :-) I hope the instructions have helped someone to fix this issue and run the service on the current Ubuntu release (24.04.1 LTS). Happy new year! |
Hi,
while building on Debian 12 aka Bookworm i experience this issue with current git head: v5.25.0-204-g5723eaaa6
mkdir build && cd build && cmake .. && cmake --build .
Installed packages:
The text was updated successfully, but these errors were encountered: