Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905275 - sci-astronomy/stellarium-1.2: fails to compile (src/MeteorShowersMgr.hpp:331:19: error: field ‘m_lastUpdate’ has incomplete type ‘QDateTime’)
Summary: sci-astronomy/stellarium-1.2: fails to compile (src/MeteorShowersMgr.hpp:331:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Alexey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-29 06:12 UTC by Markus Osterhoff
Modified: 2023-05-01 08:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Osterhoff 2023-04-29 06:12:13 UTC
Latest stellarium-1.2 fails to compile on my system, using both gcc-11.3.1_p20221209 (now uninstalled) and gcc-12.2.1_p20230304 p13:

FAILED: plugins/MeteorShowers/src/CMakeFiles/MeteorShowers-static.dir/gui/MSConfigDialog.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DCOPYRIGHT_YEARS=\"2000-2023\" -DENABLE_MEDIA -DENABLE_NLS -DENABLE_SCRIPTING -DENABLE_SCRIPT_CONSOLE -DENABLE_SHOWMYSKY -DENABLE_XLSX -DINSTALL_DATADIR=\"/usr/share/stellarium\" -DMETEORSHOWERS_PLUGIN_LICENSE="\"GNU GPLv2 or later\"" -DMETEORSHOWERS_PLUGIN_VERSION=\"3.0.0\" -DNDEBUG -DPACKAGE_VERSION=\"0.22.5\" -DQT_CORE_LIB -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DSTELLARIUM_COPYRIGHT="\"Copyright (C) 2000-2023 Stellarium Developers\"" -DSTELLARIUM_DEV_URL=\"https://github.com/Stellarium/stellarium\" -DSTELLARIUM_MAJOR=0 -DSTELLARIUM_MINOR=22 -DSTELLARIUM_PATCH=5 -DSTELLARIUM_PUBLIC_VERSION=\"1.2\" -DSTELLARIUM_RELEASE_BUILD -DSTELLARIUM_SOURCE_DIR=\"/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2\" -DSTELLARIUM_URL=\"https://stellarium.org/\" -D_REENTRANT -D_USE_MATH_DEFINES -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2_build/plugins/MeteorShowers/src -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2_build/plugins/MeteorShowers/src/MeteorShowers-static_autogen/include -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2_build -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/src -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/src/core -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/src/core/modules -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/src/core/planetsephems -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/src/gui -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/src/scripting -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2_build/src -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/. -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/gui -I/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2_build/plugins/MeteorShowers/src/gui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -DQT_NO_DEBUG -O2 -pipe -march=haswell -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-result -DQT_STATICPLUGIN -fPIC -std=c++17 -MD -MT plugins/MeteorShowers/src/CMakeFiles/MeteorShowers-static.dir/gui/MSConfigDialog.cpp.o -MF plugins/MeteorShowers/src/CMakeFiles/MeteorShowers-static.dir/gui/MSConfigDialog.cpp.o.d -o plugins/MeteorShowers/src/CMakeFiles/MeteorShowers-static.dir/gui/MSConfigDialog.cpp.o -c /var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/gui/MSConfigDialog.cpp
In file included from /var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/gui/MSConfigDialog.hpp:23,
                 from /var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/gui/MSConfigDialog.cpp:22:
/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/MeteorShowersMgr.hpp:331:19: error: field ‘m_lastUpdate’ has incomplete type ‘QDateTime’
  331 |         QDateTime m_lastUpdate;
      |                   ^~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qobject.h:54,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qdialog.h:44,
                 from /usr/include/qt5/QtWidgets/qcolordialog.h:45,
                 from /usr/include/qt5/QtWidgets/QColorDialog:1,
                 from /var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/gui/MSConfigDialog.cpp:20:
/usr/include/qt5/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QDateTime’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/MeteorShowersMgr.hpp:114:35: error: return type ‘class QDateTime’ is incomplete
  114 |         QDateTime getLastUpdate() { return m_lastUpdate; }
      |                                   ^
/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/gui/MSConfigDialog.cpp: In member function ‘void MSConfigDialog::refreshUpdateTab()’:
/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2/plugins/MeteorShowers/src/gui/MSConfigDialog.cpp:149:59: error: invalid use of void expression
  149 |         m_ui->lastUpdate->setDateTime(m_mgr->getLastUpdate());
      |                                       ~~~~~~~~~~~~~~~~~~~~^~
ninja: build stopped: subcommand failed.
 * ERROR: sci-astronomy/stellarium-1.2::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3461:  Called cmake_src_compile
 *   environment, line 1470:  Called cmake_build
 *   environment, line 1439:  Called eninja
 *   environment, line 1910:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-astronomy/stellarium-1.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-astronomy/stellarium-1.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-astronomy/stellarium-1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-astronomy/stellarium-1.2/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2_build'
 * S: '/var/tmp/portage/sci-astronomy/stellarium-1.2/work/stellarium-1.2'


Reproducible: Always

Steps to Reproduce:
1. emerge stellarium

Actual Results:  
compilation failure

Expected Results:  
it should compile (and subsequently install)

emerge --info
Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1, gcc-12, glibc-2.36-r7, 5.4.80-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.4.80-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-4310U_CPU_@_2.00GHz-with-glibc2.36
KiB Mem:    16296268 total,   2498436 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 27 Apr 2023 14:00:01 +0000
Head commit of repository gentoo: 4656eaf77527a5c1d0a40a178787458ff56ce068
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.8.13_p2::gentoo, 3.9.13::gentoo, 3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust-bin:         1.66.1-r1::gentoo
dev-util/cmake:            3.25.3::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.34-r2::gentoo, 2.35.2::gentoo, 2.37_p1::gentoo, 2.38-r2::gentoo, 2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             11.0.0::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.7::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=haswell"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=haswell"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.gwdg.de/pub/linux/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en_GB fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X aalib acl acpi alsa amd64 bash-completion bindist bzip2 cli crypt cups dedicated dri encode exif ffmpeg fftw fortran ftp gdbm gif gimpprint iconv imap ipv4 ipv6 jpeg laptop libglvnd libtirpc lm_sensors mmx mplayer multilib ncurses nls nptl opengl openmp pam pcre pdf plotutils png ppds readline seccomp security split-usr sse sse2 ssl strong-security svg test-rust tiff tools unicode usb v4l v4l2 vim-syntax win32codecs xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" L10N="de en_GB fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-29 06:17:53 UTC
Please include the full build.log.

This is probably just a missing include for some Qt component.
Comment 2 Markus Osterhoff 2023-04-30 07:15:07 UTC
(In reply to Sam James from comment #1)
> Please include the full build.log.
Sorry, it seems the "add an attachment" is broken; after submitting, it throws a 500. For the time being, I've uploaded it here:

http://www.roentgen.physik.uni-goettingen.de/~mosterh/stellarium-1.2_build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-30 07:19:19 UTC
(In reply to Markus Osterhoff from comment #2)
> (In reply to Sam James from comment #1)
> > Please include the full build.log.
> Sorry, it seems the "add an attachment" is broken; after submitting, it
> throws a 500. For the time being, I've uploaded it here:
> 
> http://www.roentgen.physik.uni-goettingen.de/~mosterh/stellarium-1.2_build.
> log

Does your browser (or the user it's running as) definitely have permissions to open the log? It's a common misleading error.
Comment 4 Markus Osterhoff 2023-04-30 16:50:57 UTC
Okay, after an eix-sync I could emerge the new version sci-astronomy/stellarium-23.1.
Comment 5 Markus Osterhoff 2023-05-01 08:31:31 UTC
(In reply to Sam James from comment #3)
> > > Please include the full build.log.
> > Sorry, it seems the "add an attachment" is broken; after submitting, it
> > throws a 500. For the time being, I've uploaded it here:
> > 
> > http://www.roentgen.physik.uni-goettingen.de/~mosterh/stellarium-1.2_build.log
> Does your browser (or the user it's running as) definitely have permissions
> to open the log? It's a common misleading error.
Sorry, should work now; I mis-spelled the file name while copying the build.log into a *_build
Comment 6 Alexey 2023-05-01 08:34:01 UTC
Either way, thanks for verifying that 23.1 works. 1.2 will be gone soon