[Tts-project] Bug#1090291: rhvoice: FTBFS: error: 'uint32_t' is not a member of 'utf8'

Santiago Vila sanvila at debian.org
Mon Dec 16 17:52:37 GMT 2024


Package: src:rhvoice
Version: 1.8.0+dfsg-4
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
:
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
scons prefix="/usr" sysconfdir="/etc" libdir="/usr/lib/x86_64-linux-gnu" \
	CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" \
	CC="cc" \
	CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" \
	CXX="g++" \
	CXXFLAGS="-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" \
	LINKFLAGS="-Wl,-z,relro" \
	enable_sonic=True
scons: Reading SConscript files ...
Mkdir("build/linux")
Georgian language is skipped because of non-free license
Checking whether the C compiler works... yes
Checking whether the C++ compiler works... yes
Checking for pkg-config... yes
Checking for libpulse-simple... yes
Checking for ao... yes
Checking for portaudio-2.0... yes
Checking Speech Dispatcher version ... 0.11.5
Checking for giomm-2.4... yes
Checking for sonicCreateStream(0, 0) in C library sonic... yes
Configuring  /<<PKGBUILDDIR>>/src/core/config.h.in into /<<PKGBUILDDIR>>/src/core/config.h ...
Configuring  /<<PKGBUILDDIR>>/src/include/core/config.h.in into /<<PKGBUILDDIR>>/src/include/core/config.h ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/linux/audio/audio.os -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++11 -O2 -pthread -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -DWITH_LIBAO=1 -DWITH_PULSE=1 -D_REENTRANT -DWITH_PORTAUDIO=1 -Ibuild/linux/include -Isrc/include -Ibuild/linux/audio -Isrc/audio -Isrc/include -Iusr/include/boost -Isrc/third-party/mage -Isrc/third-party/hts_engine src/audio/audio.cpp
g++ -o build/linux/audio/file_playback_stream_impl.os -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++11 -O2 -pthread -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -DWITH_LIBAO=1 -DWITH_PULSE=1 -D_REENTRANT -DWITH_PORTAUDIO=1 -Ibuild/linux/include -Isrc/include -Ibuild/linux/audio -Isrc/audio -Isrc/include -Iusr/include/boost -Isrc/third-party/mage -Isrc/third-party/hts_engine src/audio/file_playback_stream_impl.cpp
In file included from src/audio/file_playback_stream_impl.cpp:18:
src/include/core/io.hpp:97:40: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations]
   97 |     struct integer_reader: public std::binary_function<std::istream&,T&,std::istream&>
      |                                        ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:49,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from src/audio/file_playback_stream_impl.cpp:16:
/usr/include/c++/14/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
g++ -o build/linux/audio/playback_stream.os -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++11 -O2 -pthread -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -DWITH_LIBAO=1 -DWITH_PULSE=1 -D_REENTRANT -DWITH_PORTAUDIO=1 -Ibuild/linux/include -Isrc/include -Ibuild/linux/audio -Isrc/audio -Isrc/include -Iusr/include/boost -Isrc/third-party/mage -Isrc/third-party/hts_engine src/audio/playback_stream.cpp
g++ -o build/linux/audio/libao.os -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++11 -O2 -pthread -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -DWITH_LIBAO=1 -DWITH_PULSE=1 -D_REENTRANT -DWITH_PORTAUDIO=1 -Ibuild/linux/include -Isrc/include -Ibuild/linux/audio -Isrc/audio -Isrc/include -Iusr/include/boost -Isrc/third-party/mage -Isrc/third-party/hts_engine src/audio/libao.cpp
g++ -o build/linux/audio/pulse.os -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++11 -O2 -pthread -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -DWITH_LIBAO=1 -DWITH_PULSE=1 -D_REENTRANT -DWITH_PORTAUDIO=1 -Ibuild/linux/include -Isrc/include -Ibuild/linux/audio -Isrc/audio -Isrc/include -Iusr/include/boost -Isrc/third-party/mage -Isrc/third-party/hts_engine src/audio/pulse.cpp
g++ -o build/linux/audio/portaudio.os -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++11 -O2 -pthread -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -DWITH_LIBAO=1 -DWITH_PULSE=1 -D_REENTRANT -DWITH_PORTAUDIO=1 -Ibuild/linux/include -Isrc/include -Ibuild/linux/audio -Isrc/audio -Isrc/include -Iusr/include/boost -Isrc/third-party/mage -Isrc/third-party/hts_engine src/audio/portaudio.cpp
g++ -o build/linux/core/unicode.os -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++11 -O2 -pthread -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -DRHVOICE=1 -DPACKAGE=\"RHVoice\" -Ibuild/linux/include -Isrc/include -Ibuild/linux/core -Isrc/core -Isrc/include -Iusr/include/boost -Isrc/third-party/mage -Isrc/third-party/hts_engine -Iexternal/libs/sonic src/core/unicode.cpp
In file included from src/core/unicode.cpp:17:
src/include/core/unicode.hpp:70:31: error: 'uint32_t' is not a member of 'utf8'
   70 |     category_t category(utf8::uint32_t c);
      |                               ^~~~~~~~
src/include/core/unicode.hpp:72:11: error: 'uint32_t' in namespace 'utf8' does not name a type
   72 |     utf8::uint32_t toupper(utf8::uint32_t c);
      |           ^~~~~~~~
src/include/core/unicode.hpp:73:11: error: 'uint32_t' in namespace 'utf8' does not name a type
   73 |     utf8::uint32_t tolower(utf8::uint32_t c);
      |           ^~~~~~~~
src/include/core/unicode.hpp:87:35: error: 'uint32_t' is not a member of 'utf8'
   87 |     unsigned int properties(utf8::uint32_t c);
      |                                   ^~~~~~~~
src/core/unicode.cpp:27:15: error: 'uint32_t' in namespace 'utf8' does not name a type
   27 |         utf8::uint32_t code;
      |               ^~~~~~~~
src/core/unicode.cpp:29:15: error: 'uint32_t' in namespace 'utf8' does not name a type
   29 |         utf8::uint32_t upper,lower;
      |               ^~~~~~~~
In file included from src/core/unicode.cpp:33:
src/core/unidata.cpp:23698:38: error: too many initializers for 'const RHVoice::unicode::{anonymous}::record'
23698 | {1114109,{'C','o'},1114109,1114109,0}};
      |                                      ^
src/core/unicode.cpp:38:56: error: too many initializers for 'const RHVoice::unicode::{anonymous}::record'
   38 |       const record empty_record={0,empty_category,0,0,0};
      |                                                        ^
src/core/unicode.cpp: In function 'bool RHVoice::unicode::{anonymous}::compare(const record&, const record&)':
src/core/unicode.cpp:42:20: error: 'const struct RHVoice::unicode::{anonymous}::record' has no member named 'code'
   42 |         return (r1.code<r2.code);
      |                    ^~~~
src/core/unicode.cpp:42:28: error: 'const struct RHVoice::unicode::{anonymous}::record' has no member named 'code'
   42 |         return (r1.code<r2.code);
      |                            ^~~~
src/core/unicode.cpp: At global scope:
src/core/unicode.cpp:45:32: error: 'uint32_t' is not a member of 'utf8'
   45 |       const record* find(utf8::uint32_t c)
      |                                ^~~~~~~~
src/core/unicode.cpp:84:16: error: redefinition of 'RHVoice::unicode::category_t RHVoice::unicode::category'
   84 |     category_t category(utf8::uint32_t c)
      |                ^~~~~~~~
src/include/core/unicode.hpp:70:16: note: 'RHVoice::unicode::category_t RHVoice::unicode::category' previously declared here
   70 |     category_t category(utf8::uint32_t c);
      |                ^~~~~~~~
src/core/unicode.cpp:84:31: error: 'uint32_t' is not a member of 'utf8'
   84 |     category_t category(utf8::uint32_t c)
      |                               ^~~~~~~~
src/core/unicode.cpp:90:11: error: 'uint32_t' in namespace 'utf8' does not name a type
   90 |     utf8::uint32_t toupper(utf8::uint32_t c)
      |           ^~~~~~~~
src/core/unicode.cpp:96:11: error: 'uint32_t' in namespace 'utf8' does not name a type
   96 |     utf8::uint32_t tolower(utf8::uint32_t c)
      |           ^~~~~~~~
src/core/unicode.cpp:102:18: error: redefinition of 'unsigned int RHVoice::unicode::properties'
  102 |     unsigned int properties(utf8::uint32_t c)
      |                  ^~~~~~~~~~
src/include/core/unicode.hpp:87:18: note: 'unsigned int RHVoice::unicode::properties' previously defined here
   87 |     unsigned int properties(utf8::uint32_t c);
      |                  ^~~~~~~~~~
src/core/unicode.cpp:102:35: error: 'uint32_t' is not a member of 'utf8'
  102 |     unsigned int properties(utf8::uint32_t c)
      |                                   ^~~~~~~~
scons: *** [build/linux/core/unicode.os] Error 1
scons: building terminated because of errors.
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202412/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Tts-project mailing list