Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595764 - media-sound/audacity-2.0.5-r1[flac] with sys-devel/gcc-6.2.0-r1 - error: cannot convert 'bool' to 'ImportFileHandle*' in return
Summary: media-sound/audacity-2.0.5-r1[flac] with sys-devel/gcc-6.2.0-r1 - error: cann...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
: 602038 (view as bug list)
Depends on:
Blocks: gcc-6
  Show dependency tree
 
Reported: 2016-10-01 08:49 UTC by eroen
Modified: 2017-09-26 17:36 UTC (History)
9 users (show)

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


Attachments
build.log.xz (build.log.xz,44.35 KB, application/x-xz)
2016-10-01 08:49 UTC, eroen
Details
instead of boolean it should return NULL (audacity-gcc6.patch,681 bytes, patch)
2016-10-03 00:31 UTC, milan hodoscek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2016-10-01 08:49:11 UTC
Created attachment 448678 [details]
build.log.xz

x86_64-pc-linux-gnu-g++ -c -O2 -pipe -I../lib-src/portmixer/include -O2 -pipe  -Wall -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -I/var/tmp/portage/media-sound/audacity-2.0.5-r1/work/audacity-src-2.0.5/lib-src/lib-widget-extra     -I../lib-src/libnyquist  -I../lib-src/portaudio-v19/include  -fno-strict-aliasing -I./include -I. -DLIBDIR=\"/usr/lib64\" -D__STDC_CONSTANT_MACROS   -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2    import/ImportFLAC.cpp -o import/ImportFLAC.o
...
import/ImportFLAC.cpp: In member function 'virtual ImportFileHandle* FLACImportPlugin::Open(wxString)':
import/ImportFLAC.cpp:299:14: error: cannot convert 'bool' to 'ImportFileHandle*' in return
       return false; // File not found
              ^~~~~
import/ImportFLAC.cpp:316:14: error: cannot convert 'bool' to 'ImportFileHandle*' in return
       return false;
              ^~~~~
Makefile:346: recipe for target 'import/ImportFLAC.o' failed
make[1]: *** [import/ImportFLAC.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-sound/audacity-2.0.5-r1/work/audacity-src-2.0.5/src'
Makefile:21: recipe for target 'audacity' failed
make: *** [audacity] Error 2
 * ERROR: media-sound/audacity-2.0.5-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 eroen 2016-10-01 08:49:43 UTC
localhost ~ # emerge --info '=media-sound/audacity-2.0.5-r1::gentoo'
Portage 2.3.0 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-6.2.0, glibc-2.22-r4, 4.4.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     4043380 total,   3247612 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 30 Sep 2016 00:45:01 +0000
sh bash 4.3_p46-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46-r1::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo, 6.2.0-r1::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS=""
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"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" 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="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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, USE_PYTHON

localhost ~ # emerge -pqv '=media-sound/audacity-2.0.5-r1::gentoo'
[ebuild  N    ] media-sound/audacity-2.0.5-r1  USE="flac -alsa (-ffmpeg) -id3tag -jack -ladspa -libsamplerate -midi -mp3 -sbsms -soundtouch -twolame -vamp -vorbis" 

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Comment 2 milan hodoscek 2016-10-03 00:31:54 UTC
Created attachment 448922 [details, diff]
instead of boolean it should return NULL

Patch to make it compile with gcc-6
Comment 3 Hanno Böck gentoo-dev 2017-01-15 09:06:03 UTC
*** Bug 602038 has been marked as a duplicate of this bug. ***
Comment 4 Matt Whitlock 2017-05-06 17:02:09 UTC
media-sound/audacity-2.1.1 fails in a similar though not identical way. These failures are attributable to G++ 6's change in default to -std=gnu++14 and the fact that C++11 (and later) does not allow implicit conversions from bool to pointer types.

The problem can be worked around by appending -std=gnu++98 to CXXFLAGS for media-sound/audacity. (Don't do this globally!)
Comment 5 Pacho Ramos gentoo-dev 2017-07-15 09:40:51 UTC
please retry with 2.1.3-r1
Comment 6 Kobboi 2017-07-15 14:33:47 UTC
2.1.3-r1 (and 2.1.3 before that) work for me (gcc-6.3.0)
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2017-09-26 17:36:46 UTC
(In reply to Kobboi from comment #6)
> 2.1.3-r1 (and 2.1.3 before that) work for me (gcc-6.3.0)

Excellent.