Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116030 - GCC 4 fixes for app-accessibility/{speech-tools,festival}
Summary: GCC 4 fixes for app-accessibility/{speech-tools,festival}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: William Hubbs
URL: http://gentoo.mercymachines.net
Whiteboard:
Keywords:
: 134012 140224 146391 (view as bug list)
Depends on:
Blocks: 114313 117482
  Show dependency tree
 
Reported: 2005-12-19 04:23 UTC by Meethune Bhowmick
Modified: 2006-09-13 08:26 UTC (History)
31 users (show)

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


Attachments
GCC 4 Fixes for app-accessibility/speech-tools (speech-tools-gcc4.0.diff,5.14 KB, patch)
2005-12-19 04:24 UTC, Meethune Bhowmick
Details | Diff
GCC 4 Fixes for app-accessibility/festival (festival-gcc4.0.diff,33.01 KB, patch)
2005-12-19 04:24 UTC, Meethune Bhowmick
Details | Diff
Updated Ebuild for app-accessibility/festival (festival-1.4.3-r5.ebuild,4.93 KB, text/plain)
2005-12-19 04:25 UTC, Meethune Bhowmick
Details
Updated Ebuild for app-accessibility/speech-tools (speech-tools-1.2.3-r4.ebuild,3.00 KB, text/plain)
2005-12-19 04:26 UTC, Meethune Bhowmick
Details
Tarball with updated speech-tools and festival ebuild and patches (speech-tools_festival-gcc4.tar.gz,15.66 KB, application/octet-stream)
2005-12-19 04:27 UTC, Meethune Bhowmick
Details
Here is the ebuild; I will also attach the asterisk patch. (festival-1.95_beta.ebuild,4.42 KB, text/plain)
2006-03-19 16:40 UTC, William Hubbs
Details
asterisk patch for this version of festival. (festival-1.95_beta-asterisk.patch,739 bytes, patch)
2006-03-19 16:43 UTC, William Hubbs
Details | Diff
The patches tarball (festival-gcc41-fixes.tar.gz,14.37 KB, application/x-tar)
2006-05-30 08:47 UTC, Bernard Cafarelli
Details
festival-gcc41.patch (festival-gcc41.patch,2.59 KB, patch)
2006-06-04 19:08 UTC, Ed Catmur
Details | Diff
sizes.c - type size checker (sizes.c,844 bytes, text/plain)
2006-06-26 17:53 UTC, Wiktor Wandachowicz
Details
gcc41-amd64.patch (gcc41-amd64.patch,419 bytes, patch)
2006-06-27 04:52 UTC, Ed Catmur
Details | Diff
amd64-int-pointer.patch (amd64-int-pointer.patch,10.99 KB, patch)
2006-07-20 19:48 UTC, Ed Catmur
Details | Diff
festival-1.96_beta.ebuild (festival-1.96_beta.ebuild,4.94 KB, text/plain)
2006-08-04 16:56 UTC, Robert Lawrence
Details
festival-gcc41.patch (festival-gcc41.patch,2.59 KB, patch)
2006-08-04 16:57 UTC, Robert Lawrence
Details | Diff
gcc41-amd64.patch (gcc41-amd64.patch,419 bytes, patch)
2006-08-04 16:58 UTC, Robert Lawrence
Details | Diff
festival.rc (festival.rc,621 bytes, text/plain)
2006-08-04 16:58 UTC, Robert Lawrence
Details
server.scm (server.scm,781 bytes, text/plain)
2006-08-04 16:58 UTC, Robert Lawrence
Details
Attachment for comment 82 (attachment_for_comment_82.txt,13.44 KB, text/plain)
2006-09-08 02:03 UTC, Sven Schwyn (svoop)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Meethune Bhowmick 2005-12-19 04:23:34 UTC
I pulled these patches from Fedora CVS. After some tweaking, I now have ebuilds and patches that will allow speech-tools and festival to compile and run using GCC 4. I removed the gcc version conditionals from the ebuilds. These patches should compile on gcc 3.3, 3.4, and 4.0 (though I've only tested them on 3.4 and 4.0.2). There are alot of warnings while compiling so the patches could probably use some scrutiny. However it will compile and run without issue. I don't have asterisk installed so I'm not sure if these patches will break the asterisk patch.
Comment 1 Meethune Bhowmick 2005-12-19 04:24:19 UTC
Created attachment 75084 [details, diff]
GCC 4 Fixes for app-accessibility/speech-tools
Comment 2 Meethune Bhowmick 2005-12-19 04:24:51 UTC
Created attachment 75085 [details, diff]
GCC 4 Fixes for app-accessibility/festival
Comment 3 Meethune Bhowmick 2005-12-19 04:25:48 UTC
Created attachment 75086 [details]
Updated Ebuild for app-accessibility/festival
Comment 4 Meethune Bhowmick 2005-12-19 04:26:14 UTC
Created attachment 75087 [details]
Updated Ebuild for app-accessibility/speech-tools
Comment 5 Meethune Bhowmick 2005-12-19 04:27:12 UTC
Created attachment 75088 [details]
Tarball with updated speech-tools and festival ebuild and patches
Comment 6 Thomas Beinicke 2006-01-01 08:39:02 UTC
I downloaded the tarball and tried to emerge it but got the following errors:

Making in directory ./siod ...
making dependencies -- siodeditline.c el_complete.c editline.c el_sys_unix.c slib.cc slib_core.cc slib_doc.cc slib_file.cc slib_format.cc slib_list.cc slib_math.cc slib_sys.cc slib_server.cc slib_str.cc slib_xtr.cc slib_repl.cc siod_fringe.cc siod_server.cc io.cc trace.cc EST_SiodServer.cc siod.cc siod_est.cc
i686-pc-linux-gnu-g++ -c -fno-implicit-templates -march=athlon-xp -O2 -fPIC -fno-shared-data -Wall -DSUPPORT_EDITLINE -I../include slib.cc
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20051230/include/g++-v4/backward/strstream:51,
                 from ../include/EST_iostream.h:54,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20051230/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_String.h: In member function &#8216;void EST_String::make_updatable()&#8217;:
../include/EST_String.h:253: error: no matching function for call to &#8216;make_updatable(EST_ChunkPtr&, int)&#8217;
../include/EST_TList.h: At global scope:
../include/EST_TList.h:226: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TList<T>&)&#8217; declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TVector.h:313: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TVector<T>&)&#8217; declares a non-template function
../include/EST_TKVL.h:61: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&)&#8217; declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&)&#8217; declares a non-template function
../include/EST_TMatrix.h:308: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&)&#8217; declares a non-template function
slib.cc: In function &#8216;void gc_mark_and_sweep()&#8217;:
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2


Here is my emerge info:
Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-4.1.0-beta20051230, glibc-2.3.6-r1, 2.6.14-nitro2 i686)

If you need any additional info please let me know.

Thanks
Comment 7 Meethune Bhowmick 2006-01-01 16:09:18 UTC
(In reply to comment #6)

> Here is my emerge info:
> Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-4.1.0-beta20051230,
> glibc-2.3.6-r1, 2.6.14-nitro2 i686)
> 
> If you need any additional info please let me know.
> 
> Thanks
> 
I've only tested this with gcc 4.0.2 . But it looks like a namespace issue in EST_String.h . I don't know what is the diff between 4.0 and 4.1 offhand. I'll install the 4.1 compiler and see if I get the same error. I'll post a fix if I do.
Meethune
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-01-02 02:31:58 UTC
I'd say we should limit this bug to gcc-4.0.x, the whole thing is enough mess as it is, and gcc-4.1 won't go into ~arch any time soon.
Comment 9 Thomas Beinicke 2006-01-02 03:53:34 UTC
If you think it's too much work and not worth the effort ok.
I just tried the ebuild and wanted to report that it fails.

Thank you anyway.
Comment 10 Patrizio Bassi 2006-03-03 12:27:08 UTC
both patches are perfect with gcc4, please apply to portage
Comment 11 William Hubbs gentoo-dev 2006-03-03 16:35:44 UTC
I have been working on ebuilds for speech-tools 1.2.95 beta and festival 1.95-beta.
 If I can get those into portage soon, do we still need this older version (which is not supported at all upstream)?
 
 What do you think?
 
Comment 12 Mark Loeser (RETIRED) gentoo-dev 2006-03-03 16:44:11 UTC
We will need the older versions until the new ones are ready to go stable, but so long as the new ones work with an ~arch system, then you don't need to patch the other stuff as well.
Comment 13 Mark Loeser (RETIRED) gentoo-dev 2006-03-10 12:57:03 UTC
What's going on with this?  gcc-4.x will be getting unmasked soon.
Comment 14 Patrizio Bassi 2006-03-11 00:58:14 UTC
Mark, both works good for me, you can commit to portage cvs ihmo.
Comment 15 William Hubbs gentoo-dev 2006-03-11 11:14:39 UTC
I have an ebuild for festival 1.955 beta that works.  Because this version directly #includes source files from speech-tools to instantiate c++ templates, I have it set up to build both festival and speech tools in one ebuild, then install festival.  If I do it this way, do we still need the separate package for speech-tools onc this hits stable?  I don't know of any other package that depends on it.
Comment 16 Steve Yin 2006-03-19 07:36:22 UTC
I have downloaded the tarball, but it still fails on my system, I'm using gcc 4.1.0 and glibc-2.4

error message:
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/strstream:51,
                 from ../include/EST_iostream.h:54,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_String.h: In member function 
Comment 17 Steve Yin 2006-03-19 07:36:22 UTC
I have downloaded the tarball, but it still fails on my system, I'm using gcc 4.1.0 and glibc-2.4

error message:
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/strstream:51,
                 from ../include/EST_iostream.h:54,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_String.h: In member function void EST_String::make_updatable():../include/EST_String.h:253: error: no matching function for call to make_updatable(EST_ChunkPtr&, int)
../include/EST_TList.h: At global scope:
../include/EST_TList.h:226: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TList<T>&) declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TVector.h:313: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TVector<T>&) declares a non-template function
../include/EST_TKVL.h:61: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&) declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&) declares a non-template function
../include/EST_TMatrix.h:308: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&) declares a non-template function
slib.cc: In function void gc_mark_and_sweep():
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

!!! ERROR: app-accessibility/speech-tools-1.2.3-r4 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


here is the emerge info
Portage 2.1_pre6-r3 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -fno-ident -ftracer -fweb -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -fno-ident -ftracer -fweb -frename-registers  -fno-enforce-eh-specs -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://owl.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib accessibility acl acpi alsa apache2 arts audiofile authdaemond avi bash-completion bcmath berkdb bitmap-fonts bluetooth bonobo bzip2 bzlib cairo cdr cjk cli crypt cscope ctype cups curl dba dbus directfb dmx dri dts dvd dvdr eds emacs-w3 emboss encode esd exif expat fam fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran freetype ftp gd gdbm ggi gif gimpprint glitz glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imlib immqt-bc ipv6 ithreads jack java javascript jikes joystick jpeg jpeg2k junit kdeenablefinal kerberos lcms ldap libcaca libg++ libwww lirc lm_sensors logrotate mad maildir mailwrapper matroska memlimit mikmod mime mmap mmx mng motif mp3 mpeg mysql mysqli nas ncurses nis nls nocardbus nptl nptlonly nsplugin odbc offensive ogg openal openexr opengl pam pcmcia pcntl pcre pda pdflib perl php plotutils png pnp portaudio posix postgres ppds profile python qt quicktime readline ruby samba sasl sdl session sftplogging simplexml skey slang slp sndfile snmp soap sockets socks5 speex spell spl sqlite sse sse2 ssl svg svga symlink tcltk tcpd tetex theora threads tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb vcd vhosts vorbis win32codecs wmf xine xinerama xml xml2 xpm xprint xsl xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_joystick input_devices_evdev kernel_linux userland_GNU video_cards_nv video_cards_none"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LINGUAS
Comment 18 Mike Auty (RETIRED) gentoo-dev 2006-03-19 08:10:09 UTC
I'm also suffering the same problems.  William, is there any chance you could attach the festival-1.95_beta ebuild you've been working on, and then we could test it out for you?  Thanks very much for the time you've put into this...
Comment 19 William Hubbs gentoo-dev 2006-03-19 16:40:41 UTC
Created attachment 82632 [details]
Here is the ebuild; I will also attach the asterisk patch.

This is the festival 1.95 beta ebuild.  I will also attach the asterisk patch.
Comment 20 William Hubbs gentoo-dev 2006-03-19 16:43:32 UTC
Created attachment 82633 [details, diff]
asterisk patch for this version of festival.

Here is the patch for asterisk for this version of festival.
Comment 21 William Hubbs gentoo-dev 2006-03-19 16:45:18 UTC
I am re-assigning this to myself since I am the one working it. :-)
 Please continue adding comments to the bug as before.
 
 Please test the ebuild and patch I have uploaded and let me know if it works for you.  Also, if there should be any changes, let me know.  Thanks.
 
 
Comment 22 Mike Auty (RETIRED) gentoo-dev 2006-03-19 17:26:48 UTC
Thanks very much for posting those William.  I'm running into problems during that compilation, and it's unclear whether these are gcc-4.1 problems, glibc-2.4 problems, or just plain old fashioned normal problems!  5:)

I'll be happy to test out any potential patches, or fixes that people may have...

>>> Compiling source in /var/tmp/portage/festival-1.95_beta/work ...
 * econf: updating speech_tools/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating speech_tools/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating festival/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating festival/config.sub with /usr/share/gnuconfig/config.sub
/usr/bin/confcache --confcache-ignore /var/tmp/ccache:/var/tmp/.distcc --confcache-dir /var/tmp/confcache ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
invalidating due to env: internal cache var host_alias was undefined, is defined now
cache invalidated due to env
creating cache config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -mtune=pentium4 -march=pentium4 -O2 -fomit-frame-pointer ) works... yes
checking whether the C compiler (gcc -mtune=pentium4 -march=pentium4 -O2 -fomit-frame-pointer ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for ar... ar
checking whether byte ordering is bigendian... no
checking for tputs in -ltermcap... no
checking for tputs in -lncurses... yes
updating cache config.cache
creating ./config.status
creating config/config
Check system type
Remake modincludes.inc
        NATIVE_AUDIO
                ok
        EDITLINE
                config/modules/editline.mak
        SIOD
                siod/siod.mak
        WAGON
                stats/wagon/wagon.mak
        SCFG
                grammar/scfg/scfg.mak
        WFST
                grammar/wfst/wfst.mak
        OLS
                stats/ols.mak
        RXP
                rxp/rxp.mak
        LINUX16_AUDIO
                config/modules/linux16_audio.mak
Making in directory ./siod ...
making dependencies -- siodeditline.c el_complete.c editline.c el_sys_unix.c slib.cc slib_core.cc slib_doc.cc slib_file.cc slib_format.cc slib_list.cc slib_math.cc slib_sys.cc slib_server.cc slib_str.cc slib_xtr.cc slib_repl.cc siod_fringe.cc siod_server.cc io.cc trace.cc EST_SiodServer.cc siod.cc siod_est.cc
i686-pc-linux-gnu-g++ -c -fno-implicit-templates -mtune=pentium4 -march=pentium4 -O2 -fomit-frame-pointer -Wall -DSUPPORT_EDITLINE -I../include slib.cc
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/iostream.h:31,
                 from ../include/EST_iostream.h:52,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_Chunk.h:131: error: 'EST_ChunkPtr' does not name a type
../include/EST_Chunk.h:132: error: 'EST_ChunkPtr' does not name a type
../include/EST_Chunk.h:133: error: 'EST_ChunkPtr' does not name a type
../include/EST_Chunk.h:135: error: 'EST_ChunkPtr' has not been declared
../include/EST_Chunk.h:136: error: 'EST_ChunkPtr' has not been declared
../include/EST_Chunk.h:138: error: 'EST_ChunkPtr' has not been declared
../include/EST_Chunk.h:139: error: 'EST_ChunkPtr' has not been declared
../include/EST_String.h: In member function 'void EST_String::make_updatable()':
../include/EST_String.h:253: error: no matching function for call to 'make_updatable(EST_ChunkPtr&, int)'
../include/EST_TList.h: At global scope:
../include/EST_TList.h:226: warning: friend declaration 'std::ostream& operator<<(std::ostream&, const EST_TList<T>&)' declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TVector.h:312: warning: friend declaration 'std::ostream& operator<<(std::ostream&, const EST_TVector<T>&)' declares a non-template function
../include/EST_TKVL.h:61: warning: friend declaration 'std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&)' declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration 'std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&)' declares a non-template function
../include/EST_TMatrix.h:310: warning: friend declaration 'std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&)' declares a non-template function
slib.cc: In function 'void gc_mark_and_sweep()':
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

!!! ERROR: app-accessibility/festival-1.95_beta failed.
Call stack:
  ebuild.sh, line 1565:   Called dyn_compile
  ebuild.sh, line 974:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

I've posted my emerge info here as well:

Portage 2.1_pre6-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium4 -march=pentium4 -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-mtune=pentium4 -march=pentium4 -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/shc-tools /usr/local/overlays/gcc41 /usr/local/overlays/personal"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 GAPING_SECURITY_HOLE X acl acpi alsa apache2 asf avi bash-completion berkdb bitmap-fonts bluetooth boundschecking browserplugin bzip2 cairo ccache cdr cli crypt ctype cups dba dbus dlloader dri dvb dvd dvi emboss encode ethereal expat fastbuild ffmpeg firefox foomaticdb force-cgi-redirect ftp gd gdbm gif gimpprint glitz gnome gnuplot gps graphviz gstreamer gtk gtk2 gtkhtml hal hardened ipv6 java john jpeg ldap ldapsam libg++ libnotify libsexy libwww mad madwifi memlimit mikmod mmx mng mp3 mpeg mscash mssql mysql nautilus ncurses nls nptl nptlonly ntlm ogg opengl pam pcmcia pcre pdflib pic png posix postgres python quicktime readline sasl sdl session simplexml slp smux snmp soap sockets sox spell spl sse sse2 ssl svg svn-mirror syslog tcpd theora tokenizer truetype truetype-fonts type1-fonts udev usb v4l2 vorbis win32codecs winbind xml xml2 xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_synaptics kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 23 William Hubbs gentoo-dev 2006-03-21 21:01:42 UTC
Can the rest of you on the bug who are using gcc 4 please check out the ebuild and patch I posted also?
 
 Thanks much.
Comment 24 Jose daLuz 2006-03-28 18:08:18 UTC
(In reply to comment #22)
> Can the rest of you on the bug who are using gcc 4 please check out the ebuild
> and patch I posted also?
> 
I just tried your ebuild and got the following error:

x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=k8 -O2 -pipe -ffriend-injection -Wall -DSUPPORT_EDITLINE -I../include slib.cc
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/include/g++-v4/backward/iostream.h:31,
                 from ../include/EST_iostream.h:52,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_Chunk.h:131: error: 
Comment 25 Jose daLuz 2006-03-28 18:08:18 UTC
(In reply to comment #22)
> Can the rest of you on the bug who are using gcc 4 please check out the ebuild
> and patch I posted also?
> 
I just tried your ebuild and got the following error:

x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=k8 -O2 -pipe -ffriend-injection -Wall -DSUPPORT_EDITLINE -I../include slib.cc
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/include/g++-v4/backward/iostream.h:31,
                 from ../include/EST_iostream.h:52,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_Chunk.h:131: error: EST_ChunkPtr does not name a type
../include/EST_Chunk.h:132: error: EST_ChunkPtr does not name a type
../include/EST_Chunk.h:133: error: EST_ChunkPtr does not name a type
../include/EST_Chunk.h:135: error: EST_ChunkPtr has not been declared
../include/EST_Chunk.h:136: error: EST_ChunkPtr has not been declared
../include/EST_Chunk.h:138: error: EST_ChunkPtr has not been declared
../include/EST_Chunk.h:139: error: EST_ChunkPtr has not been declared
../include/EST_TList.h:226: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TList<T>&) declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TVector.h:312: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TVector<T>&) declares a non-template function
../include/EST_TKVL.h:61: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&) declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&) declares a non-template function
../include/EST_TMatrix.h:310: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&) declares a non-template function
slib.cc: In function void gc_mark_and_sweep():
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

!!! ERROR: app-accessibility/festival-1.95_beta failed.

Portage 2.1_pre7-r2 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-ck1 x86_64)
=================================================================
System uname: 2.6.16-ck1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r1, 2.16.91.0.6, 2.16.91.0.7
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/xgl-coffee /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli crypt ctype cups dba dbus debug dri dvd dvdr eds emboss encode esd expat fastbuild firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad memlimit mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl pic png posix python qt quicktime readline ruby samba sdl session simplexml soap sockets spell spl sqlite ssl tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts usb vorbis xml xml2 xpm xsl xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS

Comment 26 Patrizio Bassi 2006-03-29 00:46:43 UTC
yes this packages compile with gcc 4.0.x but not 4.1.x
Comment 27 William Hubbs gentoo-dev 2006-03-29 19:04:37 UTC
All,
 
 ok, since this compiles with gcc 4.0, should I go ahead and commit this, or does it need to compile with 4.1 also?
 
 
Comment 28 Mark Loeser (RETIRED) gentoo-dev 2006-03-29 20:14:58 UTC
Go ahead and add it.  Keep this bug open though.  I'll write a gcc-4.1 patch for you when I get a chance.
Comment 29 Patrizio Bassi 2006-03-29 23:39:20 UTC
i'm not a gentoo dev, but i know that gentoo will switch to 4.1, jumping the 4.0 release.

so i think the 4.1 will be the goal.

committing these fixes is not so useful 
(ehi i've tested it too!)
Comment 30 William Hubbs gentoo-dev 2006-04-15 08:30:07 UTC
All,
 
 the ebuild for festival 1.95 beta is just about ready to go.  I have something I would like opinions on however.
 
 The new festival supports multisyn voices.  There are a couple of these that I could add to the ebuild.  They have separate version numbers, and they are also about 100 mb each.  Should I add these with a use flag, or maybe use separate ebuilds for them?
 
Comment 31 Mike Auty (RETIRED) gentoo-dev 2006-04-15 09:10:49 UTC
William, the last version I tried out failed to compile on gcc-4.1.  Are you releasing a <=gcc-4.0 version, or is there a new ebuild/patches that I/we can try out before it goes in portage?

Also, I realise it's a pain, but I'd have said separate ebuilds and then depend on at least one of them.  I guess similar to aspell's method of dealing with dictionaries?  Hope this helps...  5:)
Comment 32 Patrizio Bassi 2006-04-15 10:46:37 UTC
reply to comment 28:

William probably it's better you to add an ebuild for every voice.
Comment 33 Sunny Sachanandani 2006-05-03 13:44:18 UTC
I have found a hacky workaround for this from a fedora cvs patch for festival.

Use this tar file for festival and speech-tools (Above: Tarball with updated speech-tools and festival ebuild and patches).

Replace the OPTIMISE_CXXFLAGS="${CXXFLAGS}" with OPTIMISE_CXXFLAGS="-ffriend-injection -fpermissive -Wno-deprecated -Wno-non-template-friend -fPIC""

and OPTIMISE_CCFLAGS="${CFLAGS}" with OPTIMISE_CCFLAGS="-ffriend-injection -fpermissive -Wno-deprecated -Wno-non-template-friend -fPIC -00"

in *BOTH* the speech-tools and festival ebuilds.

Now emerge festival (and/or) speech-tools as usual with gcc 4.1, it should compile fine. :)

This only works for the ebuilds in the above tarballs : I cannot get this to work on festival 1.95 beta. :(

This is not a *SOLUTION* , its a mere workaround.

Somebody needs to write a gcc 4.1 patch for festival (preferabbly 1.95 beta).

Comment 34 William Hubbs gentoo-dev 2006-05-15 22:27:13 UTC
(In reply to comment #26)
> Go ahead and add it.  Keep this bug open though.  I'll write a gcc-4.1 patch
> for you when I get a chance.

Ok, it has been added.  I am not running gcc 4.1, so can someone assist with a patch?

thanks much.
Comment 35 Patrizio Bassi 2006-05-18 04:10:26 UTC
gcc 4.1 error:

Making in directory ./siod ...
making dependencies -- siodeditline.c el_complete.c editline.c el_sys_unix.c slib.cc slib_core.cc slib_doc.cc slib_file.cc slib_format.cc slib_list.cc slib_math.cc slib_sys.cc slib_server.cc slib_str.cc slib_xtr.cc slib_repl.cc siod_fringe.cc siod_server.cc io.cc trace.cc EST_SiodServer.cc siod.cc siod_est.cc
i686-pc-linux-gnu-g++ -c -fno-implicit-templates -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -Wall -DSUPPORT_EDITLINE -I../include slib.cc
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/iostream.h:31,
                 from ../include/EST_iostream.h:52,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_Chunk.h:131: error: &#8216;EST_ChunkPtr&#8217; does not name a type
../include/EST_Chunk.h:132: error: &#8216;EST_ChunkPtr&#8217; does not name a type
../include/EST_Chunk.h:133: error: &#8216;EST_ChunkPtr&#8217; does not name a type
../include/EST_Chunk.h:135: error: &#8216;EST_ChunkPtr&#8217; has not been declared
../include/EST_Chunk.h:136: error: &#8216;EST_ChunkPtr&#8217; has not been declared
../include/EST_Chunk.h:138: error: &#8216;EST_ChunkPtr&#8217; has not been declared
../include/EST_Chunk.h:139: error: &#8216;EST_ChunkPtr&#8217; has not been declared
../include/EST_String.h: In member function &#8216;void EST_String::make_updatable()&#8217;:
../include/EST_String.h:253: error: no matching function for call to &#8216;make_updatable(EST_ChunkPtr&, int)&#8217;
../include/EST_TList.h: At global scope:
../include/EST_TList.h:226: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TList<T>&)&#8217; declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TVector.h:312: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TVector<T>&)&#8217; declares a non-template function
../include/EST_TKVL.h:61: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&)&#8217; declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&)&#8217; declares a non-template function
../include/EST_TMatrix.h:310: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&)&#8217; declares a non-template function
slib.cc: In function &#8216;void gc_mark_and_sweep()&#8217;:
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

!!! ERROR: app-accessibility/festival-1.95_beta failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  festival-1.95_beta.ebuild, line 63:   Called die

Comment 36 Jakub Moc (RETIRED) gentoo-dev 2006-05-22 04:05:31 UTC
*** Bug 134012 has been marked as a duplicate of this bug. ***
Comment 37 Bernard Cafarelli gentoo-dev 2006-05-30 08:46:35 UTC
I managed to compile 1.95 with gcc 4.1.1, it works ok here but needs some testing and editing(especially a patch with is an update of a debian patch for an earlier festival). I'll upload a tarball containing the 4 patches (2 for speech_tools, 2 for festival):
- festival-1.95-gcc4.patch, festival-1.95-gcc41.patch, speech_tools-1.2.95-gcc41.patch come from the suse rpm
- speech_tools-1.2.95-gcc4.patch is an edited from the debian package for festival 1.4.3, this one needs to be cleaned up a bit I guess (many trivial and not so useful fixes), but at least it works

I'll upload a cleaned up (and lighter) patch later, when I find some time for it :/
Comment 38 Bernard Cafarelli gentoo-dev 2006-05-30 08:47:47 UTC
Created attachment 87873 [details]
The patches tarball
Comment 39 Patrizio Bassi 2006-06-01 10:44:30 UTC
speech toold 4.1 patch fails:

 patch -p1  < speech_tools-1.2.95-gcc41.patch
patching file include/EST_TSimpleVector.h
Hunk #1 FAILED at 74.
1 out of 1 hunk FAILED -- saving rejects to file include/EST_TSimpleVector.h.rej
patching file base_class/rateconv.cc

this is the problem:
 void empty(void) { if (*this->def_val == 0) zero(); else this->fill(*this->def_val); }

howerver...after manual patch i get:


making dependencies -- siodeditline.c el_complete.c editline.c el_sys_unix.c slib.cc slib_core.cc slib_doc.cc slib_file.cc slib_format.cc slib_list.cc slib_math.cc slib_sys.cc slib_server.cc slib_str.cc slib_xtr.cc slib_repl.cc siod_fringe.cc siod_server.cc io.cc trace.cc EST_SiodServer.cc siod.cc siod_est.cc
i686-pc-linux-gnu-g++ -c -fno-implicit-templates -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -Wall -DSUPPORT_EDITLINE -I../include slib.cc
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/backward/iostream.h:31,
                 from ../include/EST_iostream.h:53,
                 from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from ../include/EST_String.h:50,
                 from ../include/siod.h:17,
                 from slib.cc:88:
../include/EST_iostream.h:54:26: error: strstream.h: No such file or directory
../include/EST_TIterator.h: In constructor &#8216;EST_TStructIterator<Container, IPointer, Entry>::EST_TStructIterator()&#8217;:
../include/EST_TIterator.h:204: error: &#8216;cont&#8217; was not declared in this scope
../include/EST_TIterator.h: In member function &#8216;EST_TIterator<Container, IPointer, Entry>& EST_TStructIterator<Container, IPointer, Entry>::operator=(const EST_TIterator<Container, IPointer, Entry>&)&#8217;:
../include/EST_TIterator.h:208: error: &#8216;cont&#8217; was not declared in this scope
../include/EST_TIterator.h:208: error: &#8216;pos&#8217; was not declared in this scope
../include/EST_TIterator.h:208: error: &#8216;pointer&#8217; was not declared in this scope
../include/EST_TIterator.h: In member function &#8216;const Entry* EST_TStructIterator<Container, IPointer, Entry>::operator->() const&#8217;:
../include/EST_TIterator.h:215: error: there are no arguments to &#8216;current&#8217; that depend on a template parameter, so a declaration of &#8216;current&#8217; must be available
../include/EST_TIterator.h:215: error: (if you use &#8216;-fpermissive&#8217;, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../include/EST_TIterator.h: In constructor &#8216;EST_TRwIterator<Container, IPointer, Entry>::EST_TRwIterator()&#8217;:
../include/EST_TIterator.h:234: error: &#8216;cont&#8217; was not declared in this scope
../include/EST_TIterator.h: In member function &#8216;EST_TIterator<Container, IPointer, 

[cut]



../include/EST_TMatrix.h:180: error: &#8216;p_num_columns&#8217; was not declared in this scope
../include/EST_TMatrix.h: In member function &#8216;void EST_TMatrix<T>::fill()&#8217;:
../include/EST_TMatrix.h:219: error: &#8216;def_val&#8217; was not declared in this scope
slib.cc: In function &#8216;void gc_mark_and_sweep()&#8217;:
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

!!! ERROR: app-accessibility/speech-tools-1.2.3-r3 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  speech-tools-1.2.3-r3.ebuild, line 51:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.



Comment 40 Patrizio Bassi 2006-06-02 03:38:43 UTC
oops my fault.

applying all 4 patched to festival sources works perfectly.

the separate speech-tool ebuild must be fixed, instead.
Comment 41 Bernard Cafarelli gentoo-dev 2006-06-02 09:59:25 UTC
(In reply to comment #38)

Yes, these patches are for festival 1.95 ebuild, which includes speech-tools (the new version too).

That makes me realize... since the 1.95 ebuild provides speech-tools in one package now, shouldn't it mark older speech-tools as a blocker?
Comment 42 Patrizio Bassi 2006-06-02 11:55:36 UTC
uh...dunno...but please commit this festival one :)
Comment 43 Ed Catmur 2006-06-04 19:08:55 UTC
Created attachment 88397 [details, diff]
festival-gcc41.patch

Reduced patch.

No changes other than those necessary to ensure compilation with gcc 4.1.1.
Comment 44 Patrizio Bassi 2006-06-05 09:01:32 UTC
works.

please patch the speech tools too
Comment 45 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-06-06 03:43:12 UTC
Festival patch from comment #41 fixes compilation of festival with gcc-4.1. Tested here on powerpc.
Comment 46 David Watzke 2006-06-07 20:51:58 UTC
Festival 1.95_beta with patch from comment #41 on my AMD64 w/ GCC 4.1.1 ::

x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -O2 -march=athlon64 -fomit-frame-pointer -pipe -Wall -I../include -DINSTANTIATE_TEMPLATES item_feats.cc
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/backward/iostream.h:31,
                 from item_feats.cc:41:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_TList.h:226: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TList<T>&)&#8217; declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TKVL.h:61: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&)&#8217; declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&)&#8217; declares a non-template function
../include/EST_TVector.h:312: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TVector<T>&)&#8217; declares a non-template function
../include/EST_TMatrix.h:310: warning: friend declaration &#8216;std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&)&#8217; declares a non-template function
item_feats.cc: In function &#8216;EST_String get_featname(EST_Val (*)(EST_Item*))&#8217;:
item_feats.cc:81: error: cast from &#8216;EST_Val (*)(EST_Item*)&#8217; to &#8216;int&#8217; loses precision
make[1]: *** [item_feats.o] Error 1
make: *** [ling_class] Error 2

!!! ERROR: app-accessibility/festival-1.95_beta failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  festival-1.95_beta.ebuild, line 65:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

and here comes emerge --info ::

Portage 2.1_rc4-r4 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9! x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9! x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.93
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo http://mirror.gentoo.sk/pub http://distfiles.gentoo.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa asf audiofile avi bash-completion bitmap-fonts bzip2 cdparanoia cdr cli css cups dbus dga dts dvd dvdr dvdread emboss encode fbcon ffmpeg flac flash fortran ftp gdbm gif gpm hal icq id3 id3v2 imagemagick imlib isdnlog jabber javascript jingle jpeg kde kdeenablefinal lame lcms lzw lzw-tiff mad matroska mime mp3 mpeg mplayer ncurses nls nowebdav nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl oscar pcre pdflib perl pic png posix ppds pppd python qt quicktime readline reflection ruby sdl session sockets spl ssl subversion svg symlink theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wma xcomposite xine xml xml2 xorg xpm xrandr xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 47 Jakub Moc (RETIRED) gentoo-dev 2006-06-26 06:41:25 UTC
Ping!
Comment 48 William Hubbs gentoo-dev 2006-06-26 15:27:34 UTC
(In reply to comment #45)
> Ping!

The reason I haven't committed the patch for comment #41 is comment #44.
Does someone else have the hardware to be able to test this and come up with a separate patch for it, or should I go ahead and commit with the patch from comment #41?
Comment 49 Wiktor Wandachowicz 2006-06-26 17:50:46 UTC
(In reply to comment #46)
> Does someone else have the hardware to be able to test this and come up with a
> separate patch for it, or should I go ahead and commit with the patch from
> comment #41?

After adding:

        epatch ${FILESDIR}/festival-gcc41.patch
}

just before the end of src_unpack() function the festival compiled fine
on ~x86 / gcc-4.1.1, although with LOTS of warnings. Haven't checked the
USE="asterisk mbrola" flags, though.


# emerge -av festival

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-accessibility/festival-1.95_beta-r1  USE="X esd -asterisk -mbrola" LINGUAS="-es" 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/overlays/gentoo


However, on ~amd64 / gcc-4.1.1 the ebuild died with error. Looks like someone
incorrectly assumed something about int and pointer sizes, which apparently
works on x86, but not on amd64...


item_feats.cc: In function 'EST_String get_featname(EST_Val (*)(EST_Item*))':
item_feats.cc:81: error: cast from 'EST_Val (*)(EST_Item*)' to 'int' loses
precision
make[1]: *** [item_feats.o] Error 1
make: *** [ling_class] Error 2

!!! ERROR: app-accessibility/festival-1.95_beta-r1 failed.
Call stack:
  ebuild.sh, line 1540:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  festival-1.95_beta-r1.ebuild, line 65:   Called die
Comment 50 Wiktor Wandachowicz 2006-06-26 17:53:56 UTC
Created attachment 90230 [details]
sizes.c - type size checker

Bjarne Stroustrup style program for checking sizes of basic types.

On x86 it prints:

Sizes in bytes
 * pointer types:  4
 * char type:      1
 * short type:     2
 * int type:       4
 * long type:      4
 * long long:      8
 * float type:     4
 * double type:    8
 * long double:    12

whereas on amd64 it's:

Sizes in bytes
 * pointer types:  8
 * char type:      1
 * short type:     2
 * int type:       4
 * long type:      8
 * long long:      8
 * float type:     4
 * double type:    8
 * long double:    16
Comment 51 Ed Catmur 2006-06-27 04:52:46 UTC
Created attachment 90266 [details, diff]
gcc41-amd64.patch

Supplemental (trivial) patch to fix error in comment 44. I don't have an amd64 (or cross-compiler) to test with, so there might be more errors. (Surely there must be an amd64 user here who knows how to fix bitwidth bugs?)
Comment 52 Niels 2006-06-27 07:42:15 UTC
About multisyn voices:

I've tried to install some of these by hand, a long time ago. I found it to be very difficult. Ebuilds would be very nice.

Thanks.
Comment 53 Francisco José Cañizares Santofimia 2006-07-08 04:08:46 UTC
Patch from comment #41 works nice here in festival x86, please add it to portage, thanks :)
Comment 54 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-07-12 10:46:20 UTC
Patch in comment #41 still works on ppc...
Comment 55 Jakub Moc (RETIRED) gentoo-dev 2006-07-13 06:15:17 UTC
*** Bug 140224 has been marked as a duplicate of this bug. ***
Comment 56 William Hubbs gentoo-dev 2006-07-19 20:55:07 UTC
I have added the patch from comment #41 to portage.  Also, I added the patch from comment #49 to portage if the arch is amd64.  Please test and let me know the results.
Comment 57 Jose daLuz 2006-07-20 10:10:07 UTC
(In reply to comment #54)
> I have added the patch from comment #41 to portage.  Also, I added the patch
> from comment #49 to portage if the arch is amd64.  Please test and let me know
> the results.
> 
I unmerged speech-tools 1.2.3-r3 and emerged festival 1.95_beta using gcc 4.1.1 under amd64. This build fails with the following error:


../include/EST_TKVL.h:146: warning: friend declaration 
Comment 58 Jose daLuz 2006-07-20 10:10:07 UTC
(In reply to comment #54)
> I have added the patch from comment #41 to portage.  Also, I added the patch
> from comment #49 to portage if the arch is amd64.  Please test and let me know
> the results.
> 
I unmerged speech-tools 1.2.3-r3 and emerged festival 1.95_beta using gcc 4.1.1 under amd64. This build fails with the following error:


../include/EST_TKVL.h:146: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&) declares a non-template function
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=k8 -O2 -pipe -ggdb -ffriend-injection -Wall -I../include EST_Discrete.cc
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/backward/iostream.h:31,
                 from EST_Discrete.cc:40:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_TList.h:226: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TList<T>&) declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TKVL.h:61: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&) declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&) declares a non-template function
../include/EST_TVector.h:312: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TVector<T>&) declares a non-template function
../include/EST_TMatrix.h:310: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&) declares a non-template function
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=k8 -O2 -pipe -ggdb -ffriend-injection -Wall -I../include EST_DProbDist.cc
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/backward/iostream.h:31,
                 from EST_DProbDist.cc:40:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/EST_TList.h:226: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TList<T>&) declares a non-template function
../include/EST_TList.h:226: warning: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here) -Wno-non-template-friend disables this warning
../include/EST_TKVL.h:61: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVI<K, V>&) declares a non-template function
../include/EST_TKVL.h:146: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TKVL<K, V>&) declares a non-template function
../include/EST_TVector.h:312: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TVector<T>&) declares a non-template function
../include/EST_TMatrix.h:310: warning: friend declaration std::ostream& operator<<(std::ostream&, const EST_TMatrix<T>&) declares a non-template function
EST_DProbDist.cc: In member function int EST_DiscreteProbDistribution::item_start() const:
EST_DProbDist.cc:313: error: cast from EST_UItem* to int loses precision
EST_DProbDist.cc: In member function int EST_DiscreteProbDistribution::item_next(int) const:
EST_DProbDist.cc:329: error: cast from EST_UItem* to int loses precision
make[1]: *** [EST_DProbDist.o] Error 1
make: *** [stats] Error 2

!!! ERROR: app-accessibility/festival-1.95_beta failed.

Portage 2.1.1_pre3-r1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-ck1-r2 x86_64)
=================================================================
System uname: 2.6.17-ck1-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r1, 2.16.93, 2.17, 2.17.50.0.2, 2.17.50.0.3
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -ffriend-injection"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/gentopia /usr/portage/local/layman/break-my-gentoo-main /usr/portage/local/layman/sunrise /usr/portage/local/layman/liferea_overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups dbus debug dlloader dri dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib ipv6 isdnlog java jpeg kde kdehiddenvisibility ldap lzw lzw-tiff mad mono mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl pic png pppd python qt qt3 quicktime readline reflection ruby samba sdl session spell spl sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml xml2 xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_en userland_GNU video_cards_vesa video_cards_nvidia"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS
Comment 59 Steve Cole 2006-07-20 10:16:11 UTC
Worked fine on my system.  

Portage 2.1.1_pre3-r1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r2 i686)
=================================================================
System uname: 2.6.17-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 4000+
Gentoo Base System version 1.12.1
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -mtune=k8 -O2 -pipe -fomit-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -mtune=k8 -O2 -pipe -fomit-frame-pointer -fno-ident -fvisibility-inlines-hidden -fuse-cxa-atexit"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -s -Wl,--sort-common"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnow2 3dnowext X a52 aac acpi alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri dvd dvdread eds emboss encode esd fam ffmpeg flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib isdnlog java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility libg++ libwww mad mikmod mmx mmxext modplug motif moznoirc moznomail mp3 mpeg musicbrainz ncurses no_wxgtk1 nptl nptlonly nsplugin ogg opengl oss pam pcre pdf pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session speex spell spl sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts udev vcd vorbis win32codecs xinerama xml xmms xorg xv xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_fglrx video_cards_vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 60 Pat Double 2006-07-20 11:33:49 UTC
Works here:
Portage 2.1.1_pre3-r1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-suspend2-r2 i686)
=================================================================
System uname: 2.6.17-suspend2-r2 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc1-r5
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe -march=pentium4 -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -pipe -march=pentium4 -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee /usr/local/alon-barlev-portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 4kstacks X Xaw3d accessibility acpi acpi4linux alsa apache2 arts artswrappersuid avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cairo cdparanoia cdr clamav cli cluster cpdflib crypt cups curl cvs cvsgraph dar64 dbus dga dlloader doc dri dvd dvdread eds emboss encode esd examples extraengine fam fbcon fbsplash ffmpeg firefox fltk foomaticdb fortran ftp gdbm gif gimp gimpprint glibc-omitfp glitz glut glx gnokii gphoto2 gpm graphviz gstreamer gtk gtk2 hal ieee1394 imlib innodb insecure-drivers ipv6 irda irmc isdnlog jabber jack jack-tmpfs java javascript jce joystick jpeg jpeg2k kde kdeenablefinal kdepim kqemu libg++ libwww lm_sensors logrotate lucene mad mikmod mmx mmxext mng mono motif mozdevelop moznocompose moznoirc moznomail mozsvg mp3 mpeg mysql nas ncurses network nls nptl nptlonly nsplugin nvidia ofx ogg openexr opengl openssl oss pam pam_timestamp pcmcia pcre pda pdf pdflib perl pic png postgres povray ppds pppd python qt qt3 qt4 qtmt quicktime rdesktop readline real reflection reiser4 reiserfs samba scanner screen sdl session slp smartcard smime smp socks5 spell spl sse sse2 ssl subversion svg symlink sysfs tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vcd video_cards_fglrx vim vnc vorbis wifi wma wmf xattr xcomposite xface xinetd xml xorg xprint xscreensaver xv xvid zeroconf zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_evdev input_devices_synaptics input_devices_joystick input_devices_ps2mouse kernel_linux linguas_en userland_GNU video_cards_ati video_cards_fbdev video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 61 Kenneth Perry 2006-07-20 13:02:44 UTC
I have the same problem as comment #55, seems to be an amd64 problem.

Portage 2.1.1_pre3-r1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17.1 x86_64)
=================================================================
System uname: 2.6.17.1 x86_64 AMD Turion(tm) 64 Mobile Technology MT-37
Gentoo Base System version 1.12.1
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=athlon64 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac accessibility acl acpi ada addbookmarks akode alias alsa apm arts artswrappersuid artworkextra autoreplace avahi avi bash-completion beagle berkdb bitmap-fonts blender-game bluetooth bzip2 cairo cdr cli connectionstatus contactnotes crypt cups cursors cvs dbus djvu dlloader doc dri dvd dvdr dvi editor eds emacs emboss encode esd examples exif exscalibar fam fbcon fbsplash ffmpeg fixes flac fontconfig foomaticdb fortran gadu gdbm gdm gif glitz gnome gnutls gpm groupwise gstreamer gtk gtk2 gtkhtml hal highlight history icons iconv idn ifp imagemagick imlib ipod ipv6 irc isdnlog jack java jingle jpeg jpeg2k kde kdm kerberos kqemu krb4 latex libcaca libclamav libsamplerate lm_sensors lzw lzw-tiff mad mbrola mikmod mng modplug mono mozcalendar mozdevelop mozsvg mp3 mpeg musicbrainz nautilus ncurses net network nfs nls nowlistening nptl nptlonly nsplugin numeric offensive ogg openal openexr opengl oss pam pcmcia pcre pdf pdflib perl png pppd python qt qt3 qt4 quicktime rdesktop readline reflection ruby runlevels samba sametime sdl session slp spell spl ssl statistics stroke subversion svg svn-mirror t1lib tcltk tcpd texteffect theora tiff timidity toolbar tools translator truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vim visualization vorbis webpresence widescreen wifi winpopup xcomposite xine xinerama xorg xpm xprint xv xvid yahoo zeroconf zlib elibc_glibc initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllauncher initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc4 initng_plugins_pause initng_plugins_pidfile initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded initng_plugins_provide input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_en userland_GNU video_cards_nvidia video_cards_nv video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 62 Ed Catmur 2006-07-20 17:30:03 UTC
re comment 55, comment 58: yeah, the code tries to store a pointer in an int type, which is invalid on 64-bit arches. You might want to see if anyone on the forums can help, or amd64 arch, or notify upstream.
Comment 63 Jose daLuz 2006-07-20 18:31:04 UTC
(In reply to comment #59)
> re comment 55, comment 58: yeah, the code tries to store a pointer in an int
> type, which is invalid on 64-bit arches. You might want to see if anyone on the
> forums can help, or amd64 arch, or notify upstream.
> 
I was going to post on their mailing list, but first checking the list archives I came across this:

Milan Zamazal wrote:
>>>>>> "MN" == Masaru Nomiya <nomiyac360@mg.point.ne.jp> writes:
> 
>     MN> First of all, I tried to compile speech_tools 1.2.95, but I
>     MN> couldn't.
> 
> Note that Festival and EST can't be compiled with g++ 4, use g++ 3.X.

Actual its only some 4.x versions it fails on.

But for 64bit I recommend using festival 1.96 we have it successfully
running.  Though I suspect this is a gcc issue rather than a 64 bit 
issue.  1.96 is available from

http://www.speech.cs.cmu.edu/awb/fftest/speech_tools-1.2.96-beta.tar.gz
http://www.speech.cs.cmu.edu/awb/fftest/festival-1.96-beta.tar.gz
http://www.speech.cs.cmu.edu/awb/fftest/festlex_CMU.tar.gz
http://www.speech.cs.cmu.edu/awb/fftest/festvox_cmu_us_awb_arctic_hts.tar.gz
http://www.speech.cs.cmu.edu/awb/fftest/festvox_cmu_us_bdl_arctic_hts.tar.gz
http://www.speech.cs.cmu.edu/awb/fftest/festvox_cmu_us_jmk_arctic_hts.tar.gz
http://www.speech.cs.cmu.edu/awb/fftest/festvox_cmu_us_slt_arctic_hts.tar.gz

Comment 64 Jose daLuz 2006-07-20 18:35:03 UTC
Should have read further:

I tried to complie speech_tools-1.2.96-beta.tar.gz.
But I've got an error as follows;

[...]
EST_DProbDist.cc: In member function 'int EST_DiscreteProbDistribution::item_start() const':
EST_DProbDist.cc:313: error: cast from 'EST_UItem*' to 'int' loses precision
EST_DProbDist.cc: In member function 'int EST_DiscreteProbDistribution::item_next(int) const':
EST_DProbDist.cc:329: error: cast from 'EST_UItem*' to 'int' loses precision
make[1]: *** [EST_DProbDist.o] error 1
make: *** [stats] error 2

BTW, a man informed me of gcc4 patch for festibval amd speech_tools. which
are on the http://bugs.gentoo.org/attachment.cgi?id=87873.

In this tarball, gcc4 patch for festival 1.95-beta is good, but gcc4 patch
for speech_tools 1.2.95 has got a bug. I fixed speech_tools patch.
Then, I could compile, and it works fine for me.

And:

By applyting the patch;

--- EST_DProbDist.cc.orig       2006-07-06 15:15:54.000000000 +0900
+++ EST_DProbDist.cc    2006-07-06 14:52:15.000000000 +0900
@@ -310,7 +310,7 @@
     if (type == tprob_discrete)
        return 0;
     else
-       return (int)scounts.list.head();
+       return (long)scounts.list.head();
 }
 
 int EST_DiscreteProbDistribution::item_end(int idx) const
@@ -326,7 +326,7 @@
     if (type == tprob_discrete)
        return ++idx;
     else
-       return (int)next((EST_Litem *)idx);
+       return (long)next((EST_Litem *)idx);
 }
 
 const EST_String &EST_DiscreteProbDistribution::item_name(int idx) const

I could compile speech_tools-1.2.96-beta.tar.gz, then compiled
festival-1.96-beta.tar.gz without any patches.

After this. I installed;

1. festlex_OALD.tar.gz
2. festlex_POSLEX.tar.gz
3. festvox_en1.tar.gz
4. festvox_rablpc16k.tar.gz

and 

5. mbrola

it works fine for me.

Thanks.

---
  Masaru Nomiya       mail-to: nomiyac360 @ mg.point.ne.jp
Comment 65 Ed Catmur 2006-07-20 19:48:01 UTC
Created attachment 92360 [details, diff]
amd64-int-pointer.patch

Try this. 

Converts code to store pointer in long instead of int (yeah, it's still sucky but storing integral types in pointers or vice-versa is impossible to do portably; you need an integral type defined to be the same width as a pointer, which can only be discovered at configure time).
Comment 66 Jose daLuz 2006-07-20 20:15:07 UTC
Thanks, that patch works for me.
Comment 67 Kenneth Perry 2006-07-25 20:50:30 UTC
Patch also worked for me
Comment 68 Wiktor Wandachowicz 2006-07-27 04:41:43 UTC
After combining the following patches from:

* comment #41 (festival-gcc41.patch)
* comment #44 (gcc41-amd64.patch)
* comment #62 (amd64-int-pointer.patch)

festival-1.95_beta finally compiled on my testing ~amd64 machine with gcc-4.1.1
Comment 69 Marc Bourget 2006-07-31 20:44:47 UTC
Worked for me too.

festival-1.95_beta on ~amd64 + gcc-4.1.1
Comment 70 Robert Lawrence 2006-08-04 16:54:56 UTC
Here is an ebuild for festival-1.96_beta that is working here with GCC 4.1.1, glibc 2.4.
Comment 71 Robert Lawrence 2006-08-04 16:56:33 UTC
Created attachment 93452 [details]
festival-1.96_beta.ebuild
Comment 72 Robert Lawrence 2006-08-04 16:57:28 UTC
Created attachment 93453 [details, diff]
festival-gcc41.patch
Comment 73 Robert Lawrence 2006-08-04 16:58:01 UTC
Created attachment 93454 [details, diff]
gcc41-amd64.patch
Comment 74 Robert Lawrence 2006-08-04 16:58:31 UTC
Created attachment 93455 [details]
festival.rc
Comment 75 Robert Lawrence 2006-08-04 16:58:55 UTC
Created attachment 93456 [details]
server.scm
Comment 76 Robert Lawrence 2006-08-04 17:01:10 UTC
this festival-1.96_beta.ebuild works on ~amd64 with gcc 4.1.1 glibc 2.4-r3 binutils 2.17
Comment 77 Ed Catmur 2006-08-04 17:02:51 UTC
How does that differ from the above patches?
Comment 78 Robert Lawrence 2006-08-05 09:17:57 UTC
the patches don't. I just posted exactlly what is needed for the ebuild including all patches.
Comment 79 William Hubbs gentoo-dev 2006-08-08 17:04:03 UTC
The patch from comment #62 was added to portage and it is applied when the arch is amd64.  Let me know if this now compiles on amd64.  Thanks.
Comment 80 Jose daLuz 2006-08-08 20:04:22 UTC
(In reply to comment #76)
> The patch from comment #62 was added to portage and it is applied when the arch
> is amd64.  Let me know if this now compiles on amd64.  Thanks.
> 
The patch works fine here.
Comment 81 Bernard Cafarelli gentoo-dev 2006-08-09 01:56:49 UTC
Confirmed here, I just emerge --synced and re-emerge festival without a problem
Comment 82 Simon Stelling (RETIRED) gentoo-dev 2006-08-25 07:38:55 UTC
i didn't read all of the 80 comments, but i guess this is fixed?
Comment 83 John Whitlock 2006-08-25 08:14:05 UTC
Lastest speech-tools (1.2.3-r3) still does not compile w/ 4.1.1, and the stable festival (1.4.3-r4) relies on it.  The two were combined in festival-1.95_beta.  This compiles for me (with a boatload of warnings) on ~amd64, and it works with  KDE's KTTSMgr 0.3.5.2 on KDE 3.5.2.

So, fixed for me on ~amd64, and hope to see it marked stable soon!

Comment 84 Jakub Moc (RETIRED) gentoo-dev 2006-09-05 07:42:06 UTC
*** Bug 146391 has been marked as a duplicate of this bug. ***
Comment 85 Sven Schwyn (svoop) 2006-09-08 02:00:42 UTC
Seems not to be fixed yet. After switching to gcc 4.1.1 the "emerge -eav world" failes with:

[...]
../include/EST_TSimpleVector.h:77: error: 'def_val' was not declared in this scope
../include/EST_TSimpleVector.h:77: error: there are no arguments to 'fill' that depend on a template parameter, so a declaration of 'fill' must be available
slib.cc: In function 'void gc_mark_and_sweep()':
slib.cc:1088: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

!!! ERROR: app-accessibility/speech-tools-1.2.3-r3 failed.

See attachment for full error and emerge-info. I'm on a amd64 box here. 

Cheers,   -sven
Comment 86 Sven Schwyn (svoop) 2006-09-08 02:03:33 UTC
Created attachment 96369 [details]
Attachment for comment 82
Comment 87 Sven Schwyn (svoop) 2006-09-08 02:50:17 UTC
PLEASE IGNORE MY TWO PREVIOUS COMMENTS 82 AND 83.

By placing empty fake packages of speech-tools and festival in /usr/local/portage I could cheat "emerge --resume -eav world" to carry on. Then unemerging speech-tools and festival, after than emerging the ~amd64 keyworded festival-1.95_beta did the trick.
Comment 88 William Hubbs gentoo-dev 2006-09-08 20:20:21 UTC
This appears to be fixed in festival-1.95_beta, so I am closing the bug.  If there are any more issues, let me know.
Comment 89 William Hubbs gentoo-dev 2006-09-08 20:42:49 UTC
I am attempting to close this again with bugz.
Comment 90 Bill C. Riemers 2006-09-13 08:04:45 UTC
A patch really needs to be applied to the stable version of festival.  Currently this bug blocks:

emerge kde

on the stable branch.

Bill
Comment 91 Jakub Moc (RETIRED) gentoo-dev 2006-09-13 08:26:28 UTC
(In reply to comment #87)
> A patch really needs to be applied to the stable version of festival. 

Give up all your hopes, won't happen. Go stick the unstable one to /etc/portage/package.keywords, test it and if it works, it can be eventually stabilized.