Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501592 - app-accessibility/festival-2.1 with sys-devel/gcc-4.7* - ../base_class/EST_TSimpleVector.cc:73:3: error: ‘just_resize’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
Summary: app-accessibility/festival-2.1 with sys-devel/gcc-4.7* - ../base_class/EST_TS...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Jesus Rivero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.7
  Show dependency tree
 
Reported: 2014-02-17 15:54 UTC by Mike Thompson
Modified: 2014-02-20 13:28 UTC (History)
2 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 Mike Thompson 2014-02-17 15:54:55 UTC
Build fails very early in the compilation when compiled with GCC 4.7.3.  The ebuild works without problem with GCC 4.6.3.

As an indication of how early in the build this shows up with GCC 4.7.3, note that the following snippet from the build log begins with the tarball unpacking:
>>> Unpacking source...
>>> Unpacking festival-2.1-release.tar.gz to /var/tmp/portage/app-accessibility/festival-2.1/work
>>> Unpacking festlex_CMU.tar.gz to /var/tmp/portage/app-accessibility/festival-2.1/work
>>> Unpacking festlex_OALD.tar.gz to /var/tmp/portage/app-accessibility/festival-2.1/work
tar: A lone zero block at 18820
>>> Unpacking festlex_POSLEX.tar.gz to /var/tmp/portage/app-accessibility/festival-2.1/work
...skipping...
                 from vector_jccp_t.cc:54:
/usr/include/string.h:42:14: note: ‘void* memcpy(void*, const void*, size_t)’ declared here, later i
n the translation unit
In file included from vector_jccp_t.cc:53:0:
../base_class/EST_TSimpleVector.cc: In instantiation of ‘void EST_TSimpleVector<T>::resize(int, int)
 [with T = EST_JoinCostCache*]’:
vector_jccp_t.cc:57:1:   required from here
../base_class/EST_TSimpleVector.cc:73:3: error: ‘just_resize’ was not declared in this scope, and no
 declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../base_class/EST_TSimpleVector.cc:73:3: note: declarations in dependent base ‘EST_TVector<EST_JoinC
ostCache*>’ are not found by unqualified lookup
../base_class/EST_TSimpleVector.cc:73:3: note: use ‘this->just_resize’ instead
../base_class/EST_TSimpleVector.cc: In instantiation of ‘void EST_TSimpleVector<T>::zero() [with T =
 EST_JoinCostCache*]’:
vector_jccp_t.cc:57:1:   required from here
../base_class/EST_TSimpleVector.cc:143:5: error: ‘memset’ was not declared in this scope, and no dec
larations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/cstring:44:0,
                 from /usr/share/speech-tools/include/EST_String.h:42,
                 from /usr/share/speech-tools/include/EST_error.h:182,
                 from ../base_class/EST_TVector.cc:47,
                 from vector_jccp_t.cc:54:
/usr/include/string.h:62:14: note: ‘void* memset(void*, int, size_t)’ declared here, later in the translation unit
make[4]: *** [vector_jccp_t.o] Error 1
make[3]: *** [inst_tmpl] Error 2
make[2]: *** [MultiSyn] Error 2
rm init_modules.o
make[1]: *** [modules] Error 2
make: *** [src] Error 2
emake failed
 * ERROR: app-accessibility/festival-2.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2221:  Called die
 * The specific snippet of code:
 *       emake -j1 PROJECT_LIBDEPS="" REQUIRED_LIBDEPS="" LOCAL_LIBDEPS="" OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=app-accessibility/festival-2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-accessibility/festival-2.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-accessibility/festival-2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-accessibility/festival-2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-accessibility/festival-2.1/work/festival'
 * S: '/var/tmp/portage/app-accessibility/festival-2.1/work/festival'

>>> Failed to emerge app-accessibility/festival-2.1, Log file:

>>>  '/var/tmp/portage/app-accessibility/festival-2.1/temp/build.log'

 * Messages for package app-accessibility/festival-2.1:

 * ERROR: app-accessibility/festival-2.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2221:  Called die
 * The specific snippet of code:
 *       emake -j1 PROJECT_LIBDEPS="" REQUIRED_LIBDEPS="" LOCAL_LIBDEPS="" OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=app-accessibility/festival-2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-accessibility/festival-2.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-accessibility/festival-2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-accessibility/festival-2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-accessibility/festival-2.1/work/festival'
 * S: '/var/tmp/portage/app-accessibility/festival-2.1/work/festival'

Reproducible: Always

Steps to Reproduce:
1. emerge festival
Actual Results:  
Build failure as shown in description.

Expected Results:  
A build log that ends like this (this is what resulted when building with GCC 4.6.3).

>>> app-accessibility/festival-2.1 merged.
>>> Regenerating /etc/ld.so.cache...

>>> Recording app-accessibility/festival in "world" favorites file...

Emerging in a chroot as a build host.

emerge --info

Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-_i3_CPU_550_@_3.20GHz-with-gentoo-2.2
KiB Mem:     3849264 total,   1593412 free
KiB Swap:    8392932 total,   8245608 free
Timestamp of tree: Thu, 13 Feb 2014 07:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm PUEL AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=core2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/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="-O3 -march=core2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg 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="-O3 -march=core2 -pipe -fomit-frame-pointer -funroll-all-loops"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://mirrors.kernel.org/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK="/usr/lib/systemd/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/var/lib/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X acl alsa amd64 bash-completion berkdb bzip2 caps cjk cli cracklib crypt curl cxx dbus doc dri fam fortran gdbm gmp gnutls iconv icu idn ipv6 jpeg latex lvm mmap mmx modules multilib ncurses nls nptl ogg opengl openmp pam pcre perl png python qemu qt3support readline session slang sql sse sse2 sse3 sse4_1 ssl ssse3 svg tcpd truetype udev unicode webkit xattr xml 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport wiki-publisher" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jaakko Perttilä 2014-02-19 12:07:42 UTC
(In reply to Mike Thompson from comment #0)
> Build fails very early in the compilation when compiled with GCC 4.7.3.  The
> ebuild works without problem with GCC 4.6.3.

Try -r1, it should work as it has the gcc-4.7 patch.
Comment 2 Mike Thompson 2014-02-19 15:49:46 UTC
Thank you for taking a look.  Yes, festival 2.1-r1 did build with GCC 4.7.3.  I didn't try running it yet, but I did notice something in build log that is also present when compiling with GCC 4.6.3:


 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * ttsxml.cc:70:8: warning: null argument where non-null required (argument 1) [-Wnonnull]
 * ttsxml.cc:70:8: warning: null argument where non-null required (argument 1) [-Wnonnull]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.cstr.ed.ac.uk/projects/festival/


I thought at first I was seeing this only with the -r1 ebuild and GCC 4.7.3, but I was mistaken:  it's *not* a strange new issue introduced with the new compiler version; it has already been there.  I'll be on the lookout for a bug to report to the upstream.

In the meantime, this is a vote for the app-accessibility/festival-2.1-r1 ebuild.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-20 13:27:45 UTC
*festival-2.1-r1 (03 Dec 2012)
  03 Dec 2012; Jesus Rivero <neurogeek@gentoo.org> +festival-2.1-r1.ebuild,
  +files/festival-2.1-gcc4.7.patch:
  Revbump. Makes it compile with gcc-4.7