Hi,
espeak-1.48.04 fails to build on sparc64 (NetBSD9.1) with the following error:
===> Building for espeak-1.48.04nb1
c++ -L/usr/pkg/lib/portaudio2 -Wl,-R/usr/pkg/lib/portaudio2 -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -shared -Wl,-soname,libespeak.so.1 -o libespeak.so \
x_speak_lib.o x_compiledict.o x_dictionary.o x_intonation.o x_readclause.o x_setlengths.o x_numbers.o x_synth_mbrola.o x_synthdata.o x_synthesize.o x_translate.o x_mbrowrap.o x_tr_languages.o x_voices.o x_wavegen.o x_phonemelist.o x_espeak_command.o x_event.o x_fifo.o x_wave.o x_debug.o x_klatt.o x_sonic.o -lstdc++ -lportaudio -lpthread
ld: x_speak_lib.o: in function `dispatch_audio(short*, int, espeak_EVENT*)':
speak_lib.cpp:(.text+0x40): relocation truncated to fit: R_SPARC_GOT13 against symbol `synth_callback' defined in .bss section in x_speak_lib.o
ld: speak_lib.cpp:(.text+0x9c): relocation truncated to fit: R_SPARC_GOT13 against symbol `my_audio' defined in .bss section in x_speak_lib.o
ld: speak_lib.cpp:(.text+0x128): relocation truncated to fit: R_SPARC_GOT13 against symbol `my_audio' defined in .bss section in x_speak_lib.o
ld: speak_lib.cpp:(.text+0x148): relocation truncated to fit: R_SPARC_GOT13 against symbol `fifo_is_command_enabled()' defined in .text section in x_fifo.o
ld: speak_lib.cpp:(.text+0x154): relocation truncated to fit: R_SPARC_GOT13 against symbol `my_audio' defined in .bss section in x_speak_lib.o
ld: x_speak_lib.o: in function `Synthesize(unsigned int, void const*, int) [clone .isra.1]':
speak_lib.cpp:(.text+0x1f0): relocation truncated to fit: R_SPARC_GOT13 against symbol `outbuf' defined in .bss section in x_speak_lib.o
ld: speak_lib.cpp:(.text+0x200): relocation truncated to fit: R_SPARC_GOT13 against symbol `event_list' defined in .bss section in x_speak_lib.o
ld: speak_lib.cpp:(.text+0x220): relocation truncated to fit: R_SPARC_GOT13 against symbol `option_multibyte' defined in .bss section in x_translate.o
ld: speak_lib.cpp:(.text+0x234): relocation truncated to fit: R_SPARC_GOT13 against symbol `option_phoneme_input' defined in .bss section in x_translate.o
ld: speak_lib.cpp:(.text+0x238): relocation truncated to fit: R_SPARC_GOT13 against symbol `count_samples' defined in .bss section in x_speak_lib.o
ld: speak_lib.cpp:(.text+0x240): additional relocation overflows omitted from the output
gmake: *** [Makefile:114: libespeak.so] Error 1
*** Error code 2
According to the internet, one needs to replace -fpic with -fPIC to avoid this error.
I did this and it compiled.
Regards,
Connor