mmafpga@labpc:~/build-nmos-cpp$ make build
Docker image version: 1.2A-0fb6b51
docker build -t nmos-cpp:1.2A-0fb6b51 --build-arg makemt=9 .
[+] Building 8.9s (11/24) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 6.52kB 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) 0.0s
=> WARN: MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 2) 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:focal 0.9s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 60.26kB 0.0s
=> CACHED [stage1-build 1/15] FROM docker.io/library/ubuntu:focal@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428 0.0s
=> => resolve docker.io/library/ubuntu:focal@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe1538821 0.0s
=> CACHED [stage1-build 2/15] RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get install -y -- 0.0s
=> CACHED [stage1-build 3/15] RUN python3 -m pip install --upgrade pip setuptools wheel cmake conan~=1.47 0.0s
=> CACHED [stage1-build 4/15] RUN cd /home && mkdir certs && git config --global http.sslVerify false && git c 0.0s
=> CACHED [stage1-build 5/15] RUN cd /home/ && curl --output - -s -k https://codeload.github.com/sony/nmos-cpp/tar 0.0s
=> CACHED [stage1-build 6/15] RUN cd /home/ && curl --output - -s -k https://codeload.github.com/apple-oss-distrib 0.0s
=> ERROR [stage1-build 7/15] RUN mkdir /home/nmos-cpp/Development/build && cd /home/nmos-cpp/Development/build 7.9s
------
> [stage1-build 7/15] RUN mkdir /home/nmos-cpp/Development/build && cd /home/nmos-cpp/Development/build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING="MinSizeRel" -DCMAKE_CONFIGURATION_TYPES:STRING="MinSizeRel" -DCXXFLAGS:STRING="-Os" -DNMOS_CPP_USE_AVAHI:BOOL="0" /home/nmos-cpp/Development/build .. && if [ -n "9" ]; then echo "Making multi-threaded with 9 jobs"; make -j9; else echo "Making single-threaded"; make; fi:
0.426 CMake Warning:
0.426 Ignoring extra path from command line:
0.426
0.426 "/home/nmos-cpp/Development/build"
0.426
0.426
0.426 CMake Warning:
0.426 Ignoring extra path from command line:
0.426
0.426 "/home/nmos-cpp/Development/build"
0.426
0.426
0.673 -- The C compiler identification is GNU 9.4.0
0.899 -- The CXX compiler identification is GNU 9.4.0
0.915 -- Detecting C compiler ABI info
0.994 -- Detecting C compiler ABI info - done
1.014 -- Check for working C compiler: /usr/bin/cc - skipped
1.015 -- Detecting C compile features
1.016 -- Detecting C compile features - done
1.038 -- Detecting CXX compiler ABI info
1.116 -- Detecting CXX compiler ABI info - done
1.138 -- Check for working CXX compiler: /usr/bin/c++ - skipped
1.139 -- Detecting CXX compile features
1.140 -- Detecting CXX compile features - done
1.148 -- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
1.594 -- Conan: checking conan executable
1.596 -- Conan: Found program /usr/local/bin/conan
2.248 -- Conan: Version found Conan version 1.66.0
2.249 -- Conan: Automatic detection of conan settings from cmake
2.331 -- Conan: Settings= -s;build_type=MinSizeRel;-s;compiler=gcc;-s;compiler.version=9;-s;compiler.libcxx=libstdc++11
2.332 -- Conan: checking conan executable
2.332 -- Conan: Found program /usr/local/bin/conan
2.716 -- Conan: Version found Conan version 1.66.0
2.716 -- Conan executing: /usr/local/bin/conan install /home/nmos-cpp/Development/conanfile.txt -s build_type=MinSizeRel -s compiler=gcc -s compiler.version=9 -s compiler.libcxx=libstdc++11 -g=cmake_find_package -g=cmake --build=missing
3.068
3.081 Auto detecting your dev setup to initialize the default profile (/root/.conan/profiles/default)
3.081 CC and CXX: /usr/bin/cc, /usr/bin/c++
3.081 No compiler was detected (one may not be needed)
3.081 Default settings
3.081 os=Linux
3.081 os_build=Linux
3.081 arch=x86_64
3.081 arch_build=x86_64
3.081 build_type=Release
3.081 *** You can change them in /root/.conan/profiles/default ***
3.081 *** Or override with -s compiler='other' -s ...s***
3.081
3.081
3.125 Configuration:
3.125 [settings]
3.125 arch=x86_64
3.125 arch_build=x86_64
3.125 build_type=MinSizeRel
3.125 compiler=gcc
3.125 compiler.libcxx=libstdc++11
3.125 compiler.version=9
3.125 os=Linux
3.125 os_build=Linux
3.125 [options]
3.125 [build_requires]
3.125 [env]
3.125
3.127 boost/1.80.0: Not found in local cache, looking in remotes...
3.127 boost/1.80.0: Trying with 'conancenter'...
3.526 Downloading conanmanifest.txt
3.541 Downloading conanfile.py
3.576 Downloading conan_export.tgz
3.601 boost/1.80.0: Downloaded recipe revision 0
3.691 zlib/1.2.13: Not found in local cache, looking in remotes...
3.691 zlib/1.2.13: Trying with 'conancenter'...
3.705 Downloading conanmanifest.txt
3.716 Downloading conanfile.py
3.726 Downloading conan_export.tgz
3.737 zlib/1.2.13: Downloaded recipe revision 0
3.741 bzip2/1.0.8: Not found in local cache, looking in remotes...
3.741 bzip2/1.0.8: Trying with 'conancenter'...
3.752 Downloading conanmanifest.txt
3.763 Downloading conanfile.py
3.774 Downloading conan_export.tgz
3.787 bzip2/1.0.8: Downloaded recipe revision 0
3.794 libbacktrace/cci.20210118: Not found in local cache, looking in remotes...
3.794 libbacktrace/cci.20210118: Trying with 'conancenter'...
3.807 Downloading conanmanifest.txt
3.823 Downloading conanfile.py
3.835 Downloading conan_export.tgz
3.849 libbacktrace/cci.20210118: Downloaded recipe revision 0
3.875 cpprestsdk/2.10.18: Not found in local cache, looking in remotes...
3.875 cpprestsdk/2.10.18: Trying with 'conancenter'...
3.888 Downloading conanmanifest.txt
3.900 Downloading conanfile.py
3.911 Downloading conan_export.tgz
3.927 cpprestsdk/2.10.18: Downloaded recipe revision 0
3.932 openssl/1.1.1s: Not found in local cache, looking in remotes...
3.932 openssl/1.1.1s: Trying with 'conancenter'...
3.943 Downloading conanmanifest.txt
3.953 Downloading conanfile.py
3.965 Downloading conan_export.tgz
3.979 openssl/1.1.1s: Downloaded recipe revision 0
3.996 websocketpp/0.8.2: Not found in local cache, looking in remotes...
3.996 websocketpp/0.8.2: Trying with 'conancenter'...
4.007 Downloading conanmanifest.txt
4.024 Downloading conanfile.py
4.035 Downloading conan_export.tgz
4.046 websocketpp/0.8.2: Downloaded recipe revision 0
4.052 json-schema-validator/2.2.0: Not found in local cache, looking in remotes...
4.052 json-schema-validator/2.2.0: Trying with 'conancenter'...
4.062 Downloading conanmanifest.txt
4.073 Downloading conanfile.py
4.094 Downloading conan_export.tgz
4.108 json-schema-validator/2.2.0: Downloaded recipe revision 0
4.121 nlohmann_json/3.11.2: Not found in local cache, looking in remotes...
4.121 nlohmann_json/3.11.2: Trying with 'conancenter'...
4.135 Downloading conanmanifest.txt
4.145 Downloading conanfile.py
4.157 Downloading conan_export.tgz
4.172 nlohmann_json/3.11.2: Downloaded recipe revision 0
4.484 b2/5.2.1: Not found in local cache, looking in remotes...
4.484 b2/5.2.1: Trying with 'conancenter'...
4.498 Downloading conanmanifest.txt
4.510 Downloading conanfile.py
4.524 Downloading conan_export.tgz
4.545 b2/5.2.1: Downloaded recipe revision 0
4.591 Version ranges solved
4.591 b2/* versions found in 'conancenter' remote
4.591 Version range '>=5.2 <6' required by 'boost/1.80.0' resolved to 'b2/5.2.1' in remote 'conancenter'
4.591
4.592 conanfile.txt: Installing package
4.593 Requirements
4.593 boost/1.80.0 from 'conancenter' - Downloaded
4.593 bzip2/1.0.8 from 'conancenter' - Downloaded
4.593 cpprestsdk/2.10.18 from 'conancenter' - Downloaded
4.593 json-schema-validator/2.2.0 from 'conancenter' - Downloaded
4.593 libbacktrace/cci.20210118 from 'conancenter' - Downloaded
4.593 nlohmann_json/3.11.2 from 'conancenter' - Downloaded
4.593 openssl/1.1.1s from 'conancenter' - Downloaded
4.593 websocketpp/0.8.2 from 'conancenter' - Downloaded
4.593 zlib/1.2.13 from 'conancenter' - Downloaded
4.593 Packages
4.593 boost/1.80.0:a66a8cded815a9bd932198478474b250cd2a2c64 - Build
4.593 bzip2/1.0.8:76faa41a16fd89172cd6ea7fad017c8fd6699db8 - Build
4.593 cpprestsdk/2.10.18:c30cfbc787e224f1d49307345c79fe672f81ed02 - Build
4.594 json-schema-validator/2.2.0:3d03b92b56d7bf82a0bb5ac4f61c9f231c21e8e7 - Build
4.594 libbacktrace/cci.20210118:e60876f58dac8db87a7e68489412052d57dc9f6b - Build
4.594 nlohmann_json/3.11.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
4.594 openssl/1.1.1s:e60876f58dac8db87a7e68489412052d57dc9f6b - Build
4.594 websocketpp/0.8.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
4.594 zlib/1.2.13:e60876f58dac8db87a7e68489412052d57dc9f6b - Build
4.594 Build requirements
4.594 b2/5.2.1 from 'conancenter' - Downloaded
4.594 Build requirements packages
4.594 b2/5.2.1:4db1be536558d833e52e862fd84d64d75c2b3656 - Download
4.594
4.594 Installing (downloading, building) binaries...
4.595 b2/5.2.1: Retrieving package 4db1be536558d833e52e862fd84d64d75c2b3656 from remote 'conancenter'
4.628 Downloading conanmanifest.txt
4.647 Downloading conaninfo.txt
4.660 Downloading conan_package.tgz
4.895 b2/5.2.1: Package installed 4db1be536558d833e52e862fd84d64d75c2b3656
4.895 b2/5.2.1: Downloaded package revision 0
4.895 nlohmann_json/3.11.2: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conancenter'
4.917 Downloading conanmanifest.txt
4.928 Downloading conaninfo.txt
4.937 Downloading conan_package.tgz
5.014 nlohmann_json/3.11.2: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
5.014 nlohmann_json/3.11.2: Downloaded package revision 0
5.014 websocketpp/0.8.2: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conancenter'
5.038 Downloading conanmanifest.txt
5.051 Downloading conaninfo.txt
5.065 Downloading conan_package.tgz
5.140 websocketpp/0.8.2: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
5.140 websocketpp/0.8.2: Downloaded package revision 0
5.154 Downloading conan_sources.tgz
5.165 bzip2/1.0.8: Configuring sources in /root/.conan/data/bzip2/1.0.8/_/_/source/src
7.467 bzip2/1.0.8:
7.510 bzip2/1.0.8: Copying sources to build folder
7.520 bzip2/1.0.8: Building your package in /root/.conan/data/bzip2/1.0.8/_/_/build/76faa41a16fd89172cd6ea7fad017c8fd6699db8
7.520 bzip2/1.0.8: Generator txt created conanbuildinfo.txt
7.520 bzip2/1.0.8: Calling generate()
7.550 bzip2/1.0.8: Preset 'minsizerel' added to CMakePresets.json. Invoke it manually using 'cmake --preset minsizerel'
7.550 bzip2/1.0.8: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/root/.conan/data/bzip2/1.0.8/_/_/build/76faa41a16fd89172cd6ea7fad017c8fd6699db8/build/MinSizeRel/generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=MinSizeRel'
7.551 bzip2/1.0.8: Aggregating env generators
7.551 bzip2/1.0.8: Calling build()
7.551 bzip2/1.0.8: apply_conandata_patches(): No patches defined in conandata
7.551 bzip2/1.0.8: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/root/.conan/data/bzip2/1.0.8/_/_/build/76faa41a16fd89172cd6ea7fad017c8fd6699db8/build/MinSizeRel/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/root/.conan/data/bzip2/1.0.8/_/_/package/76faa41a16fd89172cd6ea7fad017c8fd6699db8" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="MinSizeRel" "/root/.conan/data/bzip2/1.0.8/_/_/build/76faa41a16fd89172cd6ea7fad017c8fd6699db8/src/.."
7.623 CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
7.623 Compatibility with CMake < 3.5 has been removed from CMake.
7.623
7.623 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
7.623 to tell CMake that the project requires at least <min> but has been updated
7.623 to work with policies introduced by <max> or earlier.
7.623
7.623 Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
7.623
7.623
7.623 -- Configuring incomplete, errors occurred!
7.627 bzip2/1.0.8:
7.629 WARN: **************************************************
7.629 WARN: *** Conan 1 is legacy and on a deprecation path **
7.629 WARN: *********** Please upgrade to Conan 2 ************
7.629 WARN: **************************************************
7.629 ERROR: Not able to automatically detect '/usr/bin/cc' version
7.629 WARN: Remotes registry file missing, creating default one in /root/.conan/remotes.json
7.629 WARN: boost/1.80.0: requirement zlib/[>=1.2.11 <2] overridden by your conanfile to zlib/1.2.13
7.629 WARN: cpprestsdk/2.10.18: requirement boost/1.83.0 overridden by your conanfile to boost/1.80.0
7.629 WARN: cpprestsdk/2.10.18: requirement openssl/[>=1.1 <4] overridden by your conanfile to openssl/1.1.1s
7.629 WARN: cpprestsdk/2.10.18: requirement zlib/[>=1.2.11 <2] overridden by your conanfile to zlib/1.2.13
7.629 WARN: websocketpp/0.8.2: requirement openssl/[>=1.1 <4] overridden by cpprestsdk/2.10.18 to openssl/1.1.1s
7.629 WARN: websocketpp/0.8.2: requirement zlib/[>=1.2.11 <2] overridden by cpprestsdk/2.10.18 to zlib/1.2.13
7.629 WARN: websocketpp/0.8.2: requirement boost/1.83.0 overridden by cpprestsdk/2.10.18 to boost/1.80.0
7.629 WARN: json-schema-validator/2.2.0: requirement nlohmann_json/3.10.5 overridden by your conanfile to nlohmann_json/3.11.2
7.629 bzip2/1.0.8: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
7.629 bzip2/1.0.8: ERROR: Package '76faa41a16fd89172cd6ea7fad017c8fd6699db8' build failed
7.629 bzip2/1.0.8: WARN: Build folder /root/.conan/data/bzip2/1.0.8/_/_/build/76faa41a16fd89172cd6ea7fad017c8fd6699db8/build/MinSizeRel
7.629 ERROR: bzip2/1.0.8: Error in build() method, line 63
7.629 cmake.configure(build_script_folder=os.path.join(self.source_folder, os.pardir))
7.629 ConanException: Error 1 while executing cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/root/.conan/data/bzip2/1.0.8/_/_/build/76faa41a16fd89172cd6ea7fad017c8fd6699db8/build/MinSizeRel/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/root/.conan/data/bzip2/1.0.8/_/_/package/76faa41a16fd89172cd6ea7fad017c8fd6699db8" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="MinSizeRel" "/root/.conan/data/bzip2/1.0.8/_/_/build/76faa41a16fd89172cd6ea7fad017c8fd6699db8/src/.."
7.688 CMake Error at build/conan.cmake:540 (message):
7.688 Conan install failed='1'
7.688 Call Stack (most recent call first):
7.688 build/conan.cmake:882 (old_conan_cmake_install)
7.688 cmake/NmosCppConan.cmake:46 (conan_cmake_run)
7.688 cmake/NmosCppCommon.cmake:5 (include)
7.688 CMakeLists.txt:18 (include)
7.688
7.688
7.689 -- Configuring incomplete, errors occurred!
------
3 warnings found (use docker --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
- MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 2)
- SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE") (line 7)
Dockerfile:46
--------------------
45 | ## Build Sony nmos-cpp from sources
46 | >>> RUN mkdir /home/nmos-cpp/Development/build && \
47 | >>> cd /home/nmos-cpp/Development/build && \
48 | >>> cmake \
49 | >>> -G "Unix Makefiles" \
50 | >>> -DCMAKE_BUILD_TYPE:STRING="MinSizeRel" \
51 | >>> -DCMAKE_CONFIGURATION_TYPES:STRING="MinSizeRel" \
52 | >>> -DCXXFLAGS:STRING="-Os" \
53 | >>> -DNMOS_CPP_USE_AVAHI:BOOL="0" \
54 | >>> /home/nmos-cpp/Development/build .. && \
55 | >>> if [ -n "$makemt" ]; then echo "Making multi-threaded with $makemt jobs"; make -j$makemt; else echo "Making single-threaded"; make; fi
56 |
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c mkdir /home/nmos-cpp/Development/build && cd /home/nmos-cpp/Development/build && cmake -G \"Unix Makefiles\" -DCMAKE_BUILD_TYPE:STRING=\"MinSizeRel\" -DCMAKE_CONFIGURATION_TYPES:STRING=\"MinSizeRel\" -DCXXFLAGS:STRING=\"-Os\" -DNMOS_CPP_USE_AVAHI:BOOL=\"0\" /home/nmos-cpp/Development/build .. && if [ -n \"$makemt\" ]; then echo \"Making multi-threaded with $makemt jobs\"; make -j$makemt; else echo \"Making single-threaded\"; make; fi" did not complete successfully: exit code: 1
make: *** [Makefile:15: build] Error 1
I am trying to run
make buildto build the container locally as described in the README, but I am encountering an error with CMake and Conan used by the repo. I am using an unmodified local repo and am using a fully up-to-date Ubuntu 24.04 system. Help parsing this error would be appreciated.