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
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
Confirming. This is blocking the Gnome accessibility features.
*** Bug 190738 has been marked as a duplicate of this bug. ***
Created attachment 129649 [details, diff] speech-tools-1.2.96_beta-gcc42.patch
This is fixed in portage, thanks for the patch.
*** Bug 190863 has been marked as a duplicate of this bug. ***