Opened 2 years ago

Closed 2 years ago

Last modified 21 months ago

#18019 closed enhancement (fixed)

Qt5 FTBFS with GCC-13

Reported by: pierre Owned by: pierre
Priority: normal Milestone: 12.0
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description (last modified by pierre)

Report by Rahul Chandra on blfs-dev list:

Hi, It seems like GCC-13 broke the QT 5 build, as far as I can see it's because some implicit declarations got removed in GCC 13. I think all you would need to do to fix this is to regenerate the QT5 KDE Patch as it has already been upstreamed in KDE's repo.

The build errors out with errors like this

error: ‘FeatureType’ does not name a type; did you mean ‘ToFeatureType’?

Relevant links https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-113111?filter=allissues https://invent.kde.org/qt/qt/qtlocation-mapboxgl/-/merge_requests/1

Change History (7)

comment:1 by Bruce Dubbs, 2 years ago

Description: modified (diff)

comment:2 by pierre, 2 years ago

Description: modified (diff)
Owner: changed from blfs-book to pierre
Status: newassigned

Testing if it is reproducible first

comment:3 by pierre, 2 years ago

Description: modified (diff)

Hmm, I inadvertently changed back the description. Sorry. Changing again...

comment:4 by pierre, 2 years ago

Looks like the following sed's allows building:

sed -e "/pragma once/a#include <cstdint>" \
    -i qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/{geometry,string}.hpp
sed -e "/pragma once/a#include <cstdint>" \
    -i qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp

comment:5 by pierre, 2 years ago

Better (thanks Bruce):

sed -e "/pragma once/a#include <cstdint>"                                      \
    -i qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp \
       qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp   \
       qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp

comment:6 by pierre, 2 years ago

Resolution: fixed
Status: assignedclosed

Fixed at commit da60874cd1b

comment:7 by Bruce Dubbs, 21 months ago

Milestone: 11.412.0

Milestone renamed

Note: See TracTickets for help on using tickets.