Skip to content

Commit 4c9ffaa

Browse files
authored
Fix compilation in relase with LTO with gcc >=14 (#7327)
* Disable LTO because of uninitialized errors at LTO-stage Fixes issue #7268. * Add changelog entry
1 parent cf4cdb3 commit 4c9ffaa

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- FIXED: Reduce MSVC compiler warnings by suppressing informational warnings while preserving bug-indicating warnings [#7253](https://github.com/Project-OSRM/osrm-backend/issues/7253)
66
- FIXED: Merge `osrm_extract` and `osrm_guidance` to avoid circular dependencies. [#7315](https://github.com/Project-OSRM/osrm-backend/pull/7315)
77
- FIXED: Work around compilation error due to a false-positive of array-bounds check in sol2 [#7317](https://github.com/Project-OSRM/osrm-backend/pull/7317)
8+
- FIXED: Fix compilation with gcc >14 in release with LTO. [#7268](https://github.com/Project-OSRM/osrm-backend/issues/7268)
89
- Misc:
910
- ADDED: `SHM_LOCK_DIR` environment variable for shared memory lock file directory [#7312](https://github.com/Project-OSRM/osrm-backend/pull/7312)
1011
- FIXED: Fix JSON rendering of large OSM IDs (avoids scientific notation) and handle NaN/Infinity gracefully [#7016](https://github.com/Project-OSRM/osrm-backend/issues/7016)

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ add_library(SERVER OBJECT ${ServerGlob})
173173

174174
set_target_properties(UTIL PROPERTIES LINKER_LANGUAGE CXX)
175175

176+
# We will otherwise get false-positive errors in the linker stage (boost/qi) that can't be disabled with pragmas
177+
set_property(TARGET SERVER PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE)
178+
176179
add_executable(osrm-routed src/tools/routed.cpp $<TARGET_OBJECTS:SERVER> $<TARGET_OBJECTS:UTIL>)
177180
add_executable(osrm-extract src/tools/extract.cpp)
178181
add_executable(osrm-partition src/tools/partition.cpp)

0 commit comments

Comments
 (0)