>>> bordeaux: Building testing/bordeaux 0.8.1-r0 (using abuild 3.13.0-r5) started Mon, 30 Sep 2024 13:56:15 +0000 >>> bordeaux: Checking sanity of /home/buildozer/aports/testing/bordeaux/APKBUILD... >>> bordeaux: Analyzing dependencies... >>> bordeaux: Installing for build: build-base cmake fmt-dev>=8.1.0 flite-dev openssl-dev moderncli-dev>=0.8.0 libosip2-dev>=5.3.0 libexosip2-dev>=5.3.0 rapidjson-dev (1/19) Installing libbz2 (1.0.8-r6) (2/19) Installing xz-libs (5.6.2-r0) (3/19) Installing libarchive (3.7.5-r0) (4/19) Installing rhash-libs (1.4.4-r0) (5/19) Installing libuv (1.49.0-r0) (6/19) Installing cmake (3.30.4-r0) (7/19) Installing fmt (10.2.1-r2) (8/19) Installing fmt-dev (10.2.1-r2) (9/19) Installing alsa-lib (1.2.12-r0) (10/19) Installing flite (2.2-r3) (11/19) Installing flite-dev (2.2-r3) (12/19) Installing openssl-dev (3.3.2-r2) (13/19) Installing moderncli-dev (0.9.2-r0) (14/19) Installing libosip2 (5.3.1-r1) (15/19) Installing libosip2-dev (5.3.1-r1) (16/19) Installing libexosip2 (5.3.0-r2) (17/19) Installing libexosip2-dev (5.3.0-r2) (18/19) Installing rapidjson-dev (1.1.0-r6) (19/19) Installing .makedepends-bordeaux (20240930.135618) Executing busybox-1.36.1-r32.trigger OK: 372 MiB in 122 packages >>> bordeaux: Cleaning up srcdir >>> bordeaux: Cleaning up pkgdir >>> bordeaux: Cleaning up tmpdir >>> bordeaux: Fetching https://distfiles.alpinelinux.org/distfiles/edge/bordeaux-0.8.1.tar.gz >>> bordeaux: Fetching https://distfiles.alpinelinux.org/distfiles/edge/bordeaux-0.8.1.tar.gz >>> bordeaux: Checking sha512sums... bordeaux-0.8.1.tar.gz: OK bordeaux.initd: OK bordeaux.confd: OK >>> bordeaux: Unpacking /var/cache/distfiles/bordeaux-0.8.1.tar.gz... -- The CXX compiler identification is GNU 14.2.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0") -- Looking for C++ include mqueue.h -- Looking for C++ include mqueue.h - found -- Looking for C++ include flite/flite.h -- Looking for C++ include flite/flite.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.3.2") -- RapidJSON found. Headers: /usr/include -- Checking for module 'moderncli>=0.8.0' -- Found moderncli, version 0.9.2 -- Checking for module 'libosip2>=5.3.0' -- Found libosip2, version 5.3.1 -- Checking for one of the modules 'jemalloc' -- Configuring done (0.8s) -- Generating done (0.0s) -- Build files have been written to: /home/buildozer/aports/testing/bordeaux/src/bordeaux-0.8.1 [ 12%] Building CXX object drivers/CMakeFiles/driver_coventry.dir/coventry.cpp.o [ 12%] Building CXX object drivers/CMakeFiles/driver_coventry.dir/segments.cpp.o [ 12%] Building CXX object utils/CMakeFiles/bordeauxctl.dir/bordeauxctl.cpp.o [ 25%] Building CXX object src/CMakeFiles/server.dir/memory.cpp.o [ 25%] Building CXX object drivers/CMakeFiles/driver_coventry.dir/media.cpp.o [ 25%] Building CXX object src/CMakeFiles/server.dir/drivers.cpp.o [ 33%] Building CXX object src/CMakeFiles/server.dir/runtime.cpp.o [ 33%] Building CXX object src/CMakeFiles/server.dir/network.cpp.o [ 41%] Building CXX object src/CMakeFiles/server.dir/server.cpp.o [ 41%] Building CXX object src/CMakeFiles/server.dir/script.cpp.o [ 50%] Building CXX object src/CMakeFiles/server.dir/symbols.cpp.o [ 50%] Building CXX object src/CMakeFiles/server.dir/sessions.cpp.o [ 66%] Building CXX object utils/CMakeFiles/bordeauxsnd.dir/bordeauxsnd.cpp.o [ 66%] Building CXX object src/CMakeFiles/server.dir/utils.cpp.o [ 66%] Building CXX object drivers/CMakeFiles/driver_generic.dir/generic.cpp.o [ 66%] Building CXX object plugins/CMakeFiles/plugin_en.dir/en.cpp.o [ 75%] Building CXX object drivers/CMakeFiles/driver_generic.dir/segments.cpp.o [ 75%] Building CXX object drivers/CMakeFiles/driver_generic.dir/media.cpp.o /home/buildozer/aports/testing/bordeaux/src/bordeaux-0.8.1/src/utils.cpp: In function 'void server::logger(const std::string&)': /home/buildozer/aports/testing/bordeaux/src/bordeaux-0.8.1/src/utils.cpp:93:27: error: 'local_time' was not declared in this scope; did you mean 'localtime'? 93 | const struct tm now = local_time(timestamp); | ^~~~~~~~~~ | localtime [ 79%] Linking CXX shared module plugin_en.so [ 79%] Built target plugin_en /home/buildozer/aports/testing/bordeaux/src/bordeaux-0.8.1/utils/bordeauxsnd.cpp: In function 'int main(int, const char**)': /home/buildozer/aports/testing/bordeaux/src/bordeaux-0.8.1/utils/bordeauxsnd.cpp:258:31: error: could not convert 'main(int, const char**)::{country, paths, audio, vox}' from 'main(int, const char**)::' to 'std::function&)>' 258 | scan_stream(spec, [&](std::string line) { | ^~~~~~~~~~~~~~~~~~~~~~~ | | | main(int, const char**):: 259 | auto pos = line.find_first_of("#;"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 260 | if(pos != std::string::npos) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 261 | line = line.substr(0, pos); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 262 | line = strip(line); | ~~~~~~~~~~~~~~~~~~~ 263 | if(line.size() < 1) | ~~~~~~~~~~~~~~~~~~~ 264 | return true; | ~~~~~~~~~~~~ 265 | pos = line.find_first_of(" \t"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 266 | std::string file, text; | ~~~~~~~~~~~~~~~~~~~~~~~ 267 | if(pos < 1 || pos == std::string::npos) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 268 | file = line; | ~~~~~~~~~~~~ 269 | text = line; | ~~~~~~~~~~~~ 270 | } | ~ 271 | else { | ~~~~~~ 272 | file = strip(line.substr(0, pos)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 273 | text = strip(line.substr(++pos)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 274 | } | ~ 275 | | 276 | pos = file.find_first_of(':'); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 277 | if(pos != std::string::npos) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 278 | if(line.substr(0, pos) != country) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 279 | return true; | ~~~~~~~~~~~~ 280 | file = file.substr(++pos); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 281 | } | ~ 282 | | 283 | if(text.substr(0, 5) == "@tone") { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 284 | auto tokens = tokenize(text, " \t"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 285 | auto count = tokens.size(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 286 | if(count < 2 || count > 5) | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 287 | return true; | ~~~~~~~~~~~~ 288 | | 289 | short f1{0}, f2{0}; | ~~~~~~~~~~~~~~~~~~~ 290 | unsigned length = duration(tokens[1]) * 8; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 291 | if(count > 2) | ~~~~~~~~~~~~~ 292 | f1 = static_cast(value(tokens[2])); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 293 | if(count > 3) | ~~~~~~~~~~~~~ 294 | f2 = static_cast(value(tokens[3])); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 295 | unsigned total{length}; | ~~~~~~~~~~~~~~~~~~~~~~~ 296 | if(count > 4) | ~~~~~~~~~~~~~ 297 | total = length + (duration(tokens[4]) * 8); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 298 | uint8_t samples[total]; | ~~~~~~~~~~~~~~~~~~~~~~~ 299 | | 300 | if(!is(opt_quiet)) | ~~~~~~~~~~~~~~~~~~ 301 | print("{}: {} samples\n", file, total); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 302 | | 303 | auto filename = path(file, paths); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 304 | auto note = "*" + file + "*"; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 305 | memset(samples, 0xff, sizeof(samples)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 306 | tone(samples, length / 8, f1, f2); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 307 | fsys::remove(filename); | ~~~~~~~~~~~~~~~~~~~~~~~ 308 | audio.make(filename.c_str(), 1, 8000, 1, 0664, note); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 309 | audio.put(samples, total); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 310 | audio.close(); | ~~~~~~~~~~~~~~ 311 | return true; | ~~~~~~~~~~~~ 312 | } | ~ 313 | | 314 | auto wave = flite_text_to_wave(text.c_str(), vox); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 315 | if(!wave) | ~~~~~~~~~ 316 | throw std::runtime_error("flite conversion failed"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 317 | | 318 | if(wave->num_channels > 1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 319 | throw std::runtime_error("bordeaux requires mono voice"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 320 | | 321 | if(wave->sample_rate != 8000 && wave->sample_rate != 16000) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 322 | throw std::runtime_error("bordeaux requires 8 or 16khz samples"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 323 | | 324 | uint8_t samples[wave->num_samples]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 325 | auto sp = wave->samples; | ~~~~~~~~~~~~~~~~~~~~~~~~ 326 | auto up = &samples[0]; | ~~~~~~~~~~~~~~~~~~~~~~ 327 | | 328 | if(wave->sample_rate == 16000) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 329 | wave->num_samples /= 2; | ~~~~~~~~~~~~~~~~~~~~~~~ 330 | | 331 | if(!is(opt_quiet)) | ~~~~~~~~~~~~~~~~~~ 332 | print("{}: {} samples\n", file, wave->num_samples); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 333 | | 334 | auto size = wave->num_samples; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 335 | while(wave->num_samples--) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 336 | *(up++) = to_ulaw(*(sp)++); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 337 | if(wave->sample_rate == 16000) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 338 | ++sp; | ~~~~~ 339 | } | ~ 340 | | 341 | auto filename = path(file, paths); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 342 | fsys::remove(filename); | ~~~~~~~~~~~~~~~~~~~~~~~ 343 | audio.make(filename.c_str(), 1, 8000, 1, 0664, text); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 344 | audio.put(samples, size); | ~~~~~~~~~~~~~~~~~~~~~~~~~ 345 | audio.close(); | ~~~~~~~~~~~~~~ 346 | delete_wave(wave); | ~~~~~~~~~~~~~~~~~~ 347 | return true; | ~~~~~~~~~~~~ 348 | }); | ~ make[2]: *** [src/CMakeFiles/server.dir/build.make:188: src/CMakeFiles/server.dir/utils.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [utils/CMakeFiles/bordeauxsnd.dir/build.make:76: utils/CMakeFiles/bordeauxsnd.dir/bordeauxsnd.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:358: utils/CMakeFiles/bordeauxsnd.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 83%] Linking CXX executable bordeauxctl [ 83%] Built target bordeauxctl make[1]: *** [CMakeFiles/Makefile2:228: src/CMakeFiles/server.dir/all] Error 2 [ 87%] Linking CXX shared module driver_generic.so [ 87%] Built target driver_generic [ 91%] Linking CXX shared module driver_coventry.so [ 91%] Built target driver_coventry make: *** [Makefile:136: all] Error 2 >>> ERROR: bordeaux: build failed >>> bordeaux: Uninstalling dependencies... (1/19) Purging .makedepends-bordeaux (20240930.135618) (2/19) Purging cmake (3.30.4-r0) (3/19) Purging fmt-dev (10.2.1-r2) (4/19) Purging fmt (10.2.1-r2) (5/19) Purging flite-dev (2.2-r3) (6/19) Purging flite (2.2-r3) (7/19) Purging openssl-dev (3.3.2-r2) (8/19) Purging moderncli-dev (0.9.2-r0) (9/19) Purging libosip2-dev (5.3.1-r1) (10/19) Purging libexosip2-dev (5.3.0-r2) (11/19) Purging libexosip2 (5.3.0-r2) (12/19) Purging rapidjson-dev (1.1.0-r6) (13/19) Purging alsa-lib (1.2.12-r0) (14/19) Purging libarchive (3.7.5-r0) (15/19) Purging libbz2 (1.0.8-r6) (16/19) Purging libosip2 (5.3.1-r1) (17/19) Purging libuv (1.49.0-r0) (18/19) Purging rhash-libs (1.4.4-r0) (19/19) Purging xz-libs (5.6.2-r0) Executing busybox-1.36.1-r32.trigger OK: 251 MiB in 103 packages