Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761079 - sci-geosciences/qmapshack-1.14.0 with Qt 5.15: .../CDraw.cpp:159:18: error: aggregate 'QPainterPath bubblePath' has incomplete type and cannot be defined
Summary: sci-geosciences/qmapshack-1.14.0 with Qt 5.15: .../CDraw.cpp:159:18: error: a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords: CC-ARCHES, STABLEREQ
Depends on:
Blocks: qt-5.15
  Show dependency tree
 
Reported: 2020-12-21 12:57 UTC by Richard H.
Modified: 2020-12-25 15:35 UTC (History)
1 user (show)

See Also:
Package list:
sci-geosciences/qmapshack-1.15.1
Runtime testing required: ---
nattka: sanity-check+


Attachments
emerge --info output (emerge--info.txt,6.48 KB, text/plain)
2020-12-21 12:57 UTC, Richard H.
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard H. 2020-12-21 12:57:06 UTC
Created attachment 679080 [details]
emerge --info output

During a revdep-rebuild I found, that qmapshack does not longer compile. I could triage this to the following upstream bug report. I guess a patch is needed:

https://github.com/Maproom/qmapshack/pull/219

My build log for the relevant sections looks as follows:

[23/363] /usr/bin/g++ -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -DAPPLICATION_NAME=qmaptool -DHAVE_DBUS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVER_MAJOR=1 -DVER_MINOR=14 -DVER_STEP=0 -DVER_TWEAK="" -Isrc/qmaptool -I/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool -Isrc/qmaptool/qmaptool_autogen/include -isystem . -isystem /usr/include/gdal -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtNetwork  -DNDEBUG -march=native -O2 -pipe -std=c++11 -lstdc++ -lm -Wsuggest-override -Woverloaded-virtual   -fPIC -Wall -Wpedantic -Wno-switch -Wno-strict-aliasing -fPIC -MD -MT src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o -MF src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o.d -o src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o -c /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp
FAILED: src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o 
/usr/bin/g++ -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -DAPPLICATION_NAME=qmaptool -DHAVE_DBUS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVER_MAJOR=1 -DVER_MINOR=14 -DVER_STEP=0 -DVER_TWEAK="" -Isrc/qmaptool -I/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool -Isrc/qmaptool/qmaptool_autogen/include -isystem . -isystem /usr/include/gdal -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtNetwork  -DNDEBUG -march=native -O2 -pipe -std=c++11 -lstdc++ -lm -Wsuggest-override -Woverloaded-virtual   -fPIC -Wall -Wpedantic -Wno-switch -Wno-strict-aliasing -fPIC -MD -MT src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o -MF src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o.d -o src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o -c /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp
/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp: In static member function ‘static QPoint CDraw::bubble(QPainter&, const QRect&, const QPoint&, int, float)’:
/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp:159:18: error: aggregate ‘QPainterPath bubblePath’ has incomplete type and cannot be defined
  159 |     QPainterPath bubblePath;
      |                  ^~~~~~~~~~
/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp:189:22: error: aggregate ‘QPainterPath pointerPath’ has incomplete type and cannot be defined
  189 |         QPainterPath pointerPath;
      |                      ^~~~~~~~~~~
[24/363] /usr/bin/g++ -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -DAPPLICATION_NAME=qmaptool -DHAVE_DBUS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVER_MAJOR=1 -DVER_MINOR=14 -DVER_STEP=0 -DVER_TWEAK="" -Isrc/qmaptool -I/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool -Isrc/qmaptool/qmaptool_autogen/include -isystem . -isystem /usr/include/gdal -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtNetwork  -DNDEBUG -march=native -O2 -pipe -std=c++11 -lstdc++ -lm -Wsuggest-override -Woverloaded-virtual   -fPIC -Wall -Wpedantic -Wno-switch -Wno-strict-aliasing -fPIC -MD -MT src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridSelArea.cpp.o -MF src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridSelArea.cpp.o.d -o src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridSelArea.cpp.o -c /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/overlay/gridtool/CGridSelArea.cpp
[25/363] /usr/bin/g++ -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -DAPPLICATION_NAME=qmaptool -DHAVE_DBUS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVER_MAJOR=1 -DVER_MINOR=14 -DVER_STEP=0 -DVER_TWEAK="" -Isrc/qmaptool -I/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool -Isrc/qmaptool/qmaptool_autogen/include -isystem . -isystem /usr/include/gdal -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtNetwork  -DNDEBUG -march=native -O2 -pipe -std=c++11 -lstdc++ -lm -Wsuggest-override -Woverloaded-virtual   -fPIC -Wall -Wpedantic -Wno-switch -Wno-strict-aliasing -fPIC -MD -MT src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridPoint.cpp.o -MF src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridPoint.cpp.o.d -o src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridPoint.cpp.o -c /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/overlay/gridtool/CGridPoint.cpp
[26/363] /usr/bin/g++ -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -DAPPLICATION_NAME=qmaptool -DHAVE_DBUS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVER_MAJOR=1 -DVER_MINOR=14 -DVER_STEP=0 -DVER_TWEAK="" -Isrc/qmaptool -I/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool -Isrc/qmaptool/qmaptool_autogen/include -isystem . -isystem /usr/include/gdal -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtNetwork  -DNDEBUG -march=native -O2 -pipe -std=c++11 -lstdc++ -lm -Wsuggest-override -Woverloaded-virtual   -fPIC -Wall -Wpedantic -Wno-switch -Wno-strict-aliasing -fPIC -MD -MT src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridSetRef.cpp.o -MF src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridSetRef.cpp.o.d -o src/qmaptool/CMakeFiles/qmaptool.dir/overlay/gridtool/CGridSetRef.cpp.o -c /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/overlay/gridtool/CGridSetRef.cpp
ninja: build stopped: subcommand failed.
 * ERROR: sci-geosciences/qmapshack-1.14.0::gentoo failed (compile phase):
 *   ninja -v -j4 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 2118:  Called cmake-utils_src_compile
 *   environment, line  731:  Called cmake-utils_src_make
 *   environment, line  915:  Called _cmake_ninja_src_make
 *   environment, line  463:  Called eninja
 *   environment, line 1221:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-geosciences/qmapshack-1.14.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/qmapshack-1.14.0::gentoo'`.
 * The complete build log is located at '/tmp/portage/sci-geosciences/qmapshack-1.14.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/sci-geosciences/qmapshack-1.14.0/temp/environment'.
 * Working directory: '/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-1.14.0_build'
 * S: '/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0'

Trying to compile the failed file yields:

richIx220 ~ # cd /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-1.14.0_build/

richIx220 /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-1.14.0_build # LANG=C /usr/bin/g++ -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -DAPPLICATION_NAME=qmaptool -DHAVE_DBUS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVER_MAJOR=1 -DVER_MINOR=14 -DVER_STEP=0 -DVER_TWEAK="" -Isrc/qmaptool -I/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool -Isrc/qmaptool/qmaptool_autogen/include -isystem . -isystem /usr/include/gdal -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtNetwork  -DNDEBUG -march=native -O2 -pipe -std=c++11 -lstdc++ -lm -Wsuggest-override -Woverloaded-virtual   -fPIC -Wall -Wpedantic -Wno-switch -Wno-strict-aliasing -fPIC -MD -MT src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o -MF src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o.d -o src/qmaptool/CMakeFiles/qmaptool.dir/helpers/CDraw.cpp.o -c /tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp
/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp: In static member function 'static QPoint CDraw::bubble(QPainter&, const QRect&, const QPoint&, int, float)':
/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp:159:18: error: aggregate 'QPainterPath bubblePath' has incomplete type and cannot be defined
  159 |     QPainterPath bubblePath;
      |                  ^~~~~~~~~~
/tmp/portage/sci-geosciences/qmapshack-1.14.0/work/qmapshack-V_1.14.0/src/qmaptool/helpers/CDraw.cpp:189:22: error: aggregate 'QPainterPath pointerPath' has incomplete type and cannot be defined
  189 |         QPainterPath pointerPath;
      |                      ^~~~~~~~~~~

This happens with CLang and current GCC both.
Comment 1 Andreas Sturmlechner gentoo-dev 2020-12-21 13:01:12 UTC
What about 1.15.1?
Comment 2 Richard H. 2020-12-21 13:26:11 UTC
(In reply to Andreas Sturmlechner from comment #1)
> What about 1.15.1?

1.15.1 builds and runs fine on my machine
Comment 3 Andreas Sturmlechner gentoo-dev 2020-12-21 13:35:18 UTC
I'll start stabilisation then considering stable is broken since October.
Comment 4 Richard H. 2020-12-21 13:55:31 UTC
(In reply to Andreas Sturmlechner from comment #3)
> I'll start stabilisation then considering stable is broken since October.

Thanks!
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2020-12-21 17:49:18 UTC
x86 stable
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-22 18:54:56 UTC
amd64 done

all arches done
Comment 7 Larry the Git Cow gentoo-dev 2020-12-25 15:35:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b25193eca46c3cd588ff2abfa8c99a3e62d52341

commit b25193eca46c3cd588ff2abfa8c99a3e62d52341
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-12-25 15:21:03 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-12-25 15:35:22 +0000

    sci-geosciences/qmapshack: Drop 1.14.0, unbuildable with Qt 5.15
    
    Bug: https://bugs.gentoo.org/761079
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 sci-geosciences/qmapshack/Manifest                 |   1 -
 sci-geosciences/qmapshack/files/FindPROJ4.cmake    | 152 ---------------------
 .../qmapshack/files/qmapshack-positioning.patch    |   9 --
 .../qmapshack/files/qmapshack-qt-5.15.patch        |  67 ---------
 sci-geosciences/qmapshack/qmapshack-1.14.0.ebuild  |  38 ------
 5 files changed, 267 deletions(-)