Closed hellmind closed 2 months ago
How can I fix this?
root@4u:/opt/phantomsdrplus$ cat dockerfile #FROM ubuntu:latest #FROM ubuntu:jammy no encunetra glaze #FROM ubuntu:mantic falla en meson build #FROM ubuntu:oracular FROM ubuntu:noble # Updating packages RUN apt-get update # install required packages RUN apt-get install -y build-essential cmake pkg-config meson \ libfftw3-dev libwebsocketpp-dev libflac++-dev zlib1g-dev libzstd-dev \ libboost-all-dev libopus-dev libliquid-dev git libusb-1.0-0-dev \ libcurl4 libcurl4-openssl-dev nlohmann-json3-dev soapysdr-tools \ libsoapysdr-dev libclfft-dev intel-opencl-icd #install libmirisdr 5 RUN git clone https://github.com/ericek111/libmirisdr-5 && \ cd libmirisdr-5 && \ mkdir build && \ cd build && \ cmake .. && \ make -j`nproc` && \ make -j`nproc` install && \ cd ../.. && \ rm -rf libmirisdr-5 #install soapymiri RUN git clone https://github.com/ericek111/SoapyMiri && \ cd SoapyMiri && \ mkdir build && \ cd build && \ cmake .. && \ make -j`nproc` && \ make -j`nproc` install && \ cd ../.. && \ rm -rf SoapyMiri #install rx tools RUN git clone https://github.com/rxseger/rx_tools && \ cd rx_tools && \ mkdir build && \ cd build && \ cmake .. && \ make -j`nproc` && \ make -j`nproc` install && \ cd ../.. && \ rm -rf rx_tools #install phantomsdrplus RUN git clone --recursive https://github.com/Steven9101/PhantomSDR-Plus.git # && \ # meson --optimization 3 build && \ # cd build && \ # meson compile # meson -C build compile RUN cd PhantomSDR-Plus && \ chmod +x install.sh && \ ./install.sh #Deleting unused SoapySDR modules for stability. RUN rm /usr/lib/x86_64-linux-gnu/SoapySDR/modules0.8/* # Cambiar el directorio de trabajo a la carpeta de PhantomSDR-Plus WORKDIR /PhantomSDR-Plus # Ejecutar PhantomSDR-Plus cuando se inicie el contenedor CMD ["sh", "-c", "rx_sdr -f 145000000 -s 5000000 - | ./build/spectrumserver --config config.toml"]
root@4u:/opt/phantomsdrplus$ docker-compose build --progress=plain --progress is a global compose flag, better use `docker compose --progress xx build ... #0 building with "default" instance using docker driver #1 [phantomsdrplus internal] load build definition from dockerfile #1 transferring dockerfile: 1.99kB done #1 DONE 0.0s #2 [phantomsdrplus auth] library/ubuntu:pull token for registry-1.docker.io #2 DONE 0.0s #3 [phantomsdrplus internal] load metadata for docker.io/library/ubuntu:noble #3 DONE 1.1s #4 [phantomsdrplus internal] load .dockerignore #4 transferring context: 2B done #4 DONE 0.0s #5 [phantomsdrplus 1/10] FROM docker.io/library/ubuntu:noble@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #5 DONE 0.0s #6 [phantomsdrplus 3/10] RUN apt-get install -y build-essential cmake pkg-config meson libfftw3-dev libwebsocketpp-dev libflac++-dev zlib1g-dev libzstd-dev libboost-all-dev libopus-dev libliquid-dev git libusb-1.0-0-dev libcurl4 libcurl4-openssl-dev nlohmann-json3-dev soapysdr-tools libsoapysdr-dev libclfft-dev intel-opencl-icd #6 CACHED #7 [phantomsdrplus 4/10] RUN git clone https://github.com/ericek111/libmirisdr-5 && cd libmirisdr-5 && mkdir build && cd build && cmake .. && make -j`nproc` && make -j`nproc` install && cd ../.. && rm -rf libmirisdr-5 #7 CACHED #8 [phantomsdrplus 5/10] RUN git clone https://github.com/ericek111/SoapyMiri && cd SoapyMiri && mkdir build && cd build && cmake .. && make -j`nproc` && make -j`nproc` install && cd ../.. && rm -rf SoapyMiri #8 CACHED #9 [phantomsdrplus 2/10] RUN apt-get update #9 CACHED #10 [phantomsdrplus 6/10] RUN git clone https://github.com/rxseger/rx_tools && cd rx_tools && mkdir build && cd build && cmake .. && make -j`nproc` && make -j`nproc` install && cd ../.. && rm -rf rx_tools #10 CACHED #11 [phantomsdrplus 7/10] RUN git clone --recursive https://github.com/Steven9101/PhantomSDR-Plus.git #11 0.064 Cloning into 'PhantomSDR-Plus'... #11 1.440 Submodule 'frontend' (https://github.com/Steven9101/frontend) registered for path 'frontend' #11 1.443 Cloning into '/PhantomSDR-Plus/frontend'... #11 4.440 Submodule path 'frontend': checked out '6e93cd0e4ae8800ef958be8c2273e8fa99fd6919' #11 DONE 4.8s #12 [phantomsdrplus 8/10] RUN cd PhantomSDR-Plus && chmod +x install.sh && ./install.sh #12 0.111 Updating package lists and installing necessary packages... #12 0.744 Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease #12 0.888 Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] #12 0.921 Get:3 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB] #12 1.588 Get:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB] #12 1.723 Get:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [269 kB] #12 1.872 Get:6 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [238 kB] #12 2.054 Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [322 kB] #12 2.170 Get:8 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [171 kB] #12 2.230 Get:9 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [220 kB] #12 2.237 Get:10 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [207 kB] #12 2.292 Get:11 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [9711 B] #12 2.381 Fetched 1815 kB in 2s (852 kB/s) #12 2.381 Reading package lists... #12 3.564 Reading package lists... #12 4.489 Building dependency tree... #12 4.686 Reading state information... #12 5.053 build-essential is already the newest version (12.10ubuntu1). #12 5.053 cmake is already the newest version (3.28.3-1build7). #12 5.053 pkg-config is already the newest version (1.8.1-2build1). #12 5.053 meson is already the newest version (1.3.2-1ubuntu1). #12 5.053 libfftw3-dev is already the newest version (3.3.10-1ubuntu3). #12 5.053 libwebsocketpp-dev is already the newest version (0.8.2-4). #12 5.053 libflac++-dev is already the newest version (1.4.3+ds-2.1ubuntu2). #12 5.053 zlib1g-dev is already the newest version (1:1.3.dfsg-3.1ubuntu2). #12 5.053 libzstd-dev is already the newest version (1.5.5+dfsg2-2build1). #12 5.053 libboost-all-dev is already the newest version (1.83.0.1ubuntu2). #12 5.053 libopus-dev is already the newest version (1.4-1build1). #12 5.053 libliquid-dev is already the newest version (1.6.0-3). #12 5.053 git is already the newest version (1:2.43.0-1ubuntu7.1). #12 5.053 nlohmann-json3-dev is already the newest version (3.11.3-1). #12 5.053 The following additional packages will be installed: #12 5.055 libcurlpp0t64 #12 5.101 The following NEW packages will be installed: #12 5.103 libcurlpp-dev libcurlpp0t64 #12 5.578 0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded. #12 5.578 Need to get 90.2 kB of archives. #12 5.578 After this operation, 600 kB of additional disk space will be used. #12 5.578 Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 libcurlpp0t64 amd64 0.8.1-5.3build1 [29.0 kB] #12 6.094 Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 libcurlpp-dev amd64 0.8.1-5.3build1 [61.2 kB] #12 6.648 debconf: delaying package configuration, since apt-utils is not installed #12 6.684 Fetched 90.2 kB in 1s (70.8 kB/s) #12 6.708 Selecting previously unselected package libcurlpp0t64:amd64. (Reading database ... 46862 files and directories currently installed.) #12 6.837 Preparing to unpack .../libcurlpp0t64_0.8.1-5.3build1_amd64.deb ... #12 6.839 Unpacking libcurlpp0t64:amd64 (0.8.1-5.3build1) ... #12 6.858 Selecting previously unselected package libcurlpp-dev:amd64. #12 6.862 Preparing to unpack .../libcurlpp-dev_0.8.1-5.3build1_amd64.deb ... #12 6.868 Unpacking libcurlpp-dev:amd64 (0.8.1-5.3build1) ... #12 6.906 Setting up libcurlpp0t64:amd64 (0.8.1-5.3build1) ... #12 6.908 Setting up libcurlpp-dev:amd64 (0.8.1-5.3build1) ... #12 6.916 Processing triggers for libc-bin (2.39-0ubuntu8.2) ... #12 7.156 Packages installed successfully. #12 7.156 Building the main application... #12 8.565 Cloning into 'glaze'... #12 24.45 Cloning into 'websocketpp-0.8.2'... #12 28.40 The Meson build system #12 28.40 Version: 1.3.2 #12 28.40 Source dir: /PhantomSDR-Plus #12 28.40 Build dir: /PhantomSDR-Plus/build #12 28.40 Build type: native build #12 28.40 Project name: spectrumdistributor #12 28.40 Project version: undefined #12 28.40 C++ compiler for the host machine: c++ (gcc 13.2.0 "c++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0") #12 28.40 C++ linker for the host machine: c++ ld.bfd 2.42 #12 28.40 Host machine cpu family: x86_64 #12 28.40 Host machine cpu: x86_64 #12 28.40 meson.build:13: WARNING: Consider using the built-in option for language standard version instead of using "-std=c++23". #12 28.40 meson.build:13: WARNING: Consider using the built-in warning_level option instead of using "-Wall". #12 28.40 meson.build:13: WARNING: Consider using the built-in warning_level option instead of using "-Wextra". #12 28.40 Run-time dependency threads found: YES #12 28.40 Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1 #12 28.40 Run-time dependency fftw3f found: YES 3.3.10 #12 28.40 Library fftw3f_omp found: YES #12 28.40 Run-time dependency OpenMP found: YES 4.5 #12 28.40 Run-time dependency Boost (found: iostreams, system) found: YES 1.83.0 (/usr) #12 28.40 Found CMake: /usr/bin/cmake (3.28.3) #12 28.40 Run-time dependency glaze found: NO (tried pkgconfig and cmake) #12 28.40 #12 28.40 Executing subproject glaze method cmake #12 28.40 #12 28.40 glaze| Found CMake: /usr/bin/cmake (3.28.3) #12 28.40 #12 28.40 | Configuring the build directory with CMake version 3.28.3 #12 28.40 | Running CMake with: -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local #12 28.40 | - build directory: /PhantomSDR-Plus/build/subprojects/glaze/__CMake_build #12 28.40 | - source directory: /PhantomSDR-Plus/subprojects/glaze #12 28.40 | - toolchain file: /PhantomSDR-Plus/build/subprojects/glaze/__CMake_build/CMakeMesonToolchainFile.cmake #12 28.40 | - preload file: /usr/lib/python3/dist-packages/mesonbuild/cmake/data/preload.cmake #12 28.40 | - trace args: --trace-expand --trace-format=json-v1 --no-warn-unused-cli --trace-redirect=cmake_trace.txt #12 28.40 | - disabled policy warnings: [CMP0025, CMP0047, CMP0056, CMP0060, CMP0065, CMP0066, CMP0067, CMP0082, CMP0089, CMP0102] #12 28.40 #12 28.40 | Put cmake in trace mode, but with variables expanded. #12 28.40 | Put cmake in trace mode and sets the trace output format. #12 28.40 | Not searching for unused variables given on the command line. #12 28.40 | Put cmake in trace mode and redirect trace output to a file instead of stderr. #12 28.40 | Trace will be written to cmake_trace.txt #12 28.40 | -- The CXX compiler identification is GNU 13.2.0 #12 28.40 | -- Detecting CXX compiler ABI info #12 28.40 | -- Detecting CXX compiler ABI info - done #12 28.40 | -- Check for working CXX compiler: /usr/bin/c++ - skipped #12 28.40 | -- Detecting CXX compile features #12 28.40 | -- Detecting CXX compile features - done #12 28.40 | -- Fetching dependencies... #12 28.40 | -- ...finished fetching dependencies. #12 28.40 | -- The C compiler identification is GNU 13.2.0 #12 28.40 | -- Detecting C compiler ABI info #12 28.40 | -- Detecting C compiler ABI info - done #12 28.40 | -- Check for working C compiler: /usr/bin/cc - skipped #12 28.40 | -- Detecting C compile features #12 28.40 | -- Detecting C compile features - done #12 28.40 | -- Configuring done (13.8s) #12 28.40 | -- Generating done (0.0s) #12 28.40 | -- Build files have been written to: /PhantomSDR-Plus/build/subprojects/glaze/__CMake_build #12 28.40 #12 28.40 glaze| CMake configuration: SUCCEEDED #12 28.40 glaze| WARNING: CMake: path /PhantomSDR-Plus/subprojects/glaze/tests/asio_repe/server/include does not exist. #12 28.40 glaze| WARNING: --> Ignoring. This can lead to build errors. #12 28.40 glaze| WARNING: CMake: path /PhantomSDR-Plus/subprojects/glaze/tests/asio_repe/client/include does not exist. #12 28.40 glaze| WARNING: --> Ignoring. This can lead to build errors. #12 28.40 glaze| CMake project glaze has 53 build targets. #12 28.40 glaze| Generated Meson AST: /PhantomSDR-Plus/build/subprojects/glaze/meson.build #12 28.40 glaze| Project name: glaze #12 28.40 glaze| Project version: undefined #12 28.40 glaze| C compiler for the host machine: cc (gcc 13.2.0 "cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0") #12 28.40 glaze| C linker for the host machine: cc ld.bfd 2.42 #12 28.40 glaze| C++ compiler for the host machine: c++ (gcc 13.2.0 "c++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0") #12 28.40 glaze| C++ linker for the host machine: c++ ld.bfd 2.42 #12 28.40 glaze| Build targets in project: 49 #12 28.40 glaze| Subproject glaze finished. #12 28.40 #12 28.40 Library liquid found: YES #12 28.40 Run-time dependency libzstd found: YES 1.5.5 #12 28.40 Run-time dependency flac++ found: YES 1.4.3 #12 28.40 Run-time dependency aom found: NO (tried pkgconfig and cmake) #12 28.40 Run-time dependency opus found: YES 1.4 #12 28.40 Run-time dependency zlib found: YES 1.3 #12 28.40 Downloading websocketpp patch from https://wrapdb.mesonbuild.com/v2/websocketpp_0.8.2-1/get_patch #12 30.41 #12 30.41 Executing subproject websocketpp #12 30.41 #12 30.41 websocketpp| Project name: websocketpp #12 30.41 websocketpp| Project version: 0.8.2 #12 30.41 websocketpp| C++ compiler for the host machine: c++ (gcc 13.2.0 "c++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0") #12 30.41 websocketpp| C++ linker for the host machine: c++ ld.bfd 2.42 #12 30.41 websocketpp| Build targets in project: 49 #12 30.41 websocketpp| Subproject websocketpp finished. #12 30.41 #12 30.41 Run-time dependency tomlplusplus found: NO (tried pkgconfig and cmake) #12 30.41 Looking for a fallback subproject for the dependency tomlplusplus #12 30.41 Downloading tomlplusplus source from https://github.com/marzer/tomlplusplus/archive/v3.4.0.tar.gz #12 30.41 Downloading file of unknown size. #12 30.41 #12 30.41 Executing subproject tomlplusplus #12 30.41 #12 30.41 tomlplusplus| Project name: tomlplusplus #12 30.41 tomlplusplus| Project version: 3.4.0 #12 30.41 tomlplusplus| C++ compiler for the host machine: c++ (gcc 13.2.0 "c++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0") #12 30.41 tomlplusplus| C++ linker for the host machine: c++ ld.bfd 2.42 #12 30.41 tomlplusplus| Message: target cpu_family: x86_64 #12 30.41 tomlplusplus| Message: target cpu: x86_64 #12 30.41 tomlplusplus| Message: target system: linux #12 30.41 tomlplusplus| Message: target endian: little #12 30.41 tomlplusplus| Compiler for C++ supports arguments -ferror-limit=5: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -fmax-errors=5: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-unused-command-line-argument: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-reserved-macro-identifier: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-init-list-lifetime: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments -fchar8_t: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments /bigobj: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /Gy: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /GF: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /openmp-: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /permissive-: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /utf-8: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /volatile:iso: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /Zc:__cplusplus: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /Zc:inline: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /Zc:externConstexpr: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /Zc:preprocessor: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments /Zc:throwingNew: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -D_HAS_EXCEPTIONS=1: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-c++98-compat: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-c++98-compat-pedantic: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-documentation: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-documentation-unknown-command: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-switch-enum: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-covered-switch-default: NO #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-padded: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments -Wno-float-equal: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments -DTOML_HEADER_ONLY=0: YES #12 30.41 tomlplusplus| Compiler for C++ supports arguments -DTOML_SHARED_LIB=1: YES #12 30.41 tomlplusplus| Build targets in project: 50 #12 30.41 tomlplusplus| Subproject tomlplusplus finished. #12 30.41 #12 30.41 Dependency tomlplusplus found: YES 3.4.0 (overridden) #12 30.41 Run-time dependency CUDA (modules: cudart_static, rt, pthread, dl) found: NO (tried system) #12 30.41 Run-time dependency cufft found: NO (tried pkgconfig and cmake) #12 30.41 Run-time dependency opencl found: YES 3.0 #12 30.41 Run-time dependency clfft found: YES 2.12.2 #12 30.41 Library stdc++fs found: YES #12 30.41 Run-time dependency libcurl found: YES 8.5.0 #12 30.41 Compiler for language cuda for the build machine not found. #12 30.41 Compiler for language cuda for the host machine not found. #12 30.41 Build targets in project: 51 #12 30.41 #12 30.41 spectrumdistributor undefined #12 30.41 #12 30.41 Subprojects #12 30.41 glaze : YES #12 30.41 tomlplusplus: YES #12 30.41 websocketpp : YES #12 30.41 #12 30.41 User defined options #12 30.41 optimization: 3 #12 30.41 #12 30.41 Found ninja-1.11.1 at /usr/bin/ninja #12 30.41 WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated. #12 30.84 ninja: Entering directory `/PhantomSDR-Plus/build' #12 35.37 [1/21] Compiling C++ object spectrumserver.p/src_samplereader.cpp.o #12 51.72 [2/21] Compiling C++ object spectrumserver.p/src_client.cpp.o #12 54.23 [3/21] Compiling C++ object subprojects/tomlplusplus-3.4.0/src/libtomlplusplus.so.3.4.0.p/toml.cpp.o #12 54.51 [4/21] Linking target subprojects/tomlplusplus-3.4.0/src/libtomlplusplus.so.3.4.0 #12 54.78 [5/21] Generating symbol file subprojects/tomlplusplus-3.4.0/src/libtomlplusplus.so.3.4.0.p/libtomlplusplus.so.3.4.0.symbols #12 56.92 [6/21] Compiling C++ object spectrumserver.p/src_websocket.cpp.o #12 56.92 FAILED: spectrumserver.p/src_websocket.cpp.o #12 56.92 c++ -Ispectrumserver.p -I. -I.. -Isubprojects/websocketpp-0.8.2 -I../subprojects/websocketpp-0.8.2 -Isubprojects/tomlplusplus-3.4.0/include -I../subprojects/tomlplusplus-3.4.0/include -I../subprojects/glaze/include -Isubprojects/glaze/__CMake_build -I../subprojects/glaze/__CMake_build -Isubprojects/glaze -I../subprojects/glaze -I/usr/include -I/usr/include/opus -I/usr/include/x86_64-linux-gnu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -g -march=native -ggdb3 -std=c++23 -Wall -Wextra -Wpedantic -DHAS_LIQUID -DHAS_LIBOPUS -DCLFFT -Wno-missing-braces -DTOML_HEADER_ONLY=0 -DTOML_SHARED_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_ALL_NO_LIB -fopenmp -pthread -MD -MQ spectrumserver.p/src_websocket.cpp.o -MF spectrumserver.p/src_websocket.cpp.o.d -o spectrumserver.p/src_websocket.cpp.o -c ../src/websocket.cpp #12 56.92 In file included from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/connection.hpp:31, #12 56.92 from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/endpoint.hpp:32, #12 56.92 from ../subprojects/websocketpp-0.8.2/websocketpp/config/asio_no_tls.hpp:32, #12 56.92 from ../src/websocket.h:4, #12 56.92 from ../src/spectrumserver.h:18, #12 56.92 from ../src/websocket.cpp:3: #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/base.hpp:82:10: warning: ‘template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage’ is deprecated [-Wdeprecated-declarations] #12 56.92 82 | lib::aligned_storage<size>::type m_storage; #12 56.92 | ^~~~~~~~~~~~~~~ #12 56.92 In file included from /usr/include/c++/13/bits/stl_pair.h:60, #12 56.92 from /usr/include/c++/13/tuple:38, #12 56.92 from /usr/include/c++/13/mutex:40, #12 56.92 from ../src/client.h:4, #12 56.92 from ../src/websocket.cpp:1: #12 56.92 /usr/include/c++/13/type_traits:2099:5: note: declared here #12 56.92 2099 | aligned_storage #12 56.92 | ^~~~~~~~~~~~~~~ #12 56.92 ../src/websocket.cpp: In member function ‘void broadcast_server::send_basic_info(websocketpp::connection_hdl)’: #12 56.92 ../src/websocket.cpp:69:18: error: no matching function for call to ‘websocketpp::server<websocketpp::config::asio>::send(websocketpp::connection_hdl&, glz::expected<std::__cxx11::basic_string<char>, glz::error_ctx>, websocketpp::frame::opcode::value)’ #12 56.92 69 | m_server.send(hdl, glz::write_json(json), websocketpp::frame::opcode::text); #12 56.92 | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #12 56.92 In file included from ../subprojects/websocketpp-0.8.2/websocketpp/endpoint.hpp:701, #12 56.92 from ../subprojects/websocketpp-0.8.2/websocketpp/roles/server_endpoint.hpp:31, #12 56.92 from ../subprojects/websocketpp-0.8.2/websocketpp/server.hpp:31, #12 56.92 from ../src/websocket.h:5: #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:132:6: note: candidate: ‘void websocketpp::endpoint<connection, config>::send(websocketpp::connection_hdl, const std::string&, websocketpp::frame::opcode::value, std::error_code&) [with connection = websocketpp::connection<websocketpp::config::asio>; config = websocketpp::config::asio; websocketpp::connection_hdl = std::weak_ptr<void>; std::string = std::__cxx11::basic_string<char>]’ #12 56.92 132 | void endpoint<connection,config>::send(connection_hdl hdl, std::string const & payload, #12 56.92 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:132:6: note: candidate expects 4 arguments, 3 provided #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:219:6: note: candidate: ‘void websocketpp::endpoint<connection, config>::send(websocketpp::connection_hdl, const std::string&, websocketpp::frame::opcode::value) [with connection = websocketpp::connection<websocketpp::config::asio>; config = websocketpp::config::asio; websocketpp::connection_hdl = std::weak_ptr<void>; std::string = std::__cxx11::basic_string<char>]’ #12 56.92 219 | void endpoint<connection,config>::send(connection_hdl hdl, std::string const & payload, #12 56.92 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:219:80: note: no known conversion for argument 2 from ‘glz::expected<std::__cxx11::basic_string<char>, glz::error_ctx>’ {aka ‘std::expected<std::__cxx11::basic_string<char>, glz::error_ctx>’} to ‘const std::string&’ {aka ‘const std::__cxx11::basic_string<char>&’} #12 56.92 219 | void endpoint<connection,config>::send(connection_hdl hdl, std::string const & payload, #12 56.92 | ~~~~~~~~~~~~~~~~~~~~^~~~~~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:142:6: note: candidate: ‘void websocketpp::endpoint<connection, config>::send(websocketpp::connection_hdl, const void*, size_t, websocketpp::frame::opcode::value, std::error_code&) [with connection = websocketpp::connection<websocketpp::config::asio>; config = websocketpp::config::asio; websocketpp::connection_hdl = std::weak_ptr<void>; size_t = long unsigned int]’ #12 56.92 142 | void endpoint<connection,config>::send(connection_hdl hdl, void const * payload, #12 56.92 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:142:6: note: candidate expects 5 arguments, 3 provided #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:228:6: note: candidate: ‘void websocketpp::endpoint<connection, config>::send(websocketpp::connection_hdl, const void*, size_t, websocketpp::frame::opcode::value) [with connection = websocketpp::connection<websocketpp::config::asio>; config = websocketpp::config::asio; websocketpp::connection_hdl = std::weak_ptr<void>; size_t = long unsigned int]’ #12 56.92 228 | void endpoint<connection,config>::send(connection_hdl hdl, void const * payload, #12 56.92 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:228:6: note: candidate expects 4 arguments, 3 provided #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:151:6: note: candidate: ‘void websocketpp::endpoint<connection, config>::send(websocketpp::connection_hdl, message_ptr, std::error_code&) [with connection = websocketpp::connection<websocketpp::config::asio>; config = websocketpp::config::asio; websocketpp::connection_hdl = std::weak_ptr<void>; message_ptr = std::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >]’ #12 56.92 151 | void endpoint<connection,config>::send(connection_hdl hdl, message_ptr msg, #12 56.92 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:151:72: note: no known conversion for argument 2 from ‘glz::expected<std::__cxx11::basic_string<char>, glz::error_ctx>’ {aka ‘std::expected<std::__cxx11::basic_string<char>, glz::error_ctx>’} to ‘websocketpp::endpoint<websocketpp::connection<websocketpp::config::asio>, websocketpp::config::asio>::message_ptr’ {aka ‘std::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >’} #12 56.92 151 | void endpoint<connection,config>::send(connection_hdl hdl, message_ptr msg, #12 56.92 | ~~~~~~~~~~~~^~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:237:6: note: candidate: ‘void websocketpp::endpoint<connection, config>::send(websocketpp::connection_hdl, message_ptr) [with connection = websocketpp::connection<websocketpp::config::asio>; config = websocketpp::config::asio; websocketpp::connection_hdl = std::weak_ptr<void>; message_ptr = std::shared_ptr<websocketpp::message_buffer::message<websocketpp::message_buffer::alloc::con_msg_manager> >]’ #12 56.92 237 | void endpoint<connection,config>::send(connection_hdl hdl, message_ptr msg) { #12 56.92 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ #12 56.92 ../subprojects/websocketpp-0.8.2/websocketpp/impl/endpoint_impl.hpp:237:6: note: candidate expects 2 arguments, 3 provided #12 56.92 ../src/websocket.cpp: In member function ‘void broadcast_server::on_open_signal(websocketpp::connection_hdl, conn_type)’: #12 56.92 ../src/websocket.cpp:136:49: warning: unused parameter ‘signal_type’ [-Wunused-parameter] #12 56.92 136 | conn_type signal_type) { #12 56.92 | ~~~~~~~~~~^~~~~~~~~~~ #12 58.65 [7/21] Compiling C++ object spectrumserver.p/src_fft.cpp.o #12 58.65 In file included from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/connection.hpp:31, #12 58.65 from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/endpoint.hpp:32, #12 58.65 from ../subprojects/websocketpp-0.8.2/websocketpp/config/asio_no_tls.hpp:32, #12 58.65 from ../src/websocket.h:4, #12 58.65 from ../src/spectrumserver.h:18, #12 58.65 from ../src/fft.cpp:2: #12 58.65 ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/base.hpp:82:10: warning: ‘template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage’ is deprecated [-Wdeprecated-declarations] #12 58.65 82 | lib::aligned_storage<size>::type m_storage; #12 58.65 | ^~~~~~~~~~~~~~~ #12 58.65 In file included from /usr/include/c++/13/bits/move.h:37, #12 58.65 from /usr/include/c++/13/bits/stl_function.h:60, #12 58.65 from /usr/include/c++/13/functional:49, #12 58.65 from ../src/fft.h:4, #12 58.65 from ../src/fft.cpp:1: #12 58.65 /usr/include/c++/13/type_traits:2099:5: note: declared here #12 58.65 2099 | aligned_storage #12 58.65 | ^~~~~~~~~~~~~~~ #12 58.65 ../src/fft.cpp: In member function ‘void broadcast_server::fft_task()’: #12 58.65 ../src/fft.cpp:48:10: warning: variable ‘prev_data’ set but not used [-Wunused-but-set-variable] #12 58.65 48 | auto prev_data = std::chrono::steady_clock::now(); #12 58.65 | ^~~~~~~~~ #12 61.75 [8/21] Compiling C++ object spectrumserver.p/src_http.cpp.o #12 61.76 In file included from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/connection.hpp:31, #12 61.76 from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/endpoint.hpp:32, #12 61.76 from ../subprojects/websocketpp-0.8.2/websocketpp/config/asio_no_tls.hpp:32, #12 61.76 from ../src/websocket.h:4, #12 61.76 from ../src/spectrumserver.h:18, #12 61.76 from ../src/http.cpp:2: #12 61.76 ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/base.hpp:82:10: warning: ‘template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage’ is deprecated [-Wdeprecated-declarations] #12 61.76 82 | lib::aligned_storage<size>::type m_storage; #12 61.76 | ^~~~~~~~~~~~~~~ #12 61.76 In file included from /usr/include/c++/13/bits/char_traits.h:50, #12 61.76 from /usr/include/c++/13/string:42, #12 61.76 from ../src/compression.h:4, #12 61.76 from ../src/http.cpp:1: #12 61.76 /usr/include/c++/13/type_traits:2099:5: note: declared here #12 61.76 2099 | aligned_storage #12 61.76 | ^~~~~~~~~~~~~~~ #12 62.57 [9/21] Compiling C++ object spectrumserver.p/src_waterfall.cpp.o #12 62.64 [10/21] Compiling C++ object spectrumserver.p/src_spectrumserver.cpp.o #12 62.64 FAILED: spectrumserver.p/src_spectrumserver.cpp.o #12 62.64 c++ -Ispectrumserver.p -I. -I.. -Isubprojects/websocketpp-0.8.2 -I../subprojects/websocketpp-0.8.2 -Isubprojects/tomlplusplus-3.4.0/include -I../subprojects/tomlplusplus-3.4.0/include -I../subprojects/glaze/include -Isubprojects/glaze/__CMake_build -I../subprojects/glaze/__CMake_build -Isubprojects/glaze -I../subprojects/glaze -I/usr/include -I/usr/include/opus -I/usr/include/x86_64-linux-gnu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -g -march=native -ggdb3 -std=c++23 -Wall -Wextra -Wpedantic -DHAS_LIQUID -DHAS_LIBOPUS -DCLFFT -Wno-missing-braces -DTOML_HEADER_ONLY=0 -DTOML_SHARED_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_ALL_NO_LIB -fopenmp -pthread -MD -MQ spectrumserver.p/src_spectrumserver.cpp.o -MF spectrumserver.p/src_spectrumserver.cpp.o.d -o spectrumserver.p/src_spectrumserver.cpp.o -c ../src/spectrumserver.cpp #12 62.64 In file included from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/connection.hpp:31, #12 62.64 from ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/endpoint.hpp:32, #12 62.64 from ../subprojects/websocketpp-0.8.2/websocketpp/config/asio_no_tls.hpp:32, #12 62.64 from ../src/websocket.h:4, #12 62.64 from ../src/spectrumserver.h:18, #12 62.64 from ../src/spectrumserver.cpp:1: #12 62.64 ../subprojects/websocketpp-0.8.2/websocketpp/transport/asio/base.hpp:82:10: warning: ‘template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage’ is deprecated [-Wdeprecated-declarations] #12 62.64 82 | lib::aligned_storage<size>::type m_storage; #12 62.64 | ^~~~~~~~~~~~~~~ #12 62.64 In file included from /usr/include/c++/13/bits/stl_pair.h:60, #12 62.64 from /usr/include/c++/13/bits/stl_algobase.h:64, #12 62.64 from /usr/include/c++/13/deque:62, #12 62.64 from ../src/spectrumserver.h:4: #12 62.64 /usr/include/c++/13/type_traits:2099:5: note: declared here #12 62.64 2099 | aligned_storage #12 62.64 | ^~~~~~~~~~~~~~~ #12 62.64 ../src/spectrumserver.cpp: In member function ‘void broadcast_server::update_websdr_list()’: #12 62.64 ../src/spectrumserver.cpp:300:54: error: conversion from ‘glz::expected<std::__cxx11::basic_string<char>, glz::error_ctx>’ {aka ‘std::expected<std::__cxx11::basic_string<char>, glz::error_ctx>’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested #12 62.64 300 | std::string serialized_json = glz::write_json(json_data); #12 62.64 | ~~~~~~~~~~~~~~~^~~~~~~~~~~ #12 62.64 ../src/spectrumserver.cpp: In function ‘int main(int, char**)’: #12 62.64 ../src/spectrumserver.cpp:432:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] #12 62.64 432 | freopen(NULL, "rb", stdin); #12 62.64 | ~~~~~~~^~~~~~~~~~~~~~~~~~~ #12 65.19 [11/21] Compiling C++ object spectrumserver.p/src_signal.cpp.o #12 65.19 ninja: build stopped: subcommand failed. #12 65.19 INFO: autodetecting backend as ninja #12 65.19 INFO: calculating backend command to run: /usr/bin/ninja -C /PhantomSDR-Plus/build #12 65.24 Failed to build the main application. Please check for errors and try again. #12 ERROR: process "/bin/sh -c cd PhantomSDR-Plus && chmod +x install.sh && ./install.sh" did not complete successfully: exit code: 1 ------ > [phantomsdrplus 8/10] RUN cd PhantomSDR-Plus && chmod +x install.sh && ./install.sh: 62.64 | ~~~~~~~~~~~~~~~^~~~~~~~~~~ 62.64 ../src/spectrumserver.cpp: In function ‘int main(int, char**)’: 62.64 ../src/spectrumserver.cpp:432:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 62.64 432 | freopen(NULL, "rb", stdin); 62.64 | ~~~~~~~^~~~~~~~~~~~~~~~~~~ 65.19 [11/21] Compiling C++ object spectrumserver.p/src_signal.cpp.o 65.19 ninja: build stopped: subcommand failed. 65.19 INFO: autodetecting backend as ninja 65.19 INFO: calculating backend command to run: /usr/bin/ninja -C /PhantomSDR-Plus/build 65.24 Failed to build the main application. Please check for errors and try again. ------ failed to solve: process "/bin/sh -c cd PhantomSDR-Plus && chmod +x install.sh && ./install.sh" did not complete successfully: exit code: 1
I fixed it using glaze 2.4.0
Yea it works by using old glaze version, fixed in newest version aswell
How can I fix this?