Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190576 - app-accessibility/speech-tools-1.2.96_beta doesn't compile w/ gcc-4.2
Summary: app-accessibility/speech-tools-1.2.96_beta doesn't compile w/ gcc-4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Accessibility Team
URL:
Whiteboard:
Keywords:
: 190738 190863 (view as bug list)
Depends on:
Blocks: gcc-4.2
  Show dependency tree
 
Reported: 2007-08-28 21:33 UTC by thanahauser
Modified: 2007-08-31 11:05 UTC (History)
9 users (show)

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


Attachments
speech-tools-1.2.96_beta-gcc42.patch (speech-tools-1.2.96_beta-gcc42.patch,2.44 KB, patch)
2007-08-30 23:40 UTC, thanahauser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description thanahauser 2007-08-28 21:33:48 UTC
emerging speech-tools-1.2.96_beta leads to n error message

Reproducible: Always




---snip-snip---
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 sl
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=nocona -O2 -pipe -fPIC -fno-shared-data -Wall -DSUPPORT_EDITLINE -I../include slib
cc1plus: error: unrecognized command line option "-fno-shared-data"
make[1]: *** [slib.o] Error 1
make: *** [siod] Error 2

option -fno-shared-data has been removed from gcc 4.2

so :

--- speech_tools.old/config/compilers/egcs.mak  2001-04-04 13:55:32.000000000 +0200
+++ speech_tools/config/compilers/egcs.mak      2007-08-28 23:08:01.000000000 +0200
@@ -54,7 +54,7 @@
 CXX=$(EGCS_CXX)

 ifndef EGCS_MAKE_SHARED_LIB
-    MAKE_SHARED_LIB = gcc -shared -fno-shared-data -o XXX -Xlinker -h -Xlinker XXX
+    MAKE_SHARED_LIB = gcc -shared -o XXX -Xlinker -h -Xlinker XXX
 else
     MAKE_SHARED_LIB = $(GCC_MAKE_SHARED_LIB)
 endif

--- speech_tools.old/config/compilers/gcc_defaults.mak  2006-08-05 17:37:59.000000000 +0200
+++ speech_tools/config/compilers/gcc_defaults.mak      2007-08-28 23:08:30.000000000 +0200
@@ -76,12 +76,12 @@
 PROFILE_gprof_CXXFLAGS  = -pg
 PROFILE_gprof_LINKFLAGS = -pg

-SHARED_CCFLAGS  = -fPIC -fno-shared-data
-SHARED_CXXFLAGS  = -fPIC -fno-shared-data
-SHARED_LINKFLAGS = -fno-shared-data
+SHARED_CCFLAGS  = -fPIC
+SHARED_CXXFLAGS  = -fPIC
+SHARED_LINKFLAGS =

 ifndef GCC_MAKE_SHARED_LIB
-    MAKE_SHARED_LIB = $(CXX) -shared -fno-shared-data -o XXX
+    MAKE_SHARED_LIB = $(CXX) -shared -o XXX
 else
     MAKE_SHARED_LIB = $(GCC_MAKE_SHARED_LIB)
 endif

--- speech_tools.old/doc/estjavaapp.sgml        2001-04-04 13:55:32.000000000 +0200
+++ speech_tools/doc/estjavaapp.sgml    2007-08-28 23:08:43.000000000 +0200
@@ -105,7 +105,7 @@
        &shellprompt; <userinput>cd tmpdir</userinput>
        &shellprompt; <userinput>ar x ../libgcc.a</userinput>
        &shellprompt; <userinput>cd ..</userinput>
-       &shellprompt; <userinput>gcc -shared -fno-shared-data -o libgcc.so.2.7.2 tmpdir/*.o</userinput>
+       &shellprompt; <userinput>gcc -shared -o libgcc.so.2.7.2 tmpdir/*.o</userinput>
 </screen>
 </para>
 </sect1>

here we go again...

---snip-snip--
Making in directory ./stats ...
making dependencies -- EST_cluster.cc EST_multistats.cc confusion.cc EST_Discrete.cc EST_DProbDist.cc EST_ols.cc EST_viterbi.cc dynamic_prog
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=nocona -O2 -pipe -fPIC -Wall -I../include EST_cluster.cc
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=nocona -O2 -pipe -fPIC -Wall -I../include EST_multistats.cc
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=nocona -O2 -pipe -fPIC -Wall -I../include confusion.cc
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=nocona -O2 -pipe -fPIC -Wall -I../include EST_Discrete.cc
x86_64-pc-linux-gnu-g++ -c -fno-implicit-templates -march=nocona -O2 -pipe -fPIC -Wall -I../include EST_DProbDist.cc
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

see following patch at http://lists.berlios.de/pipermail/festlang-talk/2006-July/001033.html
--- 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);
 }
 
then the beast should compile fine
Comment 1 Bernhard Frauendienst 2007-08-29 13:06:33 UTC
I can confirm the problem (obviously).

The "cast from 'EST_UItem*' to 'int' loses precision"-issue also happens with gcc-4.1.2 (x86_64-pc-linux-gnu-4.1.2 actually) selected
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2007-08-29 13:53:24 UTC
Confirming. This is blocking the Gnome accessibility features.
Comment 3 Dawid Węgliński (RETIRED) gentoo-dev 2007-08-30 01:08:20 UTC
*** Bug 190738 has been marked as a duplicate of this bug. ***
Comment 4 thanahauser 2007-08-30 23:40:40 UTC
Created attachment 129649 [details, diff]
speech-tools-1.2.96_beta-gcc42.patch
Comment 5 William Hubbs gentoo-dev 2007-08-31 04:14:38 UTC
This is fixed in portage, thanks for the patch.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-08-31 10:58:16 UTC
*** Bug 190863 has been marked as a duplicate of this bug. ***