Topics

[espeak-ng:master] new issue: Failed to compile in Cygwin 32-bit environment #github


espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Issue Created by MaxGodTier:
#871 Failed to compile in Cygwin 32-bit environment

I tried to compile eSpeak-NG in a Cygwin 32-bit environment but it would throw this error:

src/include/compat/endian.h:109:3: error: #error platform not supported
109 | # error platform not supported

So I swapped endian.h in src/include/compat/ with this one but after a while I get another error:

libtool: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries; building static only
  CXXLD    src/speak-ng.exe
  CC       src/espeak-ng.o
  CCLD     src/espeak-ng.exe
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(speechPlayer.o):/home/PC/tools/espeak-ng/src/speechPlayer/src/speechPlayer.cpp:52: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(speechPlayer.o): in function `speechPlayer_terminate':
/home/PC/tools/espeak-ng/src/speechPlayer/src/speechPlayer.cpp:53: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: /home/PC/tools/espeak-ng/src/speechPlayer/src/speechPlayer.cpp:54: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(speechWaveGenerator.o):speechWaveGenerator.cpp:(.rdata$_ZTI13WaveGenerator[__ZTI13WaveGenerator]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(speechWaveGenerator.o):speechWaveGenerator.cpp:(.rdata$_ZTI19SpeechWaveGenerator[__ZTI19SpeechWaveGenerator]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(speechWaveGenerator.o):speechWaveGenerator.cpp:(.rdata$_ZTI23SpeechWaveGeneratorImpl[__ZTI23SpeechWaveGeneratorImpl]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN16FrameManagerImpl10queueFrameEP20speechPlayer_frame_tjjib':
/home/PC/tools/espeak-ng/src/speechPlayer/src/frame.cpp:109: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: /home/PC/tools/espeak-ng/src/speechPlayer/src/frame.cpp:104: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN9__gnu_cxx13new_allocatorIP14frameRequest_tE10deallocateEPS2_j':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/ext/new_allocator.h:133: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN9__gnu_cxx13new_allocatorIPP14frameRequest_tE10deallocateEPS3_j':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/ext/new_allocator.h:133: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN9__gnu_cxx13new_allocatorIPP14frameRequest_tE8allocateEjPKv':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/ext/new_allocator.h:106: undefined reference to `std::__throw_bad_alloc()'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZNSt5dequeIP14frameRequest_tSaIS1_EE16_M_push_back_auxIJRKS1_EEEvDpOT_':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/bits/deque.tcc:490: undefined reference to `std::__throw_length_error(char const*)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN16FrameManagerImpl18updateCurrentFrameEv':
/home/PC/tools/espeak-ng/src/speechPlayer/src/frame.cpp:46: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN9__gnu_cxx13new_allocatorIP14frameRequest_tE10deallocateEPS2_j':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/ext/new_allocator.h:133: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZNSt11_Deque_baseIP14frameRequest_tSaIS1_EE17_M_initialize_mapEj':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/bits/stl_deque.h:635: undefined reference to `__cxa_end_catch'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN12FrameManager6createEv':
/home/PC/tools/espeak-ng/src/speechPlayer/src/frame.cpp:132: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN9__gnu_cxx13new_allocatorIPP14frameRequest_tE10deallocateEPS3_j':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/ext/new_allocator.h:133: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZNSt11_Deque_baseIP14frameRequest_tSaIS1_EE15_M_create_nodesEPPS1_S5_':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/bits/stl_deque.h:662: undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: /usr/lib/gcc/i686-pc-cygwin/10/include/c++/bits/stl_deque.h:665: undefined reference to `__cxa_rethrow'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: /usr/lib/gcc/i686-pc-cygwin/10/include/c++/bits/stl_deque.h:662: undefined reference to `__cxa_end_catch'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZNSt11_Deque_baseIP14frameRequest_tSaIS1_EE17_M_initialize_mapEj':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/bits/stl_deque.h:635: undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN9__gnu_cxx13new_allocatorIPP14frameRequest_tE10deallocateEPS3_j':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/ext/new_allocator.h:133: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZNSt11_Deque_baseIP14frameRequest_tSaIS1_EE17_M_initialize_mapEj':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/bits/stl_deque.h:640: undefined reference to `__cxa_rethrow'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o): in function `ZN9__gnu_cxx13new_allocatorIP14frameRequest_tE10deallocateEPS2_j':
/usr/lib/gcc/i686-pc-cygwin/10/include/c++/ext/new_allocator.h:133: undefined reference to `operator delete(void*, unsigned int)'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o):frame.cpp:(.rdata$_ZTI12FrameManager[__ZTI12FrameManager]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o):frame.cpp:(.rdata$_ZTI16FrameManagerImpl[__ZTI16FrameManagerImpl]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: src/.libs/libespeak-ng.a(frame.o):frame.cpp:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: /usr/lib/gcc/i686-pc-cygwin/10/../../../libcygwin.a(_cygwin_crt0_common.o):_cygwin_crt0_common.cc:(.data+0x0): undefined reference to `operator new(unsigned int)'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1213: src/espeak-ng.exe] Error 1
make[1]: Leaving directory '/home/PC/tools/espeak-ng'
make: *** [Makefile:821: all] Error 2

I can easily install eSpeak from the package manager so I don't believe there should be any hard limitations preventing eSpeak-NG from compiling as well. It's really important that I can make it work under Cygwin, any help is much appreciated, thanks!