Opened 4 months ago
Closed 4 months ago
#73016 closed defect (fixed)
qt5-qtlocation @5.15.15_2 fails to build on macOS 26
| Reported by: | jaredwsmith (Jared Smith) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.11.5 |
| Keywords: | Cc: | ||
| Port: | qt5-qtlocation |
Description
Unable to build qt5-qtlocation as part of installing qgis3-ltr due to a compile error. macOS 26.0, Xcode 26, arm64 (Apple Silicon):
:info:build /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -I/opt/local/libexec/boost/1.76/include -DNDEBUG -DQT_IMAGE_DECODERS -DQT_BUILD_MAPBOXGL_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DMBGL_USE_GLES2 -D__QT__ -O3 -ftemplate-depth=1024 -fvisibility-inlines-hidden -fvisibility=hidden -DMBGL_VERSION_REV=\"qt-v1.5.0\" -Os -fPIC -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=14.0 -w -fvisibility=hidden -fvisibility-inlines-hidden -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DGL_SILENCE_DEPRECATION -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -Ideps/earcut/0.12.4 -Ideps/earcut/0.12.4/include -Ideps/geojson/0.4.2 -Ideps/geojson/0.4.2/include -Ideps/geojsonvt/6.5.1 -Ideps/geojsonvt/6.5.1/include -Ideps/geometry/0.9.3 -Ideps/geometry/0.9.3/include -Ideps/kdbush/0.1.1-1 -Ideps/kdbush/0.1.1-1/include -Ideps/optional/f27e7908 -Ideps/optional/f27e7908/include -Ideps/polylabel/1.0.3 -Ideps/polylabel/1.0.3/include -Ideps/protozero/1.5.2 -Ideps/protozero/1.5.2/include -Ideps/rapidjson/1.1.0 -Ideps/rapidjson/1.1.0/include -Ideps/shelf-pack/2.1.1 -Ideps/shelf-pack/2.1.1/include -Ideps/supercluster/0.2.2 -Ideps/supercluster/0.2.2/include -Ideps/tao_tuple/28626e99 -Ideps/tao_tuple/28626e99/include -Ideps/unique_resource/cba309e -Ideps/unique_resource/cba309e/include -Ideps/variant/1.1.4 -Ideps/variant/1.1.4/include -Ideps/vector-tile/1.0.2 -Ideps/vector-tile/1.0.2/include -Ideps/wagyu/0.4.3 -Ideps/wagyu/0.4.3/include -Iinclude -Iplatform/default -Iplatform/qt -Iplatform/qt/include -Isrc -Ivendor/nunicode/include -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers/5.15.15 -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers/5.15.15/QtNetwork -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers/5.15.15 -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers/5.15.15/QtGui -I/opt/local/libexec/qt5/lib/QtSql.framework/Headers/5.15.15 -I/opt/local/libexec/qt5/lib/QtSql.framework/Headers/5.15.15/QtSql -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers/5.15.15 -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers/5.15.15/QtCore -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers -I/opt/local/libexec/qt5/lib/QtSql.framework/Headers -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.moc -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib -o .obj/src/mbgl/renderer/bucket_parameters.o src/mbgl/renderer/bucket_parameters.cpp
:info:build src/mbgl/layout/symbol_projection.cpp:98:95: error: non-constant-expression cannot be narrowed from type 'value_type' (aka 'double') to 'float' in initializer list [-Wc++11-narrowing-const-reference]
:info:build 98 | return {{ static_cast<float>(pos[0] / pos[3]), static_cast<float>(pos[1] / pos[3]) }, pos[3] };
:info:build | ^~~~~~
Attachments (1)
Change History (5)
Changed 4 months ago by jaredwsmith (Jared Smith)
comment:1 Changed 4 months ago by jmroot (Joshua Root)
| Owner: | set to MarcusCalhoun-Lopez |
|---|---|
| Status: | new → assigned |
comment:2 Changed 4 months ago by jwhowarth
comment:3 Changed 4 months ago by reneeotten (Renee Otten)
I am doing the update to 5.15.17 now and have added the patch already. I am just building everything locally to make sure it works and will commit the changes once all subports are build.
comment:4 Changed 4 months ago by reneeotten (Renee Otten)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.

I fixed this in my local qt5 5.15.17 builds with the following on Xcode 26.9 for both Sequoia and Tahoe.
--- src/3rdparty/mapbox-gl-native/src/mbgl/layout/symbol_projection.cpp.orig 2025-09-18 11:04:32 +++ src/3rdparty/mapbox-gl-native/src/mbgl/layout/symbol_projection.cpp 2025-09-18 11:07:31 @@ -95,7 +95,7 @@ PointAndCameraDistance project(const Point<float>& point, const mat4& matrix) { vec4 pos = {{ point.x, point.y, 0, 1 }}; matrix::transformMat4(pos, pos, matrix); - return {{ static_cast<float>(pos[0] / pos[3]), static_cast<float>(pos[1] / pos[3]) }, pos[3] }; + return {{ static_cast<float>(pos[0] / pos[3]), static_cast<float>(pos[1] / pos[3]) }, static_cast<float>(pos[3]) }; } float evaluateSizeForFeature(const ZoomEvaluatedSize& zoomEvaluatedSize, const PlacedSymbol& placedSymbol) {