tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Build with docker failed

Open x09 opened this issue 1 year ago • 4 comments

Steps to reproduce

Few last version i can't build with docker https://github.com/telegramdesktop/tdesktop/blob/dev/docs/building-linux.md

Expected behaviour

build successfully

Actual behaviour

failed with errors

Operating system

Linux

Version of Telegram Desktop

4.5.1

Installation source

Static binary from official website

Crash ID

No response

Logs

In member function ‘latin1’,
    inlined from ‘operator<’ at /usr/local/Qt-6.7.2/include/QtCore/qlatin1stringview.h:259:0,
    inlined from ‘operator()’ at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/tuple:343:0,
    inlined from ‘_M_lower_bound’ at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_tree.h:1951:0,
    inlined from ‘lower_bound’ at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/tuple:812:0,
    inlined from ‘lower_bound’ at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_map.h:1307:0,
    inlined from ‘insert_or_assign’ at /opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_map.h:968:0,
    inlined from ‘insert’ at /usr/local/Qt-6.7.2/include/QtCore/qmap.h:692:0,
    inlined from ‘insert’ at /usr/src/tdesktop/Telegram/lib_base/base/ordered_set.h:133:0,
    inlined from ‘ReplaceValueInPaletteContent’ at /usr/src/tdesktop/Telegram/SourceFiles/window/themes/window_theme_editor.cpp:321:0:
/usr/local/Qt-6.7.2/include/QtCore/qlatin1stringview.h:60: note: source object allocated here
   60 |     constexpr const char *latin1() const noexcept { return m_data; }
      | 
/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: /tmp/ccucRZIG.ltrans9.ltrans.o: in function `Ui::(anonymous namespace)::FillTopReactors(gsl::not_null<Ui::VerticalLayout*>, std::vector<Ui::PaidReactionTop, std::allocator<Ui::PaidReactionTop> >, rpl::producer<int, rpl::no_error, rpl::details::type_erased_generator<int, rpl::no_error> >, rpl::producer<bool, rpl::no_error, rpl::details::type_erased_generator<bool, rpl::no_error> >)::Key::operator<=>(Key const&) const':
/usr/src/tdesktop/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:257: undefined reference to `std::strong_ordering std::operator<=><Ui::DynamicImage, Ui::DynamicImage>(std::shared_ptr<Ui::DynamicImage> const&, std::shared_ptr<Ui::DynamicImage> const&)'
/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: /tmp/ccucRZIG.ltrans9.ltrans.o: in function `Ui::(anonymous namespace)::FillTopReactors(gsl::not_null<Ui::VerticalLayout*>, std::vector<Ui::PaidReactionTop, std::allocator<Ui::PaidReactionTop> >, rpl::producer<int, rpl::no_error, rpl::details::type_erased_generator<int, rpl::no_error> >, rpl::producer<bool, rpl::no_error, rpl::details::type_erased_generator<bool, rpl::no_error> >)::{lambda(int, bool)#2}::operator()(int, bool) const':
/usr/src/tdesktop/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:257: undefined reference to `std::strong_ordering std::operator<=><Ui::DynamicImage, Ui::DynamicImage>(std::shared_ptr<Ui::DynamicImage> const&, std::shared_ptr<Ui::DynamicImage> const&)'
/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: /usr/src/tdesktop/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:257: undefined reference to `std::strong_ordering std::operator<=><Ui::DynamicImage, Ui::DynamicImage>(std::shared_ptr<Ui::DynamicImage> const&, std::shared_ptr<Ui::DynamicImage> const&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

x09 avatar Aug 28 '24 11:08 x09

Version of Telegram Desktop

4.5.1

4.5.1?!

ilya-fedin avatar Aug 28 '24 12:08 ilya-fedin

sorry v5.4.1

x09 avatar Aug 28 '24 15:08 x09

Is this a error from tagged version? Commits from dev branch may not build as they're in progress

ilya-fedin avatar Aug 28 '24 16:08 ilya-fedin

latest commit can't build for linux so you need to git checkout 46304c7a2d133f42de1de7c76b0d49eca1cf50e7

c0re100 avatar Aug 28 '24 16:08 c0re100

Is this a error from tagged version? Commits from dev branch may not build as they're in progress

you right.. i use dev branch, after switch to 5.4.1 builded successfully

x09 avatar Aug 29 '24 07:08 x09