I decided I was tired of futzing around, having trouble getting festival to work, and decided to see if I could build flite (festival lite) for the Pi, but have never built a package before. I see the package is in other repositories, but not ArchLinuxArm for the pi. I would guess people knowing how to work with basic c code build errors can help debug, whatever OS they are running.
http://www.speech.cs.cmu.edu/flite/index.html
Source is here:
http://www.speech.cs.cmu.edu/flite/pack ... se.tar.bz2
Arch Linux build files are here:
https://aur.archlinux.org/packages/fl/f ... ite.tar.gz
https://aur.archlinux.org/packages/fl/flite/PKGBUILD
Here is output. first, distribution running on my Pi:
[ alarmpi ~] cat /proc/version
Linux version 3.6.11-9-ARCH+ (nobody@panda3) (gcc version 4.7.2 (GCC) ) #1 PREEMPT Sat Mar 30 02:38:20 UTC 2013
Next, last 6 lines of the output, showing two lines before the "undefined reference":
[ alarmpi ~] tail -n6 /mnt/part3/makeflite2.txt
gcc -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -I../include -c -o flite_voice_list.o flite_voice_list.c
gcc -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -o ../bin/flite flite_main.o flite_voice_list.o -L../build/armv6l-linux-gnu/lib -lflite_cmu_us_kal -lflite_cmu_time_awb -lflite_cmu_us_kal16 -lflite_cmu_us_awb -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex -lflite -lm -lasound -lm -lasound
../build/armv6l-linux-gnu/lib/libflite_cmu_us_kal16.a(cmu_us_kal16_diphone.o):(.data+0xc): undefined reference to `cmu_us_kal16_res'
collect2: error: ld returned 1 exit status
make[1]: *** [../bin/flite] Error 1
make: *** [build/armv6l-linux-gnu/obj//.make_build_dirs] Error 2
[ alarmpi ~]
Then I checked the output to see what other references there were to the missing item:
[ alarmpi ~] grep kal16_res /mnt/part3/makeflite2.txt
gcc -I../../lang/usenglish -I../../lang/cmulex -I../../include -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall
-c cmu_us_kal16_residx.c -o ../../build/armv6l-linux-gnu/obj/lang/cmu_us_kal16/cmu_us_kal16_residx.o
a - cmu_us_kal16_res.o
a - cmu_us_kal16_residx.o
../build/armv6l-linux-gnu/lib/libflite_cmu_us_kal16.a(cmu_us_kal16_diphone.o):(.data+0xc): undefined reference to `cmu_us_kal16_res'
[ alarmpi ~]
I could only find two webpages containing some of the error output, and the errors in the first debian one were for an earlier version of flite.
http://osdir.com/ml/debian-bugs-closed/ ... 00726.html
http://jira.freeswitch.org/secure/attachment/1103
Now what do I do? I do not know c, just bash and sed and a little awk.
Also, if I needed to make extra swap, would there be an error indicating that my pi had run out of space?
Thanks!