tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.14k stars 1.45k forks source link

error "Linking CXX executable tg_cli" #790

Closed nekohasekai closed 4 years ago

nekohasekai commented 4 years ago

error build on debian 10 (armel)

[  0%] Built target tdsqlite
[  0%] Built target generate_mime_types_gperf
[  1%] Built target tdmime_auto
[ 17%] Built target tdutils
[ 19%] Built target tdactor
[ 22%] Built target tddb
[ 26%] Built target tdnet
[ 29%] Built target tdtl
[ 29%] Built target td_generate_java_api
[ 31%] Built target generate_common
[ 31%] Generate common tl source files
[ 31%] Built target tl_generate_common
[ 64%] Built target tdcore
[ 65%] Built target tdclient
[ 65%] Built target memprof
[ 66%] Generate git_commit.h
[ 66%] Built target git_commit
[ 67%] Built target generate_json
[ 67%] Generate JSON tl source files
[ 67%] Built target tl_generate_json
[ 67%] Built target tdjson_private
[ 68%] Built target tdjson_static
[ 68%] Linking CXX executable tg_cli
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::NetStats::Impl::on_write(unsigned long long)':
ConnectionCreator.cpp:(.text._ZN2td8NetStats4Impl8on_writeEy[_ZN2td8NetStats4Impl8on_writeEy]+0x44): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::NetStats::Impl::on_read(unsigned long long)':
ConnectionCreator.cpp:(.text._ZN2td8NetStats4Impl7on_readEy[_ZN2td8NetStats4Impl7on_readEy]+0x44): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::detail::StatsCallback::on_read(unsigned long long)':
ConnectionCreator.cpp:(.text._ZN2td6detail13StatsCallback7on_readEy[_ZN2td6detail13StatsCallback7on_readEy]+0x5c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::detail::StatsCallback::on_write(unsigned long long)':
ConnectionCreator.cpp:(.text._ZN2td6detail13StatsCallback8on_writeEy[_ZN2td6detail13StatsCallback8on_writeEy]+0x5c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::on_pong(unsigned int)':
ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator7on_pongEj+0x38): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::NetQuery::clear()':
ConnectionCreator.cpp:(.text._ZN2td8NetQuery5clearEv[_ZN2td8NetQuery5clearEv]+0x278): undefined reference to `__atomic_load_8'
/usr/bin/ld: ConnectionCreator.cpp:(.text._ZN2td8NetQuery5clearEv[_ZN2td8NetQuery5clearEv]+0x294): undefined reference to `__atomic_store_8'
/usr/bin/ld: ConnectionCreator.cpp:(.text._ZN2td8NetQuery5clearEv[_ZN2td8NetQuery5clearEv]+0x5d4): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::loop() [clone .part.0]':
ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator4loopEv.part.0+0x208): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ConnectionCreator.cpp.o): in function `td::ConnectionCreator::on_get_proxy_info(td::tl::unique_ptr<td::telegram_api::help_ProxyData>)':
ConnectionCreator.cpp:(.text._ZN2td17ConnectionCreator17on_get_proxy_infoENS_2tl10unique_ptrINS_12telegram_api14help_ProxyDataEEE+0x264): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NetQuery.cpp.o): in function `td::NetQuery::on_net_write(unsigned int)':
NetQuery.cpp:(.text._ZN2td8NetQuery12on_net_writeEj+0xc8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(NetQuery.cpp.o): in function `td::NetQuery::on_net_read(unsigned int)':
NetQuery.cpp:(.text._ZN2td8NetQuery11on_net_readEj+0xc8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(NetQuery.cpp.o): in function `td::dump_pending_network_queries()':
NetQuery.cpp:(.text._ZN2td28dump_pending_network_queriesEv+0x24): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationManager.cpp.o): in function `td::NotificationManager::get_notification_delay_ms(td::DialogId, td::NotificationManager::PendingNotification const&, int) const':
NotificationManager.cpp:(.text._ZNK2td19NotificationManager25get_notification_delay_msENS_8DialogIdERKNS0_19PendingNotificationEi+0xbc): undefined reference to `__atomic_load_8'
/usr/bin/ld: NotificationManager.cpp:(.text._ZNK2td19NotificationManager25get_notification_delay_msENS_8DialogIdERKNS0_19PendingNotificationEi+0x174): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationManager.cpp.o): in function `td::NotificationManager::save_announcement_ids()':
NotificationManager.cpp:(.text._ZN2td19NotificationManager21save_announcement_idsEv+0x38): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationManager.cpp.o): in function `td::NotificationManager::get_disable_contact_registered_notifications(td::Promise<td::Unit>&&)':
NotificationManager.cpp:(.text._ZN2td19NotificationManager44get_disable_contact_registered_notificationsEONS_7PromiseINS_4UnitEEE+0x19c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(NotificationManager.cpp.o): in function `td::NotificationManager::run_contact_registered_notifications_sync()':
NotificationManager.cpp:(.text._ZN2td19NotificationManager41run_contact_registered_notifications_syncEv+0x2a4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(NotificationManager.cpp.o): in function `td::NotificationManager::process_push_notification_payload(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, td::Promise<td::Unit>&)':
NotificationManager.cpp:(.text._ZN2td19NotificationManager33process_push_notification_payloadENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbRNS_7PromiseINS_4UnitEEE+0x1ec): undefined reference to `__atomic_load_8'
/usr/bin/ld: NotificationManager.cpp:(.text._ZN2td19NotificationManager33process_push_notification_payloadENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbRNS_7PromiseINS_4UnitEEE+0xf64): undefined reference to `__atomic_load_8'
/usr/bin/ld: NotificationManager.cpp:(.text._ZN2td19NotificationManager33process_push_notification_payloadENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbRNS_7PromiseINS_4UnitEEE+0x1364): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationManager.cpp.o): in function `td::NotificationManager::add_call_notification(td::DialogId, td::CallId)':
NotificationManager.cpp:(.text._ZN2td19NotificationManager21add_call_notificationENS_8DialogIdENS_6CallIdE+0x374): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationManager.cpp.o): in function `td::NotificationManager::init() [clone .part.0]':
NotificationManager.cpp:(.text._ZN2td19NotificationManager4initEv.part.0+0x5cc): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::NetQueryCreator::create(td::Storer const&, td::DcId, td::NetQuery::Type, td::NetQuery::AuthFlag, td::NetQuery::GzipFlag, double) [clone .constprop.0]':
StickersManager.cpp:(.text._ZN2td15NetQueryCreator6createERKNS_6StorerENS_4DcIdENS_8NetQuery4TypeENS5_8AuthFlagENS5_8GzipFlagEd.constprop.0+0x48): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::get_emoji_language_code_last_difference_time(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
StickersManager.cpp:(.text._ZN2td15StickersManager44get_emoji_language_code_last_difference_timeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x144): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::on_get_emoji_keywords(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, td::Result<td::tl::unique_ptr<td::telegram_api::emojiKeywordsDifference> >&&)':
StickersManager.cpp:(.text._ZN2td15StickersManager21on_get_emoji_keywordsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEONS_6ResultINS_2tl10unique_ptrINS_12telegram_api23emojiKeywordsDifferenceEEEEE+0x6a8): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::on_get_emoji_keywords_difference(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, td::Result<td::tl::unique_ptr<td::telegram_api::emojiKeywordsDifference> >&&)':
StickersManager.cpp:(.text._ZN2td15StickersManager32on_get_emoji_keywords_differenceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiONS_6ResultINS_2tl10unique_ptrINS_12telegram_api23emojiKeywordsDifferenceEEEEE+0x6b4): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::GetFavedStickersQuery::send(bool, int)':
StickersManager.cpp:(.text._ZN2td21GetFavedStickersQuery4sendEbi[_ZN2td21GetFavedStickersQuery4sendEbi]+0xa0): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::search_stickers(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, td::Promise<td::Unit>&&)':
StickersManager.cpp:(.text._ZN2td15StickersManager15search_stickersENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiONS_7PromiseINS_4UnitEEE+0x41c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::do_reload_sticker_set(long long, td::tl::unique_ptr<td::telegram_api::InputStickerSet>&&, td::Promise<td::Unit>&&) const':
StickersManager.cpp:(.text._ZNK2td15StickersManager21do_reload_sticker_setExONS_2tl10unique_ptrINS_12telegram_api15InputStickerSetEEEONS_7PromiseINS_4UnitEEE+0x1bc): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::update_sticker_set_cache(td::StickersManager::StickerSet const*, td::Promise<td::Unit>&)':
StickersManager.cpp:(.text._ZN2td15StickersManager24update_sticker_set_cacheEPKNS0_10StickerSetERNS_7PromiseINS_4UnitEEE+0xfc): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::read_featured_sticker_sets(void*)':
StickersManager.cpp:(.text._ZN2td15StickersManager26read_featured_sticker_setsEPv+0x1bc): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::reload_recent_stickers(bool, bool)':
StickersManager.cpp:(.text._ZN2td15StickersManager22reload_recent_stickersEbb+0x244): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::repair_recent_stickers(bool, td::Promise<td::Unit>&&)':
StickersManager.cpp:(.text._ZN2td15StickersManager22repair_recent_stickersEbONS_7PromiseINS_4UnitEEE+0x164): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::load_language_codes(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, td::Promise<td::Unit>&&)':
StickersManager.cpp:(.text._ZN2td15StickersManager19load_language_codesESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EES7_ONS_7PromiseINS_4UnitEEE+0x2e8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::load_emoji_keywords(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, td::Promise<td::Unit>&&)':
StickersManager.cpp:(.text._ZN2td15StickersManager19load_emoji_keywordsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEONS_7PromiseINS_4UnitEEE+0x2d4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o):StickersManager.cpp:(.text._ZN2td15StickersManager30load_emoji_keywords_differenceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x25c): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::on_get_messages_sticker_set(long long, td::tl::unique_ptr<td::telegram_api::messages_stickerSet>&&, bool)':
StickersManager.cpp:(.text._ZN2td15StickersManager27on_get_messages_sticker_setExONS_2tl10unique_ptrINS_12telegram_api19messages_stickerSetEEEb+0xd0): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(StickersManager.cpp.o): in function `td::StickersManager::clear_recent_stickers(bool, td::Promise<td::Unit>&&)':
StickersManager.cpp:(.text._ZN2td15StickersManager21clear_recent_stickersEbONS_7PromiseINS_4UnitEEE+0x1a4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::Td::on_get_terms_of_service(td::Result<std::pair<int, td::TermsOfService> >, bool)':
Td.cpp:(.text._ZN2td2Td23on_get_terms_of_serviceENS_6ResultISt4pairIiNS_14TermsOfServiceEEEEb+0x200): undefined reference to `__atomic_load_8'
/usr/bin/ld: Td.cpp:(.text._ZN2td2Td23on_get_terms_of_serviceENS_6ResultISt4pairIiNS_14TermsOfServiceEEEEb+0x248): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::GetCountryCodeRequest::do_run(td::Promise<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)':
Td.cpp:(.text._ZN2td21GetCountryCodeRequest6do_runEONS_7PromiseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZN2td21GetCountryCodeRequest6do_runEONS_7PromiseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE]+0x164): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::GetRecentlyVisitedTMeUrlsRequest::do_run(td::Promise<td::tl::unique_ptr<td::td_api::tMeUrls> >&&)':
Td.cpp:(.text._ZN2td32GetRecentlyVisitedTMeUrlsRequest6do_runEONS_7PromiseINS_2tl10unique_ptrINS_6td_api7tMeUrlsEEEEE[_ZN2td32GetRecentlyVisitedTMeUrlsRequest6do_runEONS_7PromiseINS_2tl10unique_ptrINS_6td_api7tMeUrlsEEEEE]+0x178): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::SendCustomRequestRequest::do_run(td::Promise<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)':
Td.cpp:(.text._ZN2td24SendCustomRequestRequest6do_runEONS_7PromiseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZN2td24SendCustomRequestRequest6do_runEONS_7PromiseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE]+0x1a4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::GetInviteTextRequest::do_run(td::Promise<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&)':
Td.cpp:(.text._ZN2td20GetInviteTextRequest6do_runEONS_7PromiseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE[_ZN2td20GetInviteTextRequest6do_runEONS_7PromiseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE]+0x164): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::Td::on_request(unsigned long long, td::td_api::testNetwork const&)':
Td.cpp:(.text._ZN2td2Td10on_requestEyRKNS_6td_api11testNetworkE+0x15c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o):Td.cpp:(.text._ZN2td2Td25send_get_nearest_dc_queryENS_7PromiseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE+0x158): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::Td::on_request(unsigned long long, td::td_api::saveApplicationLogEvent&)':
Td.cpp:(.text._ZN2td2Td10on_requestEyRNS_6td_api23saveApplicationLogEventE+0x170): undefined reference to `__atomic_load_8'
/usr/bin/ld: Td.cpp:(.text._ZN2td2Td10on_requestEyRNS_6td_api23saveApplicationLogEventE+0x294): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Td.cpp.o): in function `td::RequestActor<td::tl::unique_ptr<td::td_api::tMeUrls> >::loop()':
Td.cpp:(.text._ZN2td12RequestActorINS_2tl10unique_ptrINS_6td_api7tMeUrlsEEEE4loopEv[_ZN2td12RequestActorINS_2tl10unique_ptrINS_6td_api7tMeUrlsEEEE4loopEv]+0x2d4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TopDialogManager.cpp.o): in function `td::TopDialogManager::current_rating_add(double) const':
TopDialogManager.cpp:(.text._ZNK2td16TopDialogManager18current_rating_addEd+0x38): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(TopDialogManager.cpp.o): in function `td::TopDialogManager::normalize_rating()':
TopDialogManager.cpp:(.text._ZN2td16TopDialogManager16normalize_ratingEv+0x50): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(TopDialogManager.cpp.o): in function `td::TopDialogManager::send_toggle_top_peers(bool)':
TopDialogManager.cpp:(.text._ZN2td16TopDialogManager21send_toggle_top_peersEb+0xc0): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TopDialogManager.cpp.o): in function `td::TopDialogManager::remove_dialog(td::TopDialogCategory, td::DialogId, td::tl::unique_ptr<td::telegram_api::InputPeer>)':
TopDialogManager.cpp:(.text._ZN2td16TopDialogManager13remove_dialogENS_17TopDialogCategoryENS_8DialogIdENS_2tl10unique_ptrINS_12telegram_api9InputPeerEEE+0x198): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TopDialogManager.cpp.o): in function `td::TopDialogManager::do_get_top_peers()':
TopDialogManager.cpp:(.text._ZN2td16TopDialogManager16do_get_top_peersEv+0x188): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(UpdatesManager.cpp.o): in function `td::UpdatesManager::get_short_update_date() const':
UpdatesManager.cpp:(.text._ZNK2td14UpdatesManager21get_short_update_dateEv+0x6c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(UpdatesManager.cpp.o): in function `td::UpdatesManager::set_date(int, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
UpdatesManager.cpp:(.text._ZN2td14UpdatesManager8set_dateEibNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x60): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(UpdatesManager.cpp.o): in function `td::UpdatesManager::ping_server()':
UpdatesManager.cpp:(.text._ZN2td14UpdatesManager11ping_serverEv+0x190): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(UpdatesManager.cpp.o): in function `td::UpdatesManager::get_difference(char const*) [clone .part.0]':
UpdatesManager.cpp:(.text._ZN2td14UpdatesManager14get_differenceEPKc.part.0+0x218): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(UpdatesManager.cpp.o): in function `td::UpdatesManager::init_state()':
UpdatesManager.cpp:(.text._ZN2td14UpdatesManager10init_stateEv+0x438): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(WebPagesManager.cpp.o): in function `td::GetWebPageQuery::send(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
WebPagesManager.cpp:(.text._ZN2td15GetWebPageQuery4sendERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi[_ZN2td15GetWebPageQuery4sendERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi]+0x98): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(WebPagesManager.cpp.o): in function `td::WebPagesManager::get_web_page_preview(td::tl::unique_ptr<td::td_api::formattedText>&&, td::Promise<td::Unit>&&)':
WebPagesManager.cpp:(.text._ZN2td15WebPagesManager20get_web_page_previewEONS_2tl10unique_ptrINS_6td_api13formattedTextEEEONS_7PromiseINS_4UnitEEE+0x57c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(WebPagesManager.cpp.o): in function `td::WebPagesManager::on_get_web_page(td::tl::unique_ptr<td::telegram_api::WebPage>&&, td::DialogId)':
WebPagesManager.cpp:(.text._ZN2td15WebPagesManager15on_get_web_pageEONS_2tl10unique_ptrINS_12telegram_api7WebPageEEENS_8DialogIdE+0x814): undefined reference to `__atomic_load_8'
/usr/bin/ld: WebPagesManager.cpp:(.text._ZN2td15WebPagesManager15on_get_web_pageEONS_2tl10unique_ptrINS_12telegram_api7WebPageEEENS_8DialogIdE+0xee8): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(CallbackQueriesManager.cpp.o): in function `td::CallbackQueriesManager::answer_callback_query(long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, td::Promise<td::Unit>&&) const':
CallbackQueriesManager.cpp:(.text._ZNK2td22CallbackQueriesManager21answer_callback_queryExRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS8_iONS_7PromiseINS_4UnitEEE+0x20c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(CallbackQueriesManager.cpp.o): in function `td::GetBotCallbackAnswerQuery::send(td::DialogId, td::MessageId, td::tl::unique_ptr<td::td_api::CallbackQueryPayload> const&, long long)':
CallbackQueriesManager.cpp:(.text._ZN2td25GetBotCallbackAnswerQuery4sendENS_8DialogIdENS_9MessageIdERKNS_2tl10unique_ptrINS_6td_api20CallbackQueryPayloadEEEx[_ZN2td25GetBotCallbackAnswerQuery4sendENS_8DialogIdENS_9MessageIdERKNS_2tl10unique_ptrINS_6td_api20CallbackQueryPayloadEEEx]+0x36c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::NetQueryCreator::create(td::Storer const&, td::DcId, td::NetQuery::Type, td::NetQuery::AuthFlag, td::NetQuery::GzipFlag, double) [clone .constprop.0]':
ContactsManager.cpp:(.text._ZN2td15NetQueryCreator6createERKNS_6StorerENS_4DcIdENS_8NetQuery4TypeENS5_8AuthFlagENS5_8GzipFlagEd.constprop.0+0x48): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::get_my_online_status() const':
ContactsManager.cpp:(.text._ZNK2td15ContactsManager20get_my_online_statusEv+0x4c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::get_user_was_online(td::ContactsManager::User const*, td::UserId) const':
ContactsManager.cpp:(.text._ZNK2td15ContactsManager19get_user_was_onlineEPKNS0_4UserENS_6UserIdE+0x70): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::on_get_contacts_failed(td::Status)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager22on_get_contacts_failedENS_6StatusE+0x54): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::on_update_user_online(td::ContactsManager::User*, td::UserId, td::tl::unique_ptr<td::telegram_api::UserStatus>&&)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager21on_update_user_onlineEPNS0_4UserENS_6UserIdEONS_2tl10unique_ptrINS_12telegram_api10UserStatusEEE+0xb0): undefined reference to `__atomic_load_8'
/usr/bin/ld: ContactsManager.cpp:(.text._ZN2td15ContactsManager21on_update_user_onlineEPNS0_4UserENS_6UserIdEONS_2tl10unique_ptrINS_12telegram_api10UserStatusEEE+0xfc): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o):ContactsManager.cpp:(.text._ZN2td15ContactsManager21on_update_user_onlineEPNS0_4UserENS_6UserIdEONS_2tl10unique_ptrINS_12telegram_api10UserStatusEEE+0x2a4): more undefined references to `__atomic_load_8' follow
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::set_account_ttl(int, td::Promise<td::Unit>&&) const':
ContactsManager.cpp:(.text._ZNK2td15ContactsManager15set_account_ttlEiONS_7PromiseINS_4UnitEEE+0x1a4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::get_account_ttl(td::Promise<int>&&) const':
ContactsManager.cpp:(.text._ZNK2td15ContactsManager15get_account_ttlEONS_7PromiseIiEE+0x180): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::get_active_sessions(td::Promise<td::tl::unique_ptr<td::td_api::sessions> >&&) const':
ContactsManager.cpp:(.text._ZNK2td15ContactsManager19get_active_sessionsEONS_7PromiseINS_2tl10unique_ptrINS_6td_api8sessionsEEEEE+0x180): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::terminate_session(long long, td::Promise<td::Unit>&&) const':
ContactsManager.cpp:(.text._ZNK2td15ContactsManager17terminate_sessionExONS_7PromiseINS_4UnitEEE+0x1a0): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::terminate_all_other_sessions(td::Promise<td::Unit>&&) const':
ContactsManager.cpp:(.text._ZNK2td15ContactsManager28terminate_all_other_sessionsEONS_7PromiseINS_4UnitEEE+0x180): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o):ContactsManager.cpp:(.text._ZNK2td15ContactsManager22get_connected_websitesEONS_7PromiseINS_2tl10unique_ptrINS_6td_api17connectedWebsitesEEEEE+0x180): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::reload_contacts(bool)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager15reload_contactsEb+0x68): undefined reference to `__atomic_load_8'
/usr/bin/ld: ContactsManager.cpp:(.text._ZN2td15ContactsManager15reload_contactsEb+0x244): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::remove_contacts(std::vector<td::UserId, std::allocator<td::UserId> >, td::Promise<td::Unit>&&)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager15remove_contactsESt6vectorINS_6UserIdESaIS2_EEONS_7PromiseINS_4UnitEEE+0x29c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::remove_contacts_by_phone_number(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::vector<td::UserId, std::allocator<td::UserId> >, td::Promise<td::Unit>&&)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager31remove_contacts_by_phone_numberESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EES1_INS_6UserIdESaISA_EEONS_7PromiseINS_4UnitEEE+0x1a8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::reload_user(td::UserId, td::Promise<td::Unit>&&)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager11reload_userENS_6UserIdEONS_7PromiseINS_4UnitEEE+0x19c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::update_user(td::ContactsManager::User*, td::UserId, bool, bool)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager11update_userEPNS0_4UserENS_6UserIdEbb+0x5f8): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::set_my_online_status(bool, bool, bool)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager20set_my_online_statusEbbb+0x80): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::on_get_contacts(td::tl::unique_ptr<td::telegram_api::contacts_Contacts>&&)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager15on_get_contactsEONS_2tl10unique_ptrINS_12telegram_api17contacts_ContactsEEE+0x44): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::update_channel(td::ContactsManager::Channel*, td::ChannelId, bool, bool)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager14update_channelEPNS0_7ChannelENS_9ChannelIdEbb+0x7f4): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::speculative_add_channel_user(td::ChannelId, td::UserId, td::DialogParticipantStatus, td::DialogParticipantStatus)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager28speculative_add_channel_userENS_9ChannelIdENS_6UserIdENS_23DialogParticipantStatusES3_+0x534): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::promote_channel_participant(td::ChannelId, td::UserId, td::DialogParticipantStatus, td::DialogParticipantStatus, td::Promise<td::Unit>&&)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager27promote_channel_participantENS_9ChannelIdENS_6UserIdENS_23DialogParticipantStatusES3_ONS_7PromiseINS_4UnitEEE+0x240): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ContactsManager.cpp.o): in function `td::ContactsManager::restrict_channel_participant(td::ChannelId, td::UserId, td::DialogParticipantStatus, td::DialogParticipantStatus, td::Promise<td::Unit>&&)':
ContactsManager.cpp:(.text._ZN2td15ContactsManager28restrict_channel_participantENS_9ChannelIdENS_6UserIdENS_23DialogParticipantStatusES3_ONS_7PromiseINS_4UnitEEE+0x818): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(InlineQueriesManager.cpp.o): in function `td::InlineQueriesManager::loop()':
InlineQueriesManager.cpp:(.text._ZN2td20InlineQueriesManager4loopEv+0x3c4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: InlineQueriesManager.cpp:(.text._ZN2td20InlineQueriesManager4loopEv+0x8f8): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(InlineQueriesManager.cpp.o): in function `td::SetInlineBotResultsQuery::send(long long, bool, bool, std::vector<td::tl::unique_ptr<td::telegram_api::InputBotInlineResult>, std::allocator<td::tl::unique_ptr<td::telegram_api::InputBotInlineResult> > >&&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
InlineQueriesManager.cpp:(.text._ZN2td24SetInlineBotResultsQuery4sendExbbOSt6vectorINS_2tl10unique_ptrINS_12telegram_api20InputBotInlineResultEEESaIS6_EEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESH_SH_[_ZN2td24SetInlineBotResultsQuery4sendExbbOSt6vectorINS_2tl10unique_ptrINS_12telegram_api20InputBotInlineResultEEESaIS6_EEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESH_SH_]+0xf4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(LanguagePackManager.cpp.o): in function `td::LanguagePackManager::send_language_get_difference_query(td::LanguagePackManager::Language*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, td::Promise<td::Unit>&&)':
LanguagePackManager.cpp:(.text._ZN2td19LanguagePackManager34send_language_get_difference_queryEPNS0_8LanguageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiONS_7PromiseINS_4UnitEEE+0x1f0): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(LanguagePackManager.cpp.o): in function `td::LanguagePackManager::search_language_info(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, td::Promise<td::tl::unique_ptr<td::td_api::languagePackInfo> >)':
LanguagePackManager.cpp:(.text._ZN2td19LanguagePackManager20search_language_infoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_7PromiseINS_2tl10unique_ptrINS_6td_api16languagePackInfoEEEEE+0x18c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(LanguagePackManager.cpp.o): in function `td::LanguagePackManager::get_language_pack_strings(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, td::Promise<td::tl::unique_ptr<td::td_api::languagePackStrings> >) [clone .part.0]':
LanguagePackManager.cpp:(.text._ZN2td19LanguagePackManager25get_language_pack_stringsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EENS_7PromiseINS_2tl10unique_ptrINS_6td_api19languagePackStringsEEEEE.part.0+0x3dc): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: LanguagePackManager.cpp:(.text._ZN2td19LanguagePackManager25get_language_pack_stringsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EENS_7PromiseINS_2tl10unique_ptrINS_6td_api19languagePackStringsEEEEE.part.0+0x77c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(LanguagePackManager.cpp.o):LanguagePackManager.cpp:(.text._ZN2td19LanguagePackManager13get_languagesEbNS_7PromiseINS_2tl10unique_ptrINS_6td_api22localizationTargetInfoEEEEE+0x148): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::Global::server_time_cached() const':
MessagesManager.cpp:(.text._ZNK2td6Global18server_time_cachedEv[_ZNK2td6Global18server_time_cachedEv]+0x20): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::can_revoke_message(td::DialogId, td::MessagesManager::Message const*) const':
MessagesManager.cpp:(.text._ZNK2td15MessagesManager18can_revoke_messageENS_8DialogIdEPKNS0_7MessageE+0x20c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::get_message(td::MessagesManager::Dialog const*, td::MessageId)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager11get_messageEPKNS0_6DialogENS_9MessageIdE+0xcc): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::can_delete_channel_message(td::DialogParticipantStatus, td::MessagesManager::Message const*, bool)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager26can_delete_channel_messageENS_23DialogParticipantStatusEPKNS0_7MessageEb+0x164): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::get_active_live_location_messages(td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager33get_active_live_location_messagesEONS_7PromiseINS_4UnitEEE+0x2d0): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o):MessagesManager.cpp:(.text._ZN2td5storeINS_8logevent20LogEventStorerUnsafeEEEvRKNS_26DialogNotificationSettingsERT_[_ZN2td5storeINS_8logevent20LogEventStorerUnsafeEEEvRKNS_26DialogNotificationSettingsERT_]+0x178): more undefined references to `__atomic_load_8' follow
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::ExportChannelMessageLinkQuery::send(td::ChannelId, td::MessageId, bool, bool)':
MessagesManager.cpp:(.text._ZN2td29ExportChannelMessageLinkQuery4sendENS_9ChannelIdENS_9MessageIdEbb[_ZN2td29ExportChannelMessageLinkQuery4sendENS_9ChannelIdENS_9MessageIdEbb]+0x10c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::send_edit_dialog_photo_query(td::DialogId, td::FileId, td::tl::unique_ptr<td::telegram_api::InputChatPhoto>&&, td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager28send_edit_dialog_photo_queryENS_8DialogIdENS_6FileIdEONS_2tl10unique_ptrINS_12telegram_api14InputChatPhotoEEEONS_7PromiseINS_4UnitEEE+0x28c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: MessagesManager.cpp:(.text._ZN2td15MessagesManager28send_edit_dialog_photo_queryENS_8DialogIdENS_6FileIdEONS_2tl10unique_ptrINS_12telegram_api14InputChatPhotoEEEONS_7PromiseINS_4UnitEEE+0x4b4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::SaveDraftMessageQuery::send(td::DialogId, td::unique_ptr<td::DraftMessage> const&)':
MessagesManager.cpp:(.text._ZN2td21SaveDraftMessageQuery4sendENS_8DialogIdERKNS_10unique_ptrINS_12DraftMessageEEE[_ZN2td21SaveDraftMessageQuery4sendENS_8DialogIdERKNS_10unique_ptrINS_12DraftMessageEEE]+0x1cc): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::reorder_pinned_dialogs_on_server(std::vector<td::DialogId, std::allocator<td::DialogId> > const&, unsigned long long)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager32reorder_pinned_dialogs_on_serverERKSt6vectorINS_8DialogIdESaIS2_EEy+0x1f8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o):MessagesManager.cpp:(.text._ZN2td21GetMessagesViewsQuery4sendENS_8DialogIdEOSt6vectorINS_9MessageIdESaIS3_EEb[_ZN2td21GetMessagesViewsQuery4sendENS_8DialogIdEOSt6vectorINS_9MessageIdESaIS3_EEb]+0x138): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::on_user_dialog_action(td::DialogId, td::UserId, td::tl::unique_ptr<td::td_api::ChatAction>&&, int, td::MessageContentType)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager21on_user_dialog_actionENS_8DialogIdENS_6UserIdEONS_2tl10unique_ptrINS_6td_api10ChatActionEEEiNS_18MessageContentTypeE+0x388): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::GetDialogListActor::send(int, td::ServerMessageId, td::DialogId, int, unsigned long long)':
MessagesManager.cpp:(.text._ZN2td18GetDialogListActor4sendEiNS_15ServerMessageIdENS_8DialogIdEiy[_ZN2td18GetDialogListActor4sendEiNS_15ServerMessageIdENS_8DialogIdEiy]+0xd4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::GetPinnedDialogsActor::send(unsigned long long)':
MessagesManager.cpp:(.text._ZN2td21GetPinnedDialogsActor4sendEy[_ZN2td21GetPinnedDialogsActor4sendEy]+0x94): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::EditMessageActor::send(int, td::DialogId, td::MessageId, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<td::tl::unique_ptr<td::telegram_api::MessageEntity>, std::allocator<td::tl::unique_ptr<td::telegram_api::MessageEntity> > >&&, td::tl::unique_ptr<td::telegram_api::InputMedia>&&, td::tl::unique_ptr<td::telegram_api::ReplyMarkup>&&, unsigned long long)':
MessagesManager.cpp:(.text._ZN2td16EditMessageActor4sendEiNS_8DialogIdENS_9MessageIdERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt6vectorINS_2tl10unique_ptrINS_12telegram_api13MessageEntityEEESaISG_EEONSD_INSE_10InputMediaEEEONSD_INSE_11ReplyMarkupEEEy[_ZN2td16EditMessageActor4sendEiNS_8DialogIdENS_9MessageIdERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt6vectorINS_2tl10unique_ptrINS_12telegram_api13MessageEntityEEESaISG_EEONSD_INSE_10InputMediaEEEONSD_INSE_11ReplyMarkupEEEy]+0x190): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::SetGameScoreActor::send(td::DialogId, td::MessageId, bool, td::tl::unique_ptr<td::telegram_api::InputUser>, int, bool, unsigned long long)':
MessagesManager.cpp:(.text._ZN2td17SetGameScoreActor4sendENS_8DialogIdENS_9MessageIdEbNS_2tl10unique_ptrINS_12telegram_api9InputUserEEEiby[_ZN2td17SetGameScoreActor4sendENS_8DialogIdENS_9MessageIdEbNS_2tl10unique_ptrINS_12telegram_api9InputUserEEEiby]+0x1a8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::update_dialog_unmute_timeout(td::MessagesManager::Dialog*, bool, int, bool, int)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager28update_dialog_unmute_timeoutEPNS0_6DialogEbibi+0x84): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::on_dialog_unmute(td::DialogId)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager16on_dialog_unmuteENS_8DialogIdE+0x70): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::update_scope_unmute_timeout(td::NotificationSettingsScope, int, int)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager27update_scope_unmute_timeoutENS_25NotificationSettingsScopeEii+0x60): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::on_scope_unmute(td::NotificationSettingsScope)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager15on_scope_unmuteENS_25NotificationSettingsScopeE+0x5c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::GetOnlinesQuery::send(td::DialogId)':
MessagesManager.cpp:(.text._ZN2td15GetOnlinesQuery4sendENS_8DialogIdE[_ZN2td15GetOnlinesQuery4sendENS_8DialogIdE]+0xc8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `void td::MessagesManager::Dialog::store<td::logevent::LogEventStorerCalcLength>(td::logevent::LogEventStorerCalcLength&) const':
MessagesManager.cpp:(.text._ZNK2td15MessagesManager6Dialog5storeINS_8logevent24LogEventStorerCalcLengthEEEvRT_[_ZNK2td15MessagesManager6Dialog5storeINS_8logevent24LogEventStorerCalcLengthEEEvRT_]+0x648): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::add_message_to_database(td::MessagesManager::Dialog const*, td::MessagesManager::Message const*, char const*)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager23add_message_to_databaseEPKNS0_6DialogEPKNS0_7MessageEPKc+0x41c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::change_dialog_report_spam_state_on_server(td::DialogId, bool, unsigned long long, td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager41change_dialog_report_spam_state_on_serverENS_8DialogIdEbyONS_7PromiseINS_4UnitEEE+0x2ec): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: MessagesManager.cpp:(.text._ZN2td15MessagesManager41change_dialog_report_spam_state_on_serverENS_8DialogIdEbyONS_7PromiseINS_4UnitEEE+0x4f8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: MessagesManager.cpp:(.text._ZN2td15MessagesManager41change_dialog_report_spam_state_on_serverENS_8DialogIdEbyONS_7PromiseINS_4UnitEEE+0x678): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::delete_dialog_history_from_server(td::DialogId, td::MessageId, bool, bool, bool, unsigned long long, td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager33delete_dialog_history_from_serverENS_8DialogIdENS_9MessageIdEbbbyONS_7PromiseINS_4UnitEEE+0x540): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::send_search_public_dialogs_query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager32send_search_public_dialogs_queryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEONS_7PromiseINS_4UnitEEE+0x41c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o):MessagesManager.cpp:(.text._ZN2td15MessagesManager18get_common_dialogsENS_6UserIdENS_8DialogIdEibONS_7PromiseINS_4UnitEEE+0x500): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::fix_new_dialog(td::MessagesManager::Dialog*, td::unique_ptr<td::MessagesManager::Message>&&, td::MessageId, long long, int, td::MessageId, bool)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager14fix_new_dialogEPNS0_6DialogEONS_10unique_ptrINS0_7MessageEEENS_9MessageIdExiS7_b+0x124c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::ttl_db_on_result(td::Result<std::pair<std::vector<std::pair<td::DialogId, td::BufferSlice>, std::allocator<std::pair<td::DialogId, td::BufferSlice> > >, int> >, bool)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager16ttl_db_on_resultENS_6ResultISt4pairISt6vectorIS2_INS_8DialogIdENS_11BufferSliceEESaIS6_EEiEEEb+0x2b8): undefined reference to `__atomic_load_8'
/usr/bin/ld: MessagesManager.cpp:(.text._ZN2td15MessagesManager16ttl_db_on_resultENS_6ResultISt4pairISt6vectorIS2_INS_8DialogIdENS_11BufferSliceEESaIS6_EEiEEEb+0x378): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::init() [clone .part.0]':
MessagesManager.cpp:(.text._ZN2td15MessagesManager4initEv.part.0+0x758): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::is_message_edited_recently(td::FullMessageId, int)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager26is_message_edited_recentlyENS_13FullMessageIdEi+0x80): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::read_message_contents_on_server(td::DialogId, std::vector<td::MessageId, std::allocator<td::MessageId> >, unsigned long long)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager31read_message_contents_on_serverENS_8DialogIdESt6vectorINS_9MessageIdESaIS3_EEy+0x400): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::clear_all_draft_messages(bool, td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager24clear_all_draft_messagesEbONS_7PromiseINS_4UnitEEE+0x1a4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::set_dialog_draft_message(td::DialogId, td::tl::unique_ptr<td::td_api::draftMessage>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager24set_dialog_draft_messageENS_8DialogIdEONS_2tl10unique_ptrINS_6td_api12draftMessageEEE+0x148): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::create_new_channel_chat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long long&, td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager23create_new_channel_chatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbS8_RxONS_7PromiseINS_4UnitEEE+0x414): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::unload_dialog(td::DialogId)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager13unload_dialogENS_8DialogIdE+0xa0): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::loop()':
MessagesManager.cpp:(.text._ZN2td15MessagesManager4loopEv+0x12c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::on_update_service_notification(td::tl::unique_ptr<td::telegram_api::updateServiceNotification>&&, bool, td::Promise<td::Unit>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager30on_update_service_notificationEONS_2tl10unique_ptrINS_12telegram_api25updateServiceNotificationEEEbONS_7PromiseINS_4UnitEEE+0x4a0): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::get_message_to_send(td::MessagesManager::Dialog*, td::MessageId, bool, bool, td::unique_ptr<td::MessageContent>&&, bool*, td::unique_ptr<td::MessagesManager::MessageForwardInfo>)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager19get_message_to_sendEPNS0_6DialogENS_9MessageIdEbbONS_10unique_ptrINS_14MessageContentEEEPbNS4_INS0_18MessageForwardInfoEEE+0x104): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::add_local_message(td::DialogId, td::UserId, td::MessageId, bool, td::tl::unique_ptr<td::td_api::InputMessageContent>&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager17add_local_messageENS_8DialogIdENS_6UserIdENS_9MessageIdEbONS_2tl10unique_ptrINS_6td_api19InputMessageContentEEE+0x3c0): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::do_send_bot_start_message(td::UserId, td::DialogId, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, td::MessagesManager::Message const*)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager25do_send_bot_start_messageENS_6UserIdENS_8DialogIdERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS0_7MessageE+0x218): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::process_get_channel_difference_updates(td::DialogId, std::vector<td::tl::unique_ptr<td::telegram_api::Message>, std::allocator<td::tl::unique_ptr<td::telegram_api::Message> > >&&, std::vector<td::tl::unique_ptr<td::telegram_api::Update>, std::allocator<td::tl::unique_ptr<td::telegram_api::Update> > >&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager38process_get_channel_difference_updatesENS_8DialogIdEOSt6vectorINS_2tl10unique_ptrINS_12telegram_api7MessageEEESaIS7_EEOS2_INS4_INS5_6UpdateEEESaISC_EE+0x1a4): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::continue_send_message(td::DialogId, td::unique_ptr<td::MessagesManager::Message>&&, unsigned long long)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager21continue_send_messageENS_8DialogIdEONS_10unique_ptrINS0_7MessageEEEy+0x5c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessagesManager.cpp.o): in function `td::MessagesManager::on_binlog_events(std::vector<td::BinlogEvent, std::allocator<td::BinlogEvent> >&&)':
MessagesManager.cpp:(.text._ZN2td15MessagesManager16on_binlog_eventsEOSt6vectorINS_11BinlogEventESaIS2_EE+0x3adc): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(PollManager.cpp.o): in function `td::GetPollResultsQuery::send(td::PollId, td::FullMessageId)':
PollManager.cpp:(.text._ZN2td19GetPollResultsQuery4sendENS_6PollIdENS_13FullMessageIdE[_ZN2td19GetPollResultsQuery4sendENS_6PollIdENS_13FullMessageIdE]+0x164): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(PollManager.cpp.o): in function `td::SetPollAnswerActor::send(td::FullMessageId, std::vector<td::BufferSlice, std::allocator<td::BufferSlice> >&&, unsigned long long, td::ObjectPool<td::NetQuery>::WeakPtr*)':
PollManager.cpp:(.text._ZN2td18SetPollAnswerActor4sendENS_13FullMessageIdEOSt6vectorINS_11BufferSliceESaIS3_EEyPNS_10ObjectPoolINS_8NetQueryEE7WeakPtrE[_ZN2td18SetPollAnswerActor4sendENS_13FullMessageIdEOSt6vectorINS_11BufferSliceESaIS3_EEyPNS_10ObjectPoolINS_8NetQueryEE7WeakPtrE]+0x13c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(PollManager.cpp.o): in function `td::StopPollActor::send(td::FullMessageId, td::unique_ptr<td::ReplyMarkup>&&)':
PollManager.cpp:(.text._ZN2td13StopPollActor4sendENS_13FullMessageIdEONS_10unique_ptrINS_11ReplyMarkupEEE[_ZN2td13StopPollActor4sendENS_13FullMessageIdEONS_10unique_ptrINS_11ReplyMarkupEEE]+0x218): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(SecretChatsManager.cpp.o): in function `td::SecretChatsManager::make_secret_chat_context(int)::Context::unix_time()':
SecretChatsManager.cpp:(.text._ZZN2td18SecretChatsManager24make_secret_chat_contextEiEN7Context9unix_timeEv+0x28): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ClientActor.cpp.o): in function `td::get_pending_network_query_count()':
ClientActor.cpp:(.text._ZN2td31get_pending_network_query_countEv+0x24): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NetQueryCreator.cpp.o): in function `td::NetQuery::NetQuery(td::NetQuery::State, unsigned long long, td::BufferSlice&&, td::BufferSlice&&, td::DcId, td::NetQuery::Type, td::NetQuery::AuthFlag, td::NetQuery::GzipFlag, int)':
NetQueryCreator.cpp:(.text._ZN2td8NetQueryC2ENS0_5StateEyONS_11BufferSliceES3_NS_4DcIdENS0_4TypeENS0_8AuthFlagENS0_8GzipFlagEi[_ZN2td8NetQueryC5ENS0_5StateEyONS_11BufferSliceES3_NS_4DcIdENS0_4TypeENS0_8AuthFlagENS0_8GzipFlagEi]+0x1c4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(NetQueryCreator.cpp.o): in function `td::NetQueryCreator::create(unsigned long long, td::Storer const&, td::DcId, td::NetQuery::Type, td::NetQuery::AuthFlag, td::NetQuery::GzipFlag, double)':
NetQueryCreator.cpp:(.text._ZN2td15NetQueryCreator6createEyRKNS_6StorerENS_4DcIdENS_8NetQuery4TypeENS5_8AuthFlagENS5_8GzipFlagEd+0x3c4): undefined reference to `__atomic_load_8'
/usr/bin/ld: NetQueryCreator.cpp:(.text._ZN2td15NetQueryCreator6createEyRKNS_6StorerENS_4DcIdENS_8NetQuery4TypeENS5_8AuthFlagENS5_8GzipFlagEd+0x3e4): undefined reference to `__atomic_store_8'
/usr/bin/ld: NetQueryCreator.cpp:(.text._ZN2td15NetQueryCreator6createEyRKNS_6StorerENS_4DcIdENS_8NetQuery4TypeENS5_8AuthFlagENS5_8GzipFlagEd+0xa34): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libtdcore.a(PublicRsaKeyWatchdog.cpp.o): in function `td::PublicRsaKeyWatchdog::loop() [clone .part.0]':
PublicRsaKeyWatchdog.cpp:(.text._ZN2td20PublicRsaKeyWatchdog4loopEv.part.0+0x144): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TdDb.cpp.o): in function `td::ConcurrentBinlog::next_id(int)':
TdDb.cpp:(.text._ZN2td16ConcurrentBinlog7next_idEi[_ZN2td16ConcurrentBinlog7next_idEi]+0x20): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TdDb.cpp.o): in function `td::ConcurrentBinlog::next_id()':
TdDb.cpp:(.text._ZN2td16ConcurrentBinlog7next_idEv[_ZN2td16ConcurrentBinlog7next_idEv]+0x20): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TdDb.cpp.o): in function `td::BinlogKeyValue<td::ConcurrentBinlog>::erase_by_prefix(td::Slice)':
TdDb.cpp:(.text._ZN2td14BinlogKeyValueINS_16ConcurrentBinlogEE15erase_by_prefixENS_5SliceE[_ZN2td14BinlogKeyValueINS_16ConcurrentBinlogEE15erase_by_prefixENS_5SliceE]+0x140): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TdDb.cpp.o): in function `td::BinlogKeyValue<td::ConcurrentBinlog>::erase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
TdDb.cpp:(.text._ZN2td14BinlogKeyValueINS_16ConcurrentBinlogEE5eraseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN2td14BinlogKeyValueINS_16ConcurrentBinlogEE5eraseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x88): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(TdDb.cpp.o):TdDb.cpp:(.text._ZN2td14BinlogKeyValueINS_16ConcurrentBinlogEE3setENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_[_ZN2td14BinlogKeyValueINS_16ConcurrentBinlogEE3setENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_]+0x154): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(AuthManager.cpp.o): in function `td::AuthManager::on_authorization(td::tl::unique_ptr<td::telegram_api::auth_authorization>)':
AuthManager.cpp:(.text._ZN2td11AuthManager16on_authorizationENS_2tl10unique_ptrINS_12telegram_api18auth_authorizationEEE+0x70): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(AuthManager.cpp.o): in function `td::AuthManager::set_phone_number(unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, td::tl::unique_ptr<td::td_api::phoneNumberAuthenticationSettings>)':
AuthManager.cpp:(.text._ZN2td11AuthManager16set_phone_numberEyNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_2tl10unique_ptrINS_6td_api33phoneNumberAuthenticationSettingsEEE+0x274): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(AutoDownloadSettings.cpp.o): in function `td::get_auto_download_settings_presets(td::Td*, td::Promise<td::tl::unique_ptr<td::td_api::autoDownloadSettingsPresets> >&&)':
AutoDownloadSettings.cpp:(.text._ZN2td34get_auto_download_settings_presetsEPNS_2TdEONS_7PromiseINS_2tl10unique_ptrINS_6td_api27autoDownloadSettingsPresetsEEEEE+0x1a0): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(AutoDownloadSettings.cpp.o): in function `td::set_auto_download_settings(td::Td*, td::NetType, td::AutoDownloadSettings, td::Promise<td::Unit>&&)':
AutoDownloadSettings.cpp:(.text._ZN2td26set_auto_download_settingsEPNS_2TdENS_7NetTypeENS_20AutoDownloadSettingsEONS_7PromiseINS_4UnitEEE+0x1ec): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(BackgroundManager.cpp.o): in function `td::BackgroundManager::reload_background_from_server(td::BackgroundId, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, td::tl::unique_ptr<td::telegram_api::InputWallPaper>&&, td::Promise<td::Unit>&&) const':
BackgroundManager.cpp:(.text._ZNK2td17BackgroundManager29reload_background_from_serverENS_12BackgroundIdERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEONS_2tl10unique_ptrINS_12telegram_api14InputWallPaperEEEONS_7PromiseINS_4UnitEEE+0x1f4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(BackgroundManager.cpp.o): in function `td::BackgroundManager::reset_backgrounds(td::Promise<td::Unit>&&)':
BackgroundManager.cpp:(.text._ZN2td17BackgroundManager17reset_backgroundsEONS_7PromiseINS_4UnitEEE+0x1b4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(BackgroundManager.cpp.o):BackgroundManager.cpp:(.text._ZN2td17BackgroundManager15get_backgroundsEONS_7PromiseINS_4UnitEEE+0x1b0): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(ConfigManager.cpp.o): in function `td::get_full_config(td::DcOption, td::Promise<td::tl::unique_ptr<td::telegram_api::config> >, td::ActorShared<td::Actor>)::SimpleAuthData::get_server_time_difference()':
ConfigManager.cpp:(.text._ZZN2td15get_full_configENS_8DcOptionENS_7PromiseINS_2tl10unique_ptrINS_12telegram_api6configEEEEENS_11ActorSharedINS_5ActorEEEEN14SimpleAuthData26get_server_time_differenceEv+0x18): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ConfigManager.cpp.o): in function `td::ConfigRecoverer::do_on_simple_config(td::Result<td::tl::unique_ptr<td::telegram_api::help_configSimple> >)':
ConfigManager.cpp:(.text._ZN2td15ConfigRecoverer19do_on_simple_configENS_6ResultINS_2tl10unique_ptrINS_12telegram_api17help_configSimpleEEEEE[_ZN2td15ConfigRecoverer19do_on_simple_configENS_6ResultINS_2tl10unique_ptrINS_12telegram_api17help_configSimpleEEEEE]+0x234): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(ConfigManager.cpp.o): in function `td::ConfigManager::request_config_from_dc_impl(td::DcId)':
ConfigManager.cpp:(.text._ZN2td13ConfigManager27request_config_from_dc_implENS_4DcIdE+0xa8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(ConfigManager.cpp.o): in function `td::get_full_config(td::DcOption, td::Promise<td::tl::unique_ptr<td::telegram_api::config> >, td::ActorShared<td::Actor>)::GetConfigActor::start_up()':
ConfigManager.cpp:(.text._ZZN2td15get_full_configENS_8DcOptionENS_7PromiseINS_2tl10unique_ptrINS_12telegram_api6configEEEEENS_11ActorSharedINS_5ActorEEEEN14GetConfigActor8start_upEv+0x450): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(DeviceTokenManager.cpp.o): in function `td::DeviceTokenManager::loop() [clone .part.0]':
DeviceTokenManager.cpp:(.text._ZN2td18DeviceTokenManager4loopEv.part.0+0x1d8): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: DeviceTokenManager.cpp:(.text._ZN2td18DeviceTokenManager4loopEv.part.0+0x40c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(DialogParticipant.cpp.o): in function `td::DialogParticipantStatus::update_restrictions() const':
DialogParticipant.cpp:(.text._ZNK2td23DialogParticipantStatus19update_restrictionsEv+0x168): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(Global.cpp.o): in function `td::Global::update_dns_time_difference(double)':
Global.cpp:(.text._ZN2td6Global26update_dns_time_differenceEd+0x1c): undefined reference to `__atomic_store_8'
/usr/bin/ld: libtdcore.a(Global.cpp.o): in function `td::Global::get_dns_time_difference() const':
Global.cpp:(.text._ZNK2td6Global23get_dns_time_differenceEv+0x20): undefined reference to `__atomic_load_8'
/usr/bin/ld: Global.cpp:(.text._ZNK2td6Global23get_dns_time_differenceEv+0x44): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(Global.cpp.o): in function `td::Global::init(td::TdParameters const&, td::ActorId<td::Td>, td::unique_ptr<td::TdDb>)':
Global.cpp:(.text._ZN2td6Global4initERKNS_12TdParametersENS_7ActorIdINS_2TdEEENS_10unique_ptrINS_4TdDbEEE+0x20c): undefined reference to `__atomic_store_8'
/usr/bin/ld: Global.cpp:(.text._ZN2td6Global4initERKNS_12TdParametersENS_7ActorIdINS_2TdEEENS_10unique_ptrINS_4TdDbEEE+0x234): undefined reference to `__atomic_store_8'
/usr/bin/ld: Global.cpp:(.text._ZN2td6Global4initERKNS_12TdParametersENS_7ActorIdINS_2TdEEENS_10unique_ptrINS_4TdDbEEE+0x300): undefined reference to `__atomic_store_8'
/usr/bin/ld: libtdcore.a(Global.cpp.o): in function `td::Global::update_server_time_difference(double)':
Global.cpp:(.text._ZN2td6Global29update_server_time_differenceEd+0x40): undefined reference to `__atomic_load_8'
/usr/bin/ld: Global.cpp:(.text._ZN2td6Global29update_server_time_differenceEd+0x74): undefined reference to `__atomic_store_8'
/usr/bin/ld: libtdcore.a(Global.cpp.o): in function `td::ObjectPool<td::NetQuery>::~ObjectPool()':
Global.cpp:(.text._ZN2td10ObjectPoolINS_8NetQueryEED2Ev[_ZN2td10ObjectPoolINS_8NetQueryEED5Ev]+0x27c): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libtdcore.a(MessageContent.cpp.o): in function `td::get_input_message_content(td::DialogId, td::tl::unique_ptr<td::td_api::InputMessageContent>&&, td::Td*)':
MessageContent.cpp:(.text._ZN2td25get_input_message_contentENS_8DialogIdEONS_2tl10unique_ptrINS_6td_api19InputMessageContentEEEPNS_2TdE+0x21a0): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(MessageContent.cpp.o): in function `td::get_message_content_object(td::MessageContent const*, td::Td*, int, bool)':
MessageContent.cpp:(.text._ZN2td26get_message_content_objectEPKNS_14MessageContentEPNS_2TdEib+0xf00): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(AuthDataShared.cpp.o): in function `td::AuthDataSharedImpl::get_server_time_difference()':
AuthDataShared.cpp:(.text._ZN2td18AuthDataSharedImpl26get_server_time_differenceEv[_ZN2td18AuthDataSharedImpl26get_server_time_differenceEv]+0x5c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(DcAuthManager.cpp.o): in function `td::DcAuthManager::dc_loop(td::DcAuthManager::DcInfo&)':
DcAuthManager.cpp:(.text._ZN2td13DcAuthManager7dc_loopERNS0_6DcInfoE+0xb4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: DcAuthManager.cpp:(.text._ZN2td13DcAuthManager7dc_loopERNS0_6DcInfoE+0x630): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(NetStatsManager.cpp.o): in function `auto td::NetStatsManager::reset_network_stats()::{lambda(auto:1&)#1}::operator()<td::NetStatsManager::NetStatsInfo>(td::NetStatsManager::NetStatsInfo&) const [clone .isra.0]':
NetStatsManager.cpp:(.text._ZZN2td15NetStatsManager19reset_network_statsEvENKUlRT_E_clINS0_12NetStatsInfoEEEDaS2_.isra.0+0x64): undefined reference to `__atomic_load_8'
/usr/bin/ld: NetStatsManager.cpp:(.text._ZZN2td15NetStatsManager19reset_network_statsEvENKUlRT_E_clINS0_12NetStatsInfoEEEDaS2_.isra.0+0x7c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NetStatsManager.cpp.o): in function `td::NetStatsManager::reset_network_stats()':
NetStatsManager.cpp:(.text._ZN2td15NetStatsManager19reset_network_statsEv+0xc8): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NetStatsManager.cpp.o): in function `td::NetStatsManager::update(td::NetStatsManager::NetStatsInfo&, bool)':
NetStatsManager.cpp:(.text._ZN2td15NetStatsManager6updateERNS0_12NetStatsInfoEb+0x58): undefined reference to `__atomic_load_8'
/usr/bin/ld: NetStatsManager.cpp:(.text._ZN2td15NetStatsManager6updateERNS0_12NetStatsInfoEb+0x70): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NetStatsManager.cpp.o):NetStatsManager.cpp:(.text._ZN2td15NetStatsManager9info_loopERNS0_12NetStatsInfoE+0x54): more undefined references to `__atomic_load_8' follow
/usr/bin/ld: libtdcore.a(Session.cpp.o): in function `td::NetQuery::operator=(td::NetQuery&&)':
Session.cpp:(.text._ZN2td8NetQueryaSEOS0_[_ZN2td8NetQueryaSEOS0_]+0x13c): undefined reference to `__atomic_store_8'
/usr/bin/ld: Session.cpp:(.text._ZN2td8NetQueryaSEOS0_[_ZN2td8NetQueryaSEOS0_]+0x338): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libtdcore.a(Session.cpp.o): in function `td::NetQuery::~NetQuery()':
Session.cpp:(.text._ZN2td8NetQueryD2Ev[_ZN2td8NetQueryD5Ev]+0x1b0): undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libtdcore.a(Session.cpp.o): in function `td::Session::return_query(td::ObjectPool<td::NetQuery>::OwnerPtr&&)':
Session.cpp:(.text._ZN2td7Session12return_queryEONS_10ObjectPoolINS_8NetQueryEE8OwnerPtrE+0x34): undefined reference to `__atomic_store_8'
/usr/bin/ld: libtdcore.a(Session.cpp.o): in function `td::Session::connection_send_query(td::Session::ConnectionInfo*, td::ObjectPool<td::NetQuery>::OwnerPtr&&, unsigned long long)':
Session.cpp:(.text._ZN2td7Session21connection_send_queryEPNS0_14ConnectionInfoEONS_10ObjectPoolINS_8NetQueryEE8OwnerPtrEy+0xc8): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(Session.cpp.o): in function `td::Session::connection_send_bind_key(td::Session::ConnectionInfo*)':
Session.cpp:(.text._ZN2td7Session24connection_send_bind_keyEPNS0_14ConnectionInfoE+0x64): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Session.cpp.o): in function `td::Session::send(td::ObjectPool<td::NetQuery>::OwnerPtr&&)':
Session.cpp:(.text._ZN2td7Session4sendEONS_10ObjectPoolINS_8NetQueryEE8OwnerPtrE+0x94): undefined reference to `__atomic_store_8'
/usr/bin/ld: libtdcore.a(NotificationSettings.cpp.o): in function `td::get_chat_notification_settings_object(td::DialogNotificationSettings const*)':
NotificationSettings.cpp:(.text._ZN2td37get_chat_notification_settings_objectEPKNS_26DialogNotificationSettingsE+0x84): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationSettings.cpp.o): in function `td::get_scope_notification_settings_object(td::ScopeNotificationSettings const*)':
NotificationSettings.cpp:(.text._ZN2td38get_scope_notification_settings_objectEPKNS_25ScopeNotificationSettingsE+0x80): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationSettings.cpp.o): in function `td::get_dialog_notification_settings(td::tl::unique_ptr<td::td_api::chatNotificationSettings>&&, bool)':
NotificationSettings.cpp:(.text._ZN2td32get_dialog_notification_settingsEONS_2tl10unique_ptrINS_6td_api24chatNotificationSettingsEEEb+0xa0): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationSettings.cpp.o): in function `td::get_scope_notification_settings(td::tl::unique_ptr<td::td_api::scopeNotificationSettings>&&)':
NotificationSettings.cpp:(.text._ZN2td31get_scope_notification_settingsEONS_2tl10unique_ptrINS_6td_api25scopeNotificationSettingsEEE+0x9c): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationSettings.cpp.o): in function `td::get_dialog_notification_settings(td::tl::unique_ptr<td::telegram_api::peerNotifySettings>&&, bool, bool, bool, bool)':
NotificationSettings.cpp:(.text._ZN2td32get_dialog_notification_settingsEONS_2tl10unique_ptrINS_12telegram_api18peerNotifySettingsEEEbbbb+0x2b8): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(NotificationSettings.cpp.o):NotificationSettings.cpp:(.text._ZN2td31get_scope_notification_settingsEONS_2tl10unique_ptrINS_12telegram_api18peerNotifySettingsEEEbb+0x244): more undefined references to `__atomic_load_8' follow
/usr/bin/ld: libtdcore.a(Payments.cpp.o): in function `td::NetQueryCreator::create(td::Storer const&, td::DcId, td::NetQuery::Type, td::NetQuery::AuthFlag, td::NetQuery::GzipFlag, double) [clone .constprop.0]':
Payments.cpp:(.text._ZN2td15NetQueryCreator6createERKNS_6StorerENS_4DcIdENS_8NetQuery4TypeENS5_8AuthFlagENS5_8GzipFlagEd.constprop.0+0x48): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Payments.cpp.o): in function `td::answer_pre_checkout_query(long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, td::Promise<td::Unit>&&)':
Payments.cpp:(.text._ZN2td25answer_pre_checkout_queryExRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEONS_7PromiseINS_4UnitEEE+0x18c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Payments.cpp.o): in function `td::get_payment_form(td::ServerMessageId, td::Promise<td::tl::unique_ptr<td::td_api::paymentForm> >&&)':
Payments.cpp:(.text._ZN2td16get_payment_formENS_15ServerMessageIdEONS_7PromiseINS_2tl10unique_ptrINS_6td_api11paymentFormEEEEE+0x158): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Payments.cpp.o): in function `td::get_payment_receipt(td::ServerMessageId, td::Promise<td::tl::unique_ptr<td::td_api::paymentReceipt> >&&)':
Payments.cpp:(.text._ZN2td19get_payment_receiptENS_15ServerMessageIdEONS_7PromiseINS_2tl10unique_ptrINS_6td_api14paymentReceiptEEEEE+0x158): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Payments.cpp.o): in function `td::get_saved_order_info(td::Promise<td::tl::unique_ptr<td::td_api::orderInfo> >&&)':
Payments.cpp:(.text._ZN2td20get_saved_order_infoEONS_7PromiseINS_2tl10unique_ptrINS_6td_api9orderInfoEEEEE+0x148): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(Payments.cpp.o):Payments.cpp:(.text._ZN2td23delete_saved_order_infoEONS_7PromiseINS_4UnitEEE+0xa8): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o): in function `td::TempPasswordState::as_td_api() const':
PasswordManager.cpp:(.text._ZNK2td17TempPasswordState9as_td_apiEv+0x4c): undefined reference to `__atomic_load_8'
/usr/bin/ld: PasswordManager.cpp:(.text._ZNK2td17TempPasswordState9as_td_apiEv+0xbc): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o): in function `td::PasswordManager::get_temp_password_state_sync()':
PasswordManager.cpp:(.text._ZN2td15PasswordManager28get_temp_password_state_syncEv+0x184): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o): in function `td::PasswordManager::do_create_temp_password(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, td::PasswordManager::PasswordState&&, td::Promise<td::TempPasswordState>)':
PasswordManager.cpp:(.text._ZN2td15PasswordManager23do_create_temp_passwordENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiONS0_13PasswordStateENS_7PromiseINS_17TempPasswordStateEEE+0xbc): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o): in function `td::PasswordManager::do_get_full_state(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, td::PasswordManager::PasswordState, td::Promise<td::PasswordManager::PasswordFullState>)':
PasswordManager.cpp:(.text._ZN2td15PasswordManager17do_get_full_stateENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_13PasswordStateENS_7PromiseINS0_17PasswordFullStateEEE+0xcc): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o): in function `td::PasswordManager::check_recovery_email_address_code(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, td::Promise<td::tl::unique_ptr<td::td_api::passwordState> >)':
PasswordManager.cpp:(.text._ZN2td15PasswordManager33check_recovery_email_address_codeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_7PromiseINS_2tl10unique_ptrINS_6td_api13passwordStateEEEEE+0x90): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o): in function `td::PasswordManager::resend_recovery_email_address_code(td::Promise<td::tl::unique_ptr<td::td_api::passwordState> >)':
PasswordManager.cpp:(.text._ZN2td15PasswordManager34resend_recovery_email_address_codeENS_7PromiseINS_2tl10unique_ptrINS_6td_api13passwordStateEEEEE+0x90): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o): in function `td::PasswordManager::send_email_address_verification_code(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, td::Promise<td::tl::unique_ptr<td::td_api::emailAddressAuthenticationCodeInfo> >)':
PasswordManager.cpp:(.text._ZN2td15PasswordManager36send_email_address_verification_codeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_7PromiseINS_2tl10unique_ptrINS_6td_api34emailAddressAuthenticationCodeInfoEEEEE+0x98): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(PasswordManager.cpp.o):PasswordManager.cpp:(.text._ZN2td15PasswordManager37check_email_address_verification_codeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_7PromiseINS_4UnitEEE+0xa4): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: libtdcore.a(SecureValue.cpp.o): in function `td::get_secure_file(td::FileManager*, td::tl::unique_ptr<td::td_api::InputFile>&&)':
SecureValue.cpp:(.text._ZN2tdL15get_secure_fileEPNS_11FileManagerEONS_2tl10unique_ptrINS_6td_api9InputFileEEE+0x1f4): undefined reference to `__atomic_load_8'
/usr/bin/ld: libtdcore.a(FileGenerateManager.cpp.o): in function `td::MapDownloadGenerateActor::start_up()':
FileGenerateManager.cpp:(.text._ZN2td24MapDownloadGenerateActor8start_upEv[_ZN2td24MapDownloadGenerateActor8start_upEv]+0x4ac): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(FileUploader.cpp.o): in function `td::FileUploader::start_part(td::Part, int)':
FileUploader.cpp:(.text._ZN2td12FileUploader10start_partENS_4PartEi+0x260): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: FileUploader.cpp:(.text._ZN2td12FileUploader10start_partENS_4PartEi+0x6f4): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(SecretChatActor.cpp.o): in function `td::SecretChatActor::create_net_query(td::logevent::OutboundSecretMessage const&)':
SecretChatActor.cpp:(.text._ZN2td15SecretChatActor16create_net_queryERKNS_8logevent21OutboundSecretMessageE+0x78): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: SecretChatActor.cpp:(.text._ZN2td15SecretChatActor16create_net_queryERKNS_8logevent21OutboundSecretMessageE+0x21c): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: libtdcore.a(SecretChatActor.cpp.o):SecretChatActor.cpp:(.text._ZN2td15SecretChatActor16create_net_queryERKNS_8logevent21OutboundSecretMessageE+0x468): more undefined references to `__atomic_fetch_add_8' follow
/usr/bin/ld: tddb/libtddb.a(ConcurrentBinlog.cpp.o): in function `td::ConcurrentBinlog::init_impl(td::unique_ptr<td::Binlog>, int)':
ConcurrentBinlog.cpp:(.text._ZN2td16ConcurrentBinlog9init_implENS_10unique_ptrINS_6BinlogEEEi+0x114): undefined reference to `__atomic_store_8'
/usr/bin/ld: ConcurrentBinlog.cpp:(.text._ZN2td16ConcurrentBinlog9init_implENS_10unique_ptrINS_6BinlogEEEi+0x250): undefined reference to `__atomic_load_8'
/usr/bin/ld: tdutils/libtdutils.a(Random.cpp.o): in function `td::Random::secure_bytes(unsigned char*, unsigned int)':
Random.cpp:(.text._ZN2td6Random12secure_bytesEPhj+0x58): undefined reference to `__atomic_load_8'
/usr/bin/ld: Random.cpp:(.text._ZN2td6Random12secure_bytesEPhj+0x11c): undefined reference to `__atomic_load_8'
/usr/bin/ld: tdutils/libtdutils.a(Random.cpp.o): in function `td::Random::add_seed(td::Slice, double)':
Random.cpp:(.text._ZN2td6Random8add_seedENS_5SliceEd+0x38): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tg_cli.dir/build.make:112: tg_cli] Error 1
make[1]: *** [CMakeFiles/Makefile2:344: CMakeFiles/tg_cli.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
levlam commented 4 years ago

Add

link_libraries(atomic)

to the top-level CMakeLists.txt at line 4: https://github.com/tdlib/td/blob/a0fa744735e524956c6d55287121da69e85c8532/CMakeLists.txt#L4.

nekohasekai commented 4 years ago

@levlam Thanks

TimeZlicer commented 2 years ago

just sharing, it is also possible to pass the following to cmake via option

-DCMAKE_CXX_STANDARD_LIBRARIES="-latomic"