telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.89k stars 5.13k forks source link

telegram crashes on linux (4.14.16, different distros) #27482

Closed bzzz77 closed 7 months ago

bzzz77 commented 7 months ago

Steps to reproduce

  1. install current stable (or beta) from the site
  2. try to run

Expected behaviour

should work as usual

Actual behaviour

[alexey@x390 ~]$ ~/Downloads/tmp/Telegram/Telegram Aborted (core dumped)

Operating system

fedora 38

Version of Telegram Desktop

4.14.16

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

Daxx commented 7 months ago

As I said, it's the latest installer for Ubuntu from their website:

https://docs.docker.com/desktop/install/ubuntu/

Error was just the first line -- Here's the whole ugly mess ;)

ERROR: failed to solve: process "bash -c . /opt/rh/gcc-toolset-12/enable; exec bash -c \"$@\" -s git clone -b v0.8.2 --depth=1 https://github.com/libjxl/libjxl.git \t&& cd libjxl \t&& cmake -GNinja -B build . \t\t-DCMAKE_BUILD_TYPE=None \t\t-DBUILD_SHARED_LIBS=OFF \t\t-DBUILD_TESTING=OFF \t\t-DJPEGXL_ENABLE_DEVTOOLS=OFF \t\t-DJPEGXL_ENABLE_TOOLS=OFF \t\t-DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF \t\t-DJPEGXL_ENABLE_DOXYGEN=OFF \t\t-DJPEGXL_ENABLE_MANPAGES=OFF \t\t-DJPEGXL_ENABLE_BENCHMARK=OFF \t\t-DJPEGXL_ENABLE_EXAMPLES=OFF \t\t-DJPEGXL_ENABLE_JNI=OFF \t\t-DJPEGXL_ENABLE_SJPEG=OFF \t\t-DJPEGXL_ENABLE_OPENEXR=OFF \t\t-DJPEGXL_ENABLE_SKCMS=OFF \t&& cmake --build build --parallel \t&& DESTDIR=\"/usr/src/Libraries/libjxl-cache\" cmake --install build \t&& cd .. \t&& rm -rf libjxl" did not complete successfully: exit code: 1
ilya-fedin commented 7 months ago

It's now only the one last completed line. But the actual error should be on previous lines.

Daxx commented 7 months ago
$ ./tdesktop/Telegram/build/prepare/linux.sh
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: centos_env (0.1.0)
[+] Building 2082.5s (64/147)                                               docker:desktop-linux
 => [internal] load build definition from Dockerfile                                        0.5s
 => => transferring dockerfile: 31.05kB                                                     0.0s
 => resolve image config for docker.io/docker/dockerfile:1                                  1.8s
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa8904642  0.0s
 => [internal] load metadata for docker.io/library/rockylinux:8                             1.4s
 => [internal] load .dockerignore                                                           0.5s
 => => transferring context: 2B                                                             0.0s
 => CACHED [builder-base 1/5] FROM docker.io/library/rockylinux:8@sha256:c464612ef7e3d54d6  0.0s
 => [builder-base 2/5] RUN dnf -y install epel-release  && dnf config-manager --set-enab  775.2s
 => [builder-base 3/5] WORKDIR /usr/src/Libraries                                           1.2s 
 => [builder-base 4/5] RUN python3 -m pip install meson ninja                               7.4s 
 => [builder-base 5/5] RUN mkdir /opt/cmake  && curl -sSLo cmake-3.27.6-Linux-x86_64.sh h  37.6s 
 => [zlib 1/1] RUN git init zlib  && cd zlib  && git remote add origin https://github.co  102.2s
 => CANCELED [mozjpeg 1/1] RUN git clone -b v4.1.4 --depth=1 https://github.com/mozilla  1253.1s
 => [libwebp 1/1] RUN git clone -b chrome-m116-5845 --depth=1 https://github.com/webmpro  663.1s
 => CANCELED [glib 1/1] RUN git clone -b 2.78.1 --depth=1 https://github.com/GNOME/glib  1248.5s
 => [patches 1/1] RUN git init patches  && cd patches  && git remote add origin https://g  23.6s
 => [xcb-proto 1/1] RUN git clone -b xcb-proto-1.16.0 --depth=1 https://github.com/gitlab  80.2s
 => [xcb-util 1/1] RUN git clone -b xcb-util-0.4.1 --depth=1 --recursive https://github.  260.7s
 => [nasm 1/1] RUN git clone -b nasm-2.15.05 --depth=1 https://github.com/netwide-assemb  803.6s
 => [nv-codec-headers 1/1] RUN git clone -b n12.0.16.0 --depth=1 https://github.com/FFmpe  32.9s
 => CANCELED [breakpad 1/1] RUN git clone -b v2023.01.27 --depth=1 https://chromium.goo  1250.0s
 => CANCELED [openssl 1/1] RUN git clone -b OpenSSL_1_1_1-stable --depth=1 https://gith  1252.0s
 => [rnnoise 1/1] RUN git clone -b master --depth=1 https://github.com/desktop-app/rnnois  53.7s
 => [highway 1/1] RUN git clone -b 1.0.7 --depth=1 https://github.com/google/highway.git  223.9s
 => CANCELED [pipewire 1/1] RUN git clone -b 0.3.25 --depth=1 https://github.com/PipeWi  1253.8s
 => [libxdamage 1/1] RUN git clone -b libXdamage-1.1.6 --depth=1 https://github.com/gitl  202.5s
 => [libxrender 1/1] RUN git clone -b libXrender-0.9.11 --depth=1 https://github.com/git  320.6s
 => [libxtst 1/1] RUN git clone -b libXtst-1.2.4 --depth=1 https://github.com/gitlab-fre  263.9s
 => CANCELED [libvpx 1/1] RUN git init libvpx  && cd libvpx  && git remote add origin h  1252.8s
 => [wayland 1/1] RUN git clone -b 1.19.0 --depth=1 https://github.com/gitlab-freedeskto  208.7s
 => CANCELED [opus 1/1] RUN git clone -b v1.4 --depth=1 https://github.com/xiph/opus.gi  1253.5s
 => [xcb-render-util 1/1] RUN git clone -b xcb-util-renderutil-0.3.10 --depth=1 --recurs  287.0s
 => CANCELED [protobuf 1/1] RUN git clone -b v21.9 --depth=1 --recursive https://github  1245.5s
 => [lcms2 1/1] RUN git clone -b lcms2.15 --depth=1 https://github.com/mm2/Little-CMS.gi  626.0s
 => [libxrandr 1/1] RUN git clone -b libXrandr-1.5.3 --depth=1 https://github.com/gitlab  335.0s
 => [brotli 1/1] RUN git clone -b v1.1.0 --depth=1 https://github.com/google/brotli.git   715.5s
 => [xcb-keysyms 1/1] RUN git clone -b xcb-util-keysyms-0.4.1 --depth=1 --recursive http  292.7s
 => [libxcomposite 1/1] RUN git clone -b libXcomposite-0.4.6 --depth=1 https://github.co  257.8s
 => [libde265 1/1] RUN git clone -b v1.0.12 --depth=1 https://github.com/strukturag/libd  972.7s
 => [xz 1/1] RUN git clone -b v5.4.4 --depth=1 https://github.com/tukaani-project/xz.git  801.3s
 => [xcb-wm 1/1] RUN git clone -b xcb-util-wm-0.4.2 --depth=1 --recursive https://github  329.2s
 => [libxfixes 1/1] RUN git clone -b libXfixes-5.0.3 --depth=1 https://github.com/gitlab  285.1s
 => [libxext 1/1] RUN git clone -b libXext-1.3.5 --depth=1 https://github.com/gitlab-fre  406.3s
 => [xcb 1/2] COPY --link --from=xcb-proto /usr/src/Libraries/xcb-proto-cache /             5.0s
 => [xcb 2/2] RUN git clone -b libxcb-1.16 --depth=1 https://github.com/gitlab-freedesk  1155.5s
 => [qt  1/15] COPY --link --from=zlib /usr/src/Libraries/zlib-cache /                      4.9s
 => [stage-51  1/45] COPY --link --from=zlib /usr/src/Libraries/zlib-cache /                4.2s
 => [xcb-cursor 1/4] COPY --link --from=xcb-util /usr/src/Libraries/xcb-util-cache /        2.8s
 => [xcb-image 2/2] RUN git clone -b xcb-util-image-0.4.1 --depth=1 --recursive https://  215.0s
 => [libxv 1/2] COPY --link --from=libXext /usr/src/Libraries/libXext-cache /               1.7s
 => [libxv 2/2] RUN git clone -b libXv-1.0.12 --depth=1 https://github.com/gitlab-freede  173.6s
 => [xcb-cursor 2/4] COPY --link --from=xcb-image /usr/src/Libraries/xcb-image-cache /      2.1s
 => [xcb-cursor 3/4] COPY --link --from=xcb-render-util /usr/src/Libraries/xcb-render-util  1.4s
 => [xcb-cursor 4/4] RUN git clone -b xcb-util-cursor-0.1.4 --depth=1 --recursive https:  203.3s
 => [libjxl 1/4] COPY --link --from=lcms2 /usr/src/Libraries/lcms2-cache /                  2.9s
 => [qt  2/15] COPY --link --from=lcms2 /usr/src/Libraries/lcms2-cache /                    3.2s
 => [libjxl 2/4] COPY --link --from=brotli /usr/src/Libraries/brotli-cache /                2.8s
 => [libjxl 3/4] COPY --link --from=highway /usr/src/Libraries/highway-cache /              1.8s
 => ERROR [libjxl 4/4] RUN git clone -b v0.8.2 --depth=1 https://github.com/libjxl/libjx  520.9s
 => [stage-51  2/45] COPY --link --from=xz /usr/src/Libraries/xz-cache /                    3.7s
 => [dav1d 1/2] COPY --link --from=nasm /usr/src/Libraries/nasm-cache /                     2.4s
 => CANCELED [dav1d 2/2] RUN git clone -b 1.2.1 --depth=1 https://github.com/videolan/da  447.6s
 => [libheif 1/2] COPY --link --from=libde265 /usr/src/Libraries/libde265-cache /           4.3s
 => CANCELED [libheif 2/2] RUN git clone -b v1.16.2 --depth=1 https://github.com/struktu  266.4s
 => [xkbcommon 1/2] COPY --link --from=xcb /usr/src/Libraries/xcb-cache /                   4.7s
------
 > [libjxl 4/4] RUN git clone -b v0.8.2 --depth=1 https://github.com/libjxl/libjxl.git  && cd libjxl     && cmake -GNinja -B build .             -DCMAKE_BUILD_TYPE=None                 -DBUILD_SHARED_LIBS=OFF          -DBUILD_TESTING=OFF             -DJPEGXL_ENABLE_DEVTOOLS=OFF            -DJPEGXL_ENABLE_TOOLS=OFF                -DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF              -DJPEGXL_ENABLE_DOXYGEN=OFF              -DJPEGXL_ENABLE_MANPAGES=OFF            -DJPEGXL_ENABLE_BENCHMARK=OFF            -DJPEGXL_ENABLE_EXAMPLES=OFF            -DJPEGXL_ENABLE_JNI=OFF                 -DJPEGXL_ENABLE_SJPEG=OFF                -DJPEGXL_ENABLE_OPENEXR=OFF             -DJPEGXL_ENABLE_SKCMS=OFF        && cmake --build build --parallel       && DESTDIR="/usr/src/Libraries/libjxl-cache" cmake --install build       && cd ..        && rm -rf libjxl:
1.592 Cloning into 'libjxl'...
5.327 Note: switching to '954b460768c08a147abf47689ad69b0e7beff65e'.
5.327 
5.327 You are in 'detached HEAD' state. You can look around, make experimental
5.327 changes and commit them, and you can discard any commits you make in this
5.327 state without impacting any branches by switching back to a branch.
5.327 
5.327 If you want to create a new branch to retain commits you create, you may
5.327 do so (now or later) by using -c with the switch command. Example:
5.327 
5.327   git switch -c <new-branch-name>
5.327 
5.327 Or undo this operation with:
5.327 
5.327   git switch -
5.327 
5.327 Turn off this advice by setting config variable advice.detachedHead to false
5.327 
6.497 -- The C compiler identification is GNU 12.2.1
7.895 -- The CXX compiler identification is GNU 12.2.1
8.319 -- Detecting C compiler ABI info
10.90 -- Detecting C compiler ABI info - done
11.00 -- Check for working C compiler: /opt/rh/gcc-toolset-12/root/usr/bin/cc - skipped
11.00 -- Detecting C compile features
11.01 -- Detecting C compile features - done
11.47 -- Detecting CXX compiler ABI info
13.67 -- Detecting CXX compiler ABI info - done
13.71 -- Check for working CXX compiler: /opt/rh/gcc-toolset-12/root/usr/bin/c++ - skipped
13.72 -- Detecting CXX compile features
13.72 -- Detecting CXX compile features - done
13.73 -- Performing Test JPEGXL_EMSCRIPTEN
14.30 -- Performing Test JPEGXL_EMSCRIPTEN - Failed
14.30 -- CMAKE_SYSTEM_PROCESSOR is x86_64
14.34 -- Performing Test CXX_FUZZERS_SUPPORTED
15.28 -- Performing Test CXX_FUZZERS_SUPPORTED - Failed
15.29 -- Performing Test CXX_CONSTRUCTOR_ALIASES_SUPPORTED
16.75 -- Performing Test CXX_CONSTRUCTOR_ALIASES_SUPPORTED - Failed
16.77 -- Performing Test CXX_MACRO_PREFIX_MAP
18.81 -- Performing Test CXX_MACRO_PREFIX_MAP - Success
18.82 -- Performing Test CXX_NO_RTTI_SUPPORTED
21.45 -- Performing Test CXX_NO_RTTI_SUPPORTED - Success
27.31 -- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2") 
27.59 -- tcmalloc version  -- tcmalloc 2.8.0 disabled due to https://github.com/gperftools/gperftools/issues/1204
27.59 -- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED
29.13 -- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED - Failed
29.14 -- Compiled IDs C:GNU, C++:GNU
29.16 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
31.30 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
31.30 -- Check if compiler accepts -pthread
33.16 -- Check if compiler accepts -pthread - yes
33.19 -- Found Threads: TRUE  
33.19 -- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS
37.20 -- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS - Success
37.22 Warning: HWY_SVE, HWY_SVE2, HWY_SVE_256, HWY_SVE2_128 and HWY_RVV CPU targets are disabled
38.07 -- Found HWY: /usr/local/lib64/libhwy.a (found suitable version "1.0.7", minimum required is "0.15.0") 
38.14 -- Checking for module 'libbrotlicommon'
38.27 --   Found libbrotlicommon, version 1.1.0
38.46 -- Checking for module 'libbrotlienc'
38.61 --   Found libbrotlienc, version 1.1.0
38.99 -- Checking for module 'libbrotlidec'
39.17 --   Found libbrotlidec, version 1.1.0
39.58 -- Found Brotli: /usr/local/include  
39.86 -- Found LCMS2: /usr/local/lib64/liblcms2.so (found suitable version "2.15", minimum required is "2.13") 
40.02 -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")  
40.20 -- Found PNG: /usr/lib64/libpng.so (found version "1.6.34") 
40.26 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
42.90 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
42.92 -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
45.42 -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
45.42 -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
48.28 -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
48.40 -- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
48.53 -- Building with JPEGXL_VERSION=954b460 (auto-updated)
48.67 -- Building tools: 
48.72 -- Configuring done (43.2s)
49.23 -- Generating done (0.3s)
49.49 -- Build files have been written to: /usr/src/Libraries/libjxl/build
53.44 [1/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/base/data_parallel.cc.o
63.13 [2/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/alpha.cc.o
66.33 [3/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/base/padded_bytes.cc.o
66.65 [4/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/base/cache_aligned.cc.o
79.32 [5/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/ans_common.cc.o
84.09 [6/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/ac_strategy.cc.o
103.6 [7/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/aux_out.cc.o
105.9 [8/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/base/random.cc.o
115.2 [9/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/chroma_from_luma.cc.o
128.4 [10/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/blending.cc.o
155.3 [11/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/coeff_order.cc.o
163.7 [12/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_encoding_internal.cc.o
215.7 [13/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_slow.cc.o
316.4 [14/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o
316.4 FAILED: lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o 
316.4 /opt/rh/gcc-toolset-12/root/usr/bin/c++ -DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJPEGXL_MAJOR_VERSION=0 -DJPEGXL_MINOR_VERSION=8 -DJPEGXL_PATCH_VERSION=2 -DJXL_INTERNAL_LIBRARY_BUILD -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/usr/src/Libraries/libjxl -I/usr/src/Libraries/libjxl/lib/include -I/usr/src/Libraries/libjxl/build/lib/include -g -O3 -flto=auto -ffat-lto-objects -pipe -fPIC -fno-omit-frame-pointer -fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fno-rtti -funwind-tables -fno-omit-frame-pointer -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fmacro-prefix-map=/usr/src/Libraries/libjxl=. -Wno-builtin-macro-redefined -Wall -fmerge-all-constants -fno-builtin-fwrite -fno-builtin-fread -Wextra -Wc++11-compat -Warray-bounds -Wformat-security -Wimplicit-fallthrough -Wno-register -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -fsized-deallocation -fno-exceptions -fmath-errno -DJPEGXL_ENABLE_TRANSCODE_JPEG=1 -DJPEGXL_ENABLE_BOXES=1 -MD -MT lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o -MF lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o.d -o lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o -c /usr/src/Libraries/libjxl/lib/jxl/color_management.cc
316.4 c++: fatal error: Killed signal terminated program cc1plus
316.4 compilation terminated.
346.8 [15/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/compressed_dc.cc.o
346.8 FAILED: lib/CMakeFiles/jxl_dec-obj.dir/jxl/compressed_dc.cc.o 
346.8 /opt/rh/gcc-toolset-12/root/usr/bin/c++ -DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJPEGXL_MAJOR_VERSION=0 -DJPEGXL_MINOR_VERSION=8 -DJPEGXL_PATCH_VERSION=2 -DJXL_INTERNAL_LIBRARY_BUILD -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/usr/src/Libraries/libjxl -I/usr/src/Libraries/libjxl/lib/include -I/usr/src/Libraries/libjxl/build/lib/include -g -O3 -flto=auto -ffat-lto-objects -pipe -fPIC -fno-omit-frame-pointer -fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fno-rtti -funwind-tables -fno-omit-frame-pointer -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fmacro-prefix-map=/usr/src/Libraries/libjxl=. -Wno-builtin-macro-redefined -Wall -fmerge-all-constants -fno-builtin-fwrite -fno-builtin-fread -Wextra -Wc++11-compat -Warray-bounds -Wformat-security -Wimplicit-fallthrough -Wno-register -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -fsized-deallocation -fno-exceptions -fmath-errno -DJPEGXL_ENABLE_TRANSCODE_JPEG=1 -DJPEGXL_ENABLE_BOXES=1 -MD -MT lib/CMakeFiles/jxl_dec-obj.dir/jxl/compressed_dc.cc.o -MF lib/CMakeFiles/jxl_dec-obj.dir/jxl/compressed_dc.cc.o.d -o lib/CMakeFiles/jxl_dec-obj.dir/jxl/compressed_dc.cc.o -c /usr/src/Libraries/libjxl/lib/jxl/compressed_dc.cc
346.8 c++: fatal error: Killed signal terminated program cc1plus
346.8 compilation terminated.
400.4 [16/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable5.cc.o
400.4 FAILED: lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable5.cc.o 
400.4 /opt/rh/gcc-toolset-12/root/usr/bin/c++ -DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJPEGXL_MAJOR_VERSION=0 -DJPEGXL_MINOR_VERSION=8 -DJPEGXL_PATCH_VERSION=2 -DJXL_INTERNAL_LIBRARY_BUILD -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/usr/src/Libraries/libjxl -I/usr/src/Libraries/libjxl/lib/include -I/usr/src/Libraries/libjxl/build/lib/include -g -O3 -flto=auto -ffat-lto-objects -pipe -fPIC -fno-omit-frame-pointer -fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fno-rtti -funwind-tables -fno-omit-frame-pointer -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fmacro-prefix-map=/usr/src/Libraries/libjxl=. -Wno-builtin-macro-redefined -Wall -fmerge-all-constants -fno-builtin-fwrite -fno-builtin-fread -Wextra -Wc++11-compat -Warray-bounds -Wformat-security -Wimplicit-fallthrough -Wno-register -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -fsized-deallocation -fno-exceptions -fmath-errno -DJPEGXL_ENABLE_TRANSCODE_JPEG=1 -DJPEGXL_ENABLE_BOXES=1 -MD -MT lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable5.cc.o -MF lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable5.cc.o.d -o lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable5.cc.o -c /usr/src/Libraries/libjxl/lib/jxl/convolve_separable5.cc
400.4 c++: fatal error: Killed signal terminated program cc1plus
400.4 compilation terminated.
458.3 [17/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable7.cc.o
458.3 FAILED: lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable7.cc.o 
458.3 /opt/rh/gcc-toolset-12/root/usr/bin/c++ -DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJPEGXL_MAJOR_VERSION=0 -DJPEGXL_MINOR_VERSION=8 -DJPEGXL_PATCH_VERSION=2 -DJXL_INTERNAL_LIBRARY_BUILD -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/usr/src/Libraries/libjxl -I/usr/src/Libraries/libjxl/lib/include -I/usr/src/Libraries/libjxl/build/lib/include -g -O3 -flto=auto -ffat-lto-objects -pipe -fPIC -fno-omit-frame-pointer -fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fno-rtti -funwind-tables -fno-omit-frame-pointer -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fmacro-prefix-map=/usr/src/Libraries/libjxl=. -Wno-builtin-macro-redefined -Wall -fmerge-all-constants -fno-builtin-fwrite -fno-builtin-fread -Wextra -Wc++11-compat -Warray-bounds -Wformat-security -Wimplicit-fallthrough -Wno-register -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -fsized-deallocation -fno-exceptions -fmath-errno -DJPEGXL_ENABLE_TRANSCODE_JPEG=1 -DJPEGXL_ENABLE_BOXES=1 -MD -MT lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable7.cc.o -MF lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable7.cc.o.d -o lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_separable7.cc.o -c /usr/src/Libraries/libjxl/lib/jxl/convolve_separable7.cc
458.3 c++: fatal error: Killed signal terminated program cc1plus
458.3 compilation terminated.
475.6 [18/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_symmetric3.cc.o
475.6 FAILED: lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_symmetric3.cc.o 
475.6 /opt/rh/gcc-toolset-12/root/usr/bin/c++ -DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJPEGXL_MAJOR_VERSION=0 -DJPEGXL_MINOR_VERSION=8 -DJPEGXL_PATCH_VERSION=2 -DJXL_INTERNAL_LIBRARY_BUILD -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/usr/src/Libraries/libjxl -I/usr/src/Libraries/libjxl/lib/include -I/usr/src/Libraries/libjxl/build/lib/include -g -O3 -flto=auto -ffat-lto-objects -pipe -fPIC -fno-omit-frame-pointer -fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fno-rtti -funwind-tables -fno-omit-frame-pointer -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fmacro-prefix-map=/usr/src/Libraries/libjxl=. -Wno-builtin-macro-redefined -Wall -fmerge-all-constants -fno-builtin-fwrite -fno-builtin-fread -Wextra -Wc++11-compat -Warray-bounds -Wformat-security -Wimplicit-fallthrough -Wno-register -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -fsized-deallocation -fno-exceptions -fmath-errno -DJPEGXL_ENABLE_TRANSCODE_JPEG=1 -DJPEGXL_ENABLE_BOXES=1 -MD -MT lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_symmetric3.cc.o -MF lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_symmetric3.cc.o.d -o lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_symmetric3.cc.o -c /usr/src/Libraries/libjxl/lib/jxl/convolve_symmetric3.cc
475.6 c++: fatal error: Killed signal terminated program cc1plus
475.6 compilation terminated.
502.4 [19/145] Building CXX object lib/CMakeFiles/jxl_dec-obj.dir/jxl/convolve_symmetric5.cc.o
502.4 ninja: build stopped: subcommand failed.
------
Dockerfile:267
--------------------
 266 |     
 267 | >>> RUN git clone -b v0.8.2 --depth=1 https://github.com/libjxl/libjxl.git \
 268 | >>>      && cd libjxl \
 269 | >>>      && cmake -GNinja -B build . \
 270 | >>>              -DCMAKE_BUILD_TYPE=None \
 271 | >>>              -DBUILD_SHARED_LIBS=OFF \
 272 | >>>              -DBUILD_TESTING=OFF \
 273 | >>>              -DJPEGXL_ENABLE_DEVTOOLS=OFF \
 274 | >>>              -DJPEGXL_ENABLE_TOOLS=OFF \
 275 | >>>              -DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF \
 276 | >>>              -DJPEGXL_ENABLE_DOXYGEN=OFF \
 277 | >>>              -DJPEGXL_ENABLE_MANPAGES=OFF \
 278 | >>>              -DJPEGXL_ENABLE_BENCHMARK=OFF \
 279 | >>>              -DJPEGXL_ENABLE_EXAMPLES=OFF \
 280 | >>>              -DJPEGXL_ENABLE_JNI=OFF \
 281 | >>>              -DJPEGXL_ENABLE_SJPEG=OFF \
 282 | >>>              -DJPEGXL_ENABLE_OPENEXR=OFF \
 283 | >>>              -DJPEGXL_ENABLE_SKCMS=OFF \
 284 | >>>      && cmake --build build --parallel \
 285 | >>>      && DESTDIR="/usr/src/Libraries/libjxl-cache" cmake --install build \
 286 | >>>      && cd .. \
 287 | >>>      && rm -rf libjxl
 288 |     
--------------------
ERROR: failed to solve: process "bash -c . /opt/rh/gcc-toolset-12/enable; exec bash -c \"$@\" -s git clone -b v0.8.2 --depth=1 https://github.com/libjxl/libjxl.git \t&& cd libjxl \t&& cmake -GNinja -B build . \t\t-DCMAKE_BUILD_TYPE=None \t\t-DBUILD_SHARED_LIBS=OFF \t\t-DBUILD_TESTING=OFF \t\t-DJPEGXL_ENABLE_DEVTOOLS=OFF \t\t-DJPEGXL_ENABLE_TOOLS=OFF \t\t-DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF \t\t-DJPEGXL_ENABLE_DOXYGEN=OFF \t\t-DJPEGXL_ENABLE_MANPAGES=OFF \t\t-DJPEGXL_ENABLE_BENCHMARK=OFF \t\t-DJPEGXL_ENABLE_EXAMPLES=OFF \t\t-DJPEGXL_ENABLE_JNI=OFF \t\t-DJPEGXL_ENABLE_SJPEG=OFF \t\t-DJPEGXL_ENABLE_OPENEXR=OFF \t\t-DJPEGXL_ENABLE_SKCMS=OFF \t&& cmake --build build --parallel \t&& DESTDIR=\"/usr/src/Libraries/libjxl-cache\" cmake --install build \t&& cd .. \t&& rm -rf libjxl" did not complete successfully: exit code: 1
ilya-fedin commented 7 months ago

The actual error is

316.4 FAILED: lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o 
316.4 /opt/rh/gcc-toolset-12/root/usr/bin/c++ -DHWY_DISABLED_TARGETS="(HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJPEGXL_MAJOR_VERSION=0 -DJPEGXL_MINOR_VERSION=8 -DJPEGXL_PATCH_VERSION=2 -DJXL_INTERNAL_LIBRARY_BUILD -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/usr/src/Libraries/libjxl -I/usr/src/Libraries/libjxl/lib/include -I/usr/src/Libraries/libjxl/build/lib/include -g -O3 -flto=auto -ffat-lto-objects -pipe -fPIC -fno-omit-frame-pointer -fstack-protector-all -fstack-clash-protection -fcf-protection -DNDEBUG -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fno-rtti -funwind-tables -fno-omit-frame-pointer -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fmacro-prefix-map=/usr/src/Libraries/libjxl=. -Wno-builtin-macro-redefined -Wall -fmerge-all-constants -fno-builtin-fwrite -fno-builtin-fread -Wextra -Wc++11-compat -Warray-bounds -Wformat-security -Wimplicit-fallthrough -Wno-register -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -fsized-deallocation -fno-exceptions -fmath-errno -DJPEGXL_ENABLE_TRANSCODE_JPEG=1 -DJPEGXL_ENABLE_BOXES=1 -MD -MT lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o -MF lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o.d -o lib/CMakeFiles/jxl_dec-obj.dir/jxl/color_management.cc.o -c /usr/src/Libraries/libjxl/lib/jxl/color_management.cc
316.4 c++: fatal error: Killed signal terminated program cc1plus
316.4 compilation terminated.

What likely means the process is killed by the out-of-memory killer

ilya-fedin commented 7 months ago

Looks like I found the cause: statically linked libgcc. Not sure it could be changed to shared link, though, because backward compatibility...

kartavenko1983 commented 7 months ago

Apparently, the problem was solved, or circumvented. People, upgrade, upgrade to version 4.15 is available

ilya-fedin commented 7 months ago

No, it's just hidden by disabling system proxy support

kartavenko1983 commented 7 months ago

OK, thanks