Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642518 - sci-geosciences/gpsd-3.17-r1 - ebuild should enforce -std=c++11 or -std=gnu++11 compiler options
Summary: sci-geosciences/gpsd-3.17-r1 - ebuild should enforce -std=c++11 or -std=gnu++...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-28 13:23 UTC by Martin Mokrejš
Modified: 2017-12-28 14:37 UTC (History)
0 users

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


Attachments
build.log (build.log,30.96 KB, text/plain)
2017-12-28 13:24 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2017-12-28 13:23:45 UTC
Hi,
  I am using gcc-4.9.4 and probably the compile errors could maybe prevented by the proper C*FLAGS (did not test that yet).


x86_64-pc-linux-gnu-g++ -o qt-gpsutils.os -c -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -pthread -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -O2 -pthread -fPIC -DUSE_QT -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/qt5/QtNetwork -I/usr/include/qt5 -I/usr/include/qt5/QtCore gpsutils.c
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/type_traits:35:0,
                 from /usr/include/qt5/QtCore/qglobal.h:45,
                 from /usr/include/qt5/QtCore/qchar.h:43,
                 from /usr/include/qt5/QtCore/qstring.h:48,
                 from /usr/include/qt5/QtCore/qdatetime.h:44,
                 from /usr/include/qt5/QtCore/QDateTime:1,
                 from gpsutils.c:27:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from /usr/include/qt5/QtCore/qglobal.h:98:0,
                 from /usr/include/qt5/QtCore/qchar.h:43,
                 from /usr/include/qt5/QtCore/qstring.h:48,
                 from /usr/include/qt5/QtCore/qdatetime.h:44,
                 from /usr/include/qt5/QtCore/QDateTime:1,
                 from gpsutils.c:27:
/usr/include/qt5/QtCore/qcompilerdetection.h:567:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that.
 #    error Qt requires a C++11 compiler and yours does not seem to be that.
      ^
In file included from /usr/include/qt5/QtCore/qatomic.h:46:0,
                 from /usr/include/qt5/QtCore/qglobal.h:1158,
                 from /usr/include/qt5/QtCore/qchar.h:43,
                 from /usr/include/qt5/QtCore/qstring.h:48,
                 from /usr/include/qt5/QtCore/qdatetime.h:44,
                 from /usr/include/qt5/QtCore/QDateTime:1,
                 from gpsutils.c:27:
/usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support"
 #  error "Qt requires C++11 support"
    ^
In file included from /usr/include/qt5/QtCore/qstring.h:48:0,
                 from /usr/include/qt5/QtCore/qdatetime.h:44,
                 from /usr/include/qt5/QtCore/QDateTime:1,
                 from gpsutils.c:27:
/usr/include/qt5/QtCore/qchar.h:587:1: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
 Q_DECL_CONSTEXPR inline bool operator!=(QChar lhs, std::nullptr_t) Q_DECL_NOTHROW { return !operator==(lhs, nullptr); }
 ^
In file included from /usr/include/qt5/QtCore/qchar.h:43:0,
                 from /usr/include/qt5/QtCore/qstring.h:48,
                 from /usr/include/qt5/QtCore/qdatetime.h:44,
                 from /usr/include/qt5/QtCore/QDateTime:1,
                 from gpsutils.c:27:
/usr/include/qt5/QtCore/qglobal.h:927:23: error: expected ',' or '...' before '&&' token
 void qAsConst(const T &&) Q_DECL_EQ_DELETE;
                       ^
/usr/include/qt5/QtCore/qglobal.h:938:25: error: expected ',' or '...' before '&&' token
     QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end())  {}
                         ^
/usr/include/qt5/QtCore/qglobal.h:940:41: error: expected ',' or '...' before '&&' token
     QForeachContainer(QForeachContainer &&other)
                                         ^
/usr/include/qt5/QtCore/qglobal.h:940:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer<T> (const QtPrivate::QForeachContainer<T>&)'
     QForeachContainer(QForeachContainer &&other)
                                                ^
/usr/include/qt5/QtCore/qglobal.h:948:52: error: expected ',' or '...' before '&&' token
     QForeachContainer &operator=(QForeachContainer &&other)
                                                    ^
/usr/include/qt5/QtCore/qglobal.h:959:19: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
     int control = 1;
                   ^
/usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer<T>::QForeachContainer(T)':
/usr/include/qt5/QtCore/qglobal.h:938:34: error: 'move' is not a member of 'std'
     QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end())  {}
                                  ^
/usr/include/qt5/QtCore/qglobal.h:938:44: error: 't' was not declared in this scope
     QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end())  {}
                                            ^
/usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer<T>& QtPrivate::QForeachContainer<T>::operator=(QtPrivate::QForeachContainer<T>)':
/usr/include/qt5/QtCore/qglobal.h:950:13: error: 'move' is not a member of 'std'
         c = std::move(other.c);
             ^
/usr/include/qt5/QtCore/qglobal.h:950:23: error: 'other' was not declared in this scope
         c = std::move(other.c);
                       ^
/usr/include/qt5/QtCore/qglobal.h:953:19: error: 'move' is not a member of 'std'
         control = std::move(other.control);
                   ^
/usr/include/qt5/QtCore/qglobal.h: At global scope:
/usr/include/qt5/QtCore/qglobal.h:963:33: error: 'decay' in namespace 'std' does not name a template type
 QForeachContainer<typename std::decay<T>::type> qMakeForeachContainer(T &&t)
                                 ^
/usr/include/qt5/QtCore/qglobal.h:963:38: error: expected template-argument before '<' token
 QForeachContainer<typename std::decay<T>::type> qMakeForeachContainer(T &&t)
                                      ^
/usr/include/qt5/QtCore/qglobal.h:963:38: error: expected '>' before '<' token
/usr/include/qt5/QtCore/qglobal.h:963:47: error: template argument 1 is invalid
 QForeachContainer<typename std::decay<T>::type> qMakeForeachContainer(T &&t)
                                               ^
/usr/include/qt5/QtCore/qglobal.h:963:49: error: expected '::' before 'qMakeForeachContainer'
 QForeachContainer<typename std::decay<T>::type> qMakeForeachContainer(T &&t)
                                                 ^
/usr/include/qt5/QtCore/qglobal.h:963:73: error: expected ',' or '...' before '&&' token
 QForeachContainer<typename std::decay<T>::type> qMakeForeachContainer(T &&t)
                                                                         ^
/usr/include/qt5/QtCore/qglobal.h:963:76: error: ISO C++ forbids declaration of 'qMakeForeachContainer' with no type [-fpermissive]
 QForeachContainer<typename std::decay<T>::type> qMakeForeachContainer(T &&t)
                                                                            ^
/usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)':
/usr/include/qt5/QtCore/qglobal.h:965:44: error: 'decay' in namespace 'std' does not name a template type
     return QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
                                            ^
/usr/include/qt5/QtCore/qglobal.h:965:49: error: expected template-argument before '<' token
     return QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
                                                 ^
/usr/include/qt5/QtCore/qglobal.h:965:49: error: expected '>' before '<' token
/usr/include/qt5/QtCore/qglobal.h:965:58: error: template argument 1 is invalid
     return QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
                                                          ^
/usr/include/qt5/QtCore/qglobal.h:965:59: error: expected '::' before '(' token
     return QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
                                                           ^
/usr/include/qt5/QtCore/qglobal.h:965:59: error: expected identifier before '(' token
/usr/include/qt5/QtCore/qglobal.h:965:60: error: 'forward' is not a member of 'std'
     return QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
                                                            ^
/usr/include/qt5/QtCore/qglobal.h:965:74: error: expected primary-expression before '>' token
     return QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
                                                                          ^
/usr/include/qt5/QtCore/qglobal.h:965:76: error: 't' was not declared in this scope
     return QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
                                                                            ^
...


 ^
scons: *** [qt-gpsutils.os] Error 1
scons: building terminated because of errors.
 * ERROR: sci-geosciences/gpsd-3.17-r1::gentoo failed (compile phase):
 *   escons failed.
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 4247:  Called escons
 *   environment, line 1931:  Called die
 * The specific snippet of code:
 *                   die "escons failed."
 * 
 * If you need support, post the output of `emerge --info '=sci-geosciences/gpsd-3.17-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/gpsd-3.17-r1::gentoo'`.
 * The complete build log is located at '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/temp/build.log'.
 * The ebuild environment file is located at '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/temp/environment'.
 * Working directory: '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/work/gpsd-3.17'
 * S: '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/work/gpsd-3.17'
Comment 1 Martin Mokrejš 2017-12-28 13:23:56 UTC
# emerge --info '=sci-geosciences/gpsd-3.17-r1::gentoo'
Portage 2.3.19 (python 2.7.14-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.26-r3, 4.4.99-default-pciehp x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.99-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.4.1
KiB Mem:    16375256 total,  12211572 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 23 Dec 2017 06:30:01 +0000
Head commit of repository gentoo: a695871894337ea91d186f1e95bf09da9de29039
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.9999::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo, 3.5.4::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.10.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.27-r1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            4.3.6-r1::gentoo, 4.4.7::gentoo, 4.6.4::gentoo, 4.7.4::gentoo, 4.8.5::gentoo, 4.9.4::gentoo, 5.3.0::gentoo, 5.4.0-r3::gentoo, 6.2.0-r1::gentoo, 6.3.0::gentoo, 7.1.0-r1::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /scratch/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

science
    location: /scratch/mmokrejs/proj/sci
    masters: gentoo
    priority: 0

layman
    location: /var/lib/layman
    masters: gentoo
    priority: 1

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x OPERA-2014 RAR Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.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 -mpclmul -mpopcnt -march=native -ftree-vectorize"
DISTDIR="/scratch/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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="/scratch/var/tmp"
USE="R X acpi alsa amd64 amr apache apache2 asm avx berkdb bindist bluetooth boost bzip2 cairo cgi cli coin consolekit cracklib crypt cryptlib cryptsetup cups cxx dbus device-mapper dhcp directfb dri drm dvd emboss encode fax fbcon ffmpeg flac fontconfig fortran fuse gbm gcrypt gd gdbm geoip geolocation gimp glpk gmp gnutls gpm gtk hal hpijs hwdb iconv id3tag imaging innodb inotify java javafx javascript jce jpeg jpg js jscript keymap ladspa lame lapack laptop lcms libnotify lm_sensors mad matroska mmx modemmanager modules mp3 multicore multilib multimedia mysql ncurses networkmanager nfs nls nptl nptlonly nscd ntfs ntfsdecrypt ntfsprogs objc ocr ogg opengl openmp pam parport pcre pcre16 pdf pdfimport pdl perl php pkcs11 plplot png policykit polkit postproc postscript ppds ppp pppd pptx pulseaudio python qt3support qt4 qt5 readline rendering resolvconf samba scanner sctp seccomp server session sha512 slideshow sna sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssh ssh-agent ssl sslv2 sslv3 ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype twolame udev unicode upower usb v4l v4l2 vim-syntax vnc wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 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="libinput keyboard mouse" KERNEL="linux" L10N="en-US en en-GB cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en_GB en cs" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby20 ruby21 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Martin Mokrejš 2017-12-28 13:24:10 UTC
Created attachment 511822 [details]
build.log
Comment 3 Andreas Sturmlechner gentoo-dev 2017-12-28 13:28:16 UTC
You should also upgrade to at least GCC-5.4 since all previous versions are now masked.
Comment 4 Martin Mokrejš 2017-12-28 13:38:02 UTC
I know my gcc is now unsupported. Still, the ABI change is distracting me to give it a shot at all. I have some apps which likely won't compile with >=gcc-5.3.



Anyway, gcc-4.9.4 seems unable to compile gpsd even with the C++11 extensions enabled:

x86_64-pc-linux-gnu-g++ -o qt-gpsutils.os -c -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -std=c++11 -pthread -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -O2 -pthread -fPIC -DUSE_QT -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/qt5/QtNetwork -I/usr/include/qt5 -I/usr/include/qt5/QtCore gpsutils.c
In file included from libgps.h:15:0,
                 from gpsutils.c:23:
compiler.h: In function 'void memory_barrier()':
compiler.h:93:5: error: 'atomic_thread_fence' is not a member of 'std'
     std::atomic_thread_fence(std::memory_order_seq_cst);
     ^
compiler.h:93:30: error: 'memory_order_seq_cst' is not a member of 'std'
     std::atomic_thread_fence(std::memory_order_seq_cst);
                              ^
x86_64-pc-linux-gnu-g++ -o qt-gpsdclient.os -c -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -std=c++11 -pthread -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -O2 -pthread -fPIC -DUSE_QT -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/qt5/QtNetwork -I/usr/include/qt5 -I/usr/include/qt5/QtCore gpsdclient.c
x86_64-pc-linux-gnu-g++ -o qt-gps_maskdump.os -c -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -std=c++11 -pthread -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type -O2 -pthread -fPIC -DUSE_QT -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/qt5/QtNetwork -I/usr/include/qt5 -I/usr/include/qt5/QtCore gps_maskdump.c
gpsutils.c: In function 'double earth_distance_and_bearings(double, double, double, double, double*, double*)':
gpsutils.c:535:17: error: 'isnan' was not declared in this scope
  if (isnan(c_2SM))
                 ^
gpsutils.c:535:17: note: suggested alternative:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/random:38:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/stl_algo.h:66,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/algorithm:62,
                 from /usr/include/qt5/QtCore/qglobal.h:109,
                 from /usr/include/qt5/QtCore/qchar.h:43,
                 from /usr/include/qt5/QtCore/qstring.h:48,
                 from /usr/include/qt5/QtCore/qdatetime.h:44,
                 from /usr/include/qt5/QtCore/QDateTime:1,
                 from gpsutils.c:27:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/cmath:641:5: note:   'std::isnan'
     isnan(_Tp __x)
     ^
In file included from gpsd.h:10:0,
                 from gps_maskdump.c:11:
compiler.h: In function 'void memory_barrier()':
compiler.h:93:5: error: 'atomic_thread_fence' is not a member of 'std'
     std::atomic_thread_fence(std::memory_order_seq_cst);
     ^
compiler.h:93:30: error: 'memory_order_seq_cst' is not a member of 'std'
     std::atomic_thread_fence(std::memory_order_seq_cst);
                              ^
scons: *** [qt-gps_maskdump.os] Error 1
scons: *** [qt-gpsutils.os] Error 1
scons: building terminated because of errors.
 * ERROR: sci-geosciences/gpsd-3.17-r1::gentoo failed (compile phase):
 *   escons failed.
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 4247:  Called escons
 *   environment, line 1931:  Called die
 * The specific snippet of code:
 *                   die "escons failed."
 * 
 * If you need support, post the output of `emerge --info '=sci-geosciences/gpsd-3.17-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/gpsd-3.17-r1::gentoo'`.
 * The complete build log is located at '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/temp/build.log'.
 * The ebuild environment file is located at '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/temp/environment'.
 * Working directory: '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/work/gpsd-3.17'
 * S: '/scratch/var/tmp/portage/sci-geosciences/gpsd-3.17-r1/work/gpsd-3.17'
Comment 5 Amy Liffey gentoo-dev 2017-12-28 14:37:49 UTC
We do not support masked gcc. Sorry