Skip to content

The repository does not build #2

@arseniy-gl

Description

@arseniy-gl
docker info
Client:
 Version:    28.1.1
 Context:    desktop-linux
 Debug Mode: false
git clone https://github.com/newcloudtechnologies/tsnative.git
Cloning into 'tsnative'...
remote: Enumerating objects: 16181, done.
remote: Counting objects: 100% (16181/16181), done.
remote: Compressing objects: 100% (4279/4279), done.
remote: Total 16181 (delta 11635), reused 15924 (delta 11570), pack-reused 0 (from 0)
Receiving objects: 100% (16181/16181), 3.12 MiB | 8.44 MiB/s, done.
Resolving deltas: 100% (11635/11635), done.
❯ cd ./tsnative
❯ docker build --tag=tsnative .
[+] Building 135.3s (17/26)                                                                                                                                          docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                                                 0.0s
 => => transferring dockerfile: 2.20kB                                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/ubuntu:24.04                                                                                                                      5.4s
 => [internal] load .dockerignore                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                      0.0s
 => [ 1/22] FROM docker.io/library/ubuntu:24.04@sha256:a08e551cb33850e4740772b38217fc1796a66da2506d312abe51acda354ff061                                                              2.0s
 => => resolve docker.io/library/ubuntu:24.04@sha256:a08e551cb33850e4740772b38217fc1796a66da2506d312abe51acda354ff061                                                                0.0s
 => => sha256:e3bd89a9dac501ff564b39359113adad7c3d2813d5e04eab53ee10e20a6793a7 28.86MB / 28.86MB                                                                                     1.7s
 => => extracting sha256:e3bd89a9dac501ff564b39359113adad7c3d2813d5e04eab53ee10e20a6793a7                                                                                            0.4s
 => [internal] load build context                                                                                                                                                    0.1s
 => => transferring context: 6.41MB                                                                                                                                                  0.1s
 => [ 2/22] RUN apt-get update && apt-get upgrade -y &&     apt-get install -y     git     curl     cmake     build-essential     ccache     pkg-config     binutils-dev     zlib1  50.5s
 => [ 3/22] RUN apt install -y software-properties-common &&     add-apt-repository ppa:deadsnakes/ppa &&     apt update &&     apt-get install -y     python3.11                   46.7s
 => [ 4/22] RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11                                                                                                           4.0s
 => [ 5/22] RUN python3.11 -m pip install --upgrade pip setuptools wheel                                                                                                             0.6s
 => [ 6/22] RUN python3.11 -m pip install conan==1.52 --ignore-installed                                                                                                             4.9s
 => [ 7/22] RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&     apt-get install -y nodejs                                                                          18.2s
 => [ 8/22] COPY . /tsnative                                                                                                                                                         0.1s
 => [ 9/22] WORKDIR /tsnative                                                                                                                                                        0.0s
 => [10/22] RUN conan config install settings.yml                                                                                                                                    0.3s
 => [11/22] RUN conan config install -tf profiles profiles/linux_x86_64_gcc9                                                                                                         0.3s
 => [12/22] RUN conan config install -tf profiles profiles/linux_x86_64_gcc9_debug                                                                                                   0.3s
 => ERROR [13/22] RUN conan create 3rdparty/zlib 1.2.12@ -pr:b linux_x86_64_gcc9 -pr:h linux_x86_64_gcc9                                                                             1.9s
------
 > [13/22] RUN conan create 3rdparty/zlib 1.2.12@ -pr:b linux_x86_64_gcc9 -pr:h linux_x86_64_gcc9:
0.224 WARN: Remotes registry file missing, creating default one in /root/.conan/remotes.json
0.224 Auto detecting your dev setup to initialize the default profile (/root/.conan/profiles/default)
0.236 Found gcc 13
0.236 gcc>=5, using the major as version
0.236
0.236 ************************* WARNING: GCC OLD ABI COMPATIBILITY ***********************
0.236
0.236 Conan detected a GCC version > 5 but has adjusted the 'compiler.libcxx' setting to
0.236 'libstdc++' for backwards compatibility.
0.236 Your compiler is likely using the new CXX11 ABI by default (libstdc++11).
0.236
0.236 If you want Conan to use the new ABI for the default profile, run:
0.236
0.236     $ conan profile update settings.compiler.libcxx=libstdc++11 default
0.236
0.236 Or edit '/root/.conan/profiles/default' and set compiler.libcxx=libstdc++11
0.236
0.236 ************************************************************************************
0.236
0.236
0.236
0.236 Default settings
0.236 	os=Linux
0.236 	os_build=Linux
0.236 	arch=armv8
0.236 	arch_build=armv8
0.236 	compiler=gcc
0.236 	compiler.version=13
0.236 	compiler.libcxx=libstdc++
0.236 	build_type=Release
0.236 *** You can change them in /root/.conan/profiles/default ***
0.236 *** Or override with -s compiler='other' -s ...s***
0.236
0.236
0.256 Exporting package recipe
0.257 zlib/1.2.12 exports: File 'conandata.yml' found. Exporting it...
0.257 zlib/1.2.12 exports: Copied 1 '.yml' file: conandata.yml
0.257 zlib/1.2.12: Calling export_sources()
0.257 zlib/1.2.12 export_sources() method: Copied 1 '.txt' file: CMakeLists.txt
0.257 zlib/1.2.12 export_sources() method: Copied 1 '.patch' file: 0001-fix-cmake.patch
0.257 zlib/1.2.12: A new conanfile.py version was exported
0.257 zlib/1.2.12: Folder: /root/.conan/data/zlib/1.2.12/_/_/export
0.257 zlib/1.2.12: Exported revision: 8952c9b9165db7105389b66de84531bb
0.258 Configuration (profile_host):
0.258 [settings]
0.258 arch=x86_64
0.258 arch_build=x86_64
0.258 build_type=Release
0.258 compiler=gcc
0.258 compiler.libcxx=libstdc++11
0.258 compiler.version=9
0.258 os=Linux
0.258 os_build=Linux
0.258 target_abi=x86_64-linux-gnu
0.258 [options]
0.258 [build_requires]
0.258 [env]
0.258 CC=gcc-9
0.258 CONAN_V2_MODE=true
0.258 CXX=g++-9
0.258 Configuration (profile_build):
0.258 [settings]
0.258 arch=x86_64
0.258 arch_build=x86_64
0.258 build_type=Release
0.258 compiler=gcc
0.258 compiler.libcxx=libstdc++11
0.258 compiler.version=9
0.258 os=Linux
0.258 os_build=Linux
0.258 target_abi=x86_64-linux-gnu
0.258 [options]
0.258 [build_requires]
0.258 [env]
0.258 CC=gcc-9
0.258 CONAN_V2_MODE=true
0.258 CXX=g++-9
0.260 zlib/1.2.12: Forced build from source
0.260 Installing package: zlib/1.2.12
0.260 Requirements
0.260     zlib/1.2.12 from local cache - Cache
0.260 Packages
0.260     zlib/1.2.12:6af9cc7cb931c5ad942174fd7838eb655717c709 - Build
0.260
0.260 Installing (downloading, building) binaries...
0.261 zlib/1.2.12: Configuring sources in /root/.conan/data/zlib/1.2.12/_/_/source
0.261 zlib/1.2.12: Cloning git repo
1.546 zlib/1.2.12: Copying sources to build folder
1.558 zlib/1.2.12: Building your package in /root/.conan/data/zlib/1.2.12/_/_/build/6af9cc7cb931c5ad942174fd7838eb655717c709
1.558 zlib/1.2.12: Generator cmake created conanbuildinfo.cmake
1.558 zlib/1.2.12: Aggregating env generators
1.558 zlib/1.2.12: Calling build()
1.616 -- The C compiler identification is GNU 9.5.0
1.650 -- The CXX compiler identification is GNU 9.5.0
1.659 -- Detecting C compiler ABI info
1.701 -- Detecting C compiler ABI info - done
1.707 -- Check for working C compiler: /usr/bin/gcc-9 - skipped
1.707 -- Detecting C compile features
1.707 -- Detecting C compile features - done
1.714 -- Detecting CXX compiler ABI info
1.754 -- Detecting CXX compiler ABI info - done
1.759 -- Check for working CXX compiler: /usr/bin/g++-9 - skipped
1.759 -- Detecting CXX compile features
1.760 -- Detecting CXX compile features - done
1.760 -- Conan: called by CMake conan helper
1.760 -- Conan: called inside local cache
1.760 -- Conan: Adjusting output directories
1.761 -- Conan: Using cmake global configuration
1.761 -- Conan: Adjusting language standard
1.761 -- Conan: Adjusting fPIC flag (ON)
1.761 -- Conan: Compiler GCC>=5, checking major version 9
1.761 -- Conan: Checking correct version: 9
1.762 -- Looking for sys/types.h
1.775 -- Looking for sys/types.h - not found
1.775 -- Looking for stdint.h
1.787 -- Looking for stdint.h - not found
1.787 -- Looking for stddef.h
1.799 -- Looking for stddef.h - not found
1.799 -- Check size of off64_t
1.811 -- Check size of off64_t - failed
1.811 -- Looking for fseeko
1.823 -- Looking for fseeko - not found
1.823 -- Looking for unistd.h
1.834 -- Looking for unistd.h - not found
1.834 -- Renaming
1.834 --     /root/.conan/data/zlib/1.2.12/_/_/build/6af9cc7cb931c5ad942174fd7838eb655717c709/source_subfolder/zconf.h
1.834 -- to 'zconf.h.included' because this file is included with zlib
1.834 -- but CMake generates it automatically in the build directory.
1.836 -- Configuring done (0.2s)
1.838 -- Generating done (0.0s)
1.839 CMake Warning:
1.839   Manually-specified variables were not used by the project:
1.839
1.839     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
1.839     CMAKE_INSTALL_BINDIR
1.839     CMAKE_INSTALL_DATAROOTDIR
1.839     CMAKE_INSTALL_INCLUDEDIR
1.839     CMAKE_INSTALL_LIBDIR
1.839     CMAKE_INSTALL_LIBEXECDIR
1.839     CMAKE_INSTALL_OLDINCLUDEDIR
1.839     CMAKE_INSTALL_SBINDIR
1.839
1.839
1.839 -- Build files have been written to: /root/.conan/data/zlib/1.2.12/_/_/build/6af9cc7cb931c5ad942174fd7838eb655717c709/build_subfolder
1.857 [  6%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/adler32.c.o
1.857 [ 18%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/crc32.c.o
1.857 [ 18%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/compress.c.o
1.857 [ 25%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/deflate.c.o
1.858 [ 31%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzclose.c.o
1.860 [ 37%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzwrite.c.o
1.860 [ 43%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzlib.c.o
1.860 [ 50%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzread.c.o
1.860 [ 56%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/inflate.c.o
1.860 gcc-9: error: unrecognized command line option ‘-m64’
1.860 gcc-9: error: unrecognized command line option ‘-m64’
1.860 gcc-9: error: unrecognized command line option ‘-m64’
1.860 gcc-9: error: unrecognized command line option ‘-m64’
1.861 gcc-9: error: unrecognized command line option ‘-m64’
1.861 [ 62%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/infback.c.o
1.861 gcc-9: error: unrecognized command line option ‘-m64’
1.861 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:76: source_subfolder/CMakeFiles/zlibstatic.dir/adler32.c.o] Error 1
1.861 gmake[2]: *** Waiting for unfinished jobs....
1.861 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:90: source_subfolder/CMakeFiles/zlibstatic.dir/compress.c.o] Error 1
1.861 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:104: source_subfolder/CMakeFiles/zlibstatic.dir/crc32.c.o] Error 1
1.861 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:118: source_subfolder/CMakeFiles/zlibstatic.dir/deflate.c.o] Error 1
1.861 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:132: source_subfolder/CMakeFiles/zlibstatic.dir/gzclose.c.o] Error 1
1.862 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:146: source_subfolder/CMakeFiles/zlibstatic.dir/gzlib.c.o] Error 1
1.862 gcc-9: error: unrecognized command line option ‘-m64’
1.862 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:160: source_subfolder/CMakeFiles/zlibstatic.dir/gzread.c.o] Error 1
1.862 gcc-9: error: unrecognized command line option ‘-m64’
1.862 gcc-9: error: unrecognized command line option ‘-m64’
1.863 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:188: source_subfolder/CMakeFiles/zlibstatic.dir/inflate.c.o] Error 1
1.863 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:174: source_subfolder/CMakeFiles/zlibstatic.dir/gzwrite.c.o] Error 1
1.863 gcc-9: error: unrecognized command line option ‘-m64’
1.863 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:202: source_subfolder/CMakeFiles/zlibstatic.dir/infback.c.o] Error 1
1.865 [ 68%] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/inftrees.c.o
1.866 gcc-9: error: unrecognized command line option ‘-m64’
1.866 gmake[2]: *** [source_subfolder/CMakeFiles/zlibstatic.dir/build.make:216: source_subfolder/CMakeFiles/zlibstatic.dir/inftrees.c.o] Error 1
1.866 gmake[1]: *** [CMakeFiles/Makefile2:98: source_subfolder/CMakeFiles/zlibstatic.dir/all] Error 2
1.866 gmake: *** [Makefile:136: all] Error 2
1.868 zlib/1.2.12:
1.868 zlib/1.2.12: ERROR: Package '6af9cc7cb931c5ad942174fd7838eb655717c709' build failed
1.868 zlib/1.2.12: WARN: Build folder /root/.conan/data/zlib/1.2.12/_/_/build/6af9cc7cb931c5ad942174fd7838eb655717c709
1.868 ERROR: zlib/1.2.12: Error in build() method, line 93
1.868 	cmake.build()
1.868 	ConanException: Error 2 while executing cmake --build '/root/.conan/data/zlib/1.2.12/_/_/build/6af9cc7cb931c5ad942174fd7838eb655717c709/build_subfolder' '--' '-j12'
------
Dockerfile:44
--------------------
  42 |
  43 |     # Build 3rdparty
  44 | >>> RUN conan create 3rdparty/zlib 1.2.12@ -pr:b linux_x86_64_gcc9 -pr:h linux_x86_64_gcc9
  45 |     RUN conan create 3rdparty/llvm 11.1.0@ -pr:b linux_x86_64_gcc9 -pr:h linux_x86_64_gcc9
  46 |     RUN conan create 3rdparty/abseil 20211102.0@ -pr:b linux_x86_64_gcc9 -pr:h linux_x86_64_gcc9
--------------------
ERROR: failed to solve: process "/bin/sh -c conan create 3rdparty/zlib 1.2.12@ -pr:b linux_x86_64_gcc9 -pr:h linux_x86_64_gcc9" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions