Your message dated Wed, 21 Sep 2022 18:42:08 +0000
with message-id <[email protected]>
and subject line Bug#1017965: fixed in telegram-desktop 4.2.0+ds-1
has caused the Debian Bug report #1017965,
regarding telegram-desktop: ftbfs on riscv64 ("undefined reference to 
`__atomic_compare_exchange_1'")
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1017965: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017965
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: telegram-desktop
Version: 4.1.1+ds-1 
Severity: normal
Tags: ftbfs, patch
User: [email protected]
Usertags: riscv64
X-Debbugs-Cc: [email protected]

Dear telegram-desktop Maintainer,

The package has a ftbfs on riscv64 due to:

```
[ 18%] Linking CXX executable codegen_style
cd /<<PKGBUILDDIR>>/obj-riscv64-linux-gnu/Telegram/codegen/codegen/style && 
/usr/bin/cmake -E cmake_link_script CMakeFiles/codegen_style.dir/link.txt 
--verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security 
-ftemplate-backtrace-limit=0 -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=invalid-pch -Wl,-z,relro -Wl,-z,now -Wl,--as-needed 
CMakeFiles/codegen_style.dir/generator.cpp.o 
CMakeFiles/codegen_style.dir/main.cpp.o 
CMakeFiles/codegen_style.dir/module.cpp.o 
CMakeFiles/codegen_style.dir/options.cpp.o 
CMakeFiles/codegen_style.dir/parsed_file.cpp.o 
CMakeFiles/codegen_style.dir/processor.cpp.o 
CMakeFiles/codegen_style.dir/structure_types.cpp.o 
../common/CMakeFiles/codegen_common.dir/basic_tokenized_file.cpp.o 
../common/CMakeFiles/codegen_common.dir/checked_utf8_string.cpp.o 
../common/CMakeFiles/codegen_common.dir/clean_file.cpp.o 
../common/CMakeFiles/codegen_common.dir/cpp_file.cpp.o 
../common/CMakeFiles/codegen_common.dir/logging.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/common/crl_common_fp_exceptions.cpp.o
 ../../../lib_crl/CMakeFiles/lib_crl.dir/crl/common/crl_common_list.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/common/crl_common_on_main.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/common/crl_common_queue.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/dispatch/crl_dispatch_async.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/dispatch/crl_dispatch_queue.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/dispatch/crl_dispatch_semaphore.cpp.o
 ../../../lib_crl/CMakeFiles/lib_crl.dir/crl/linux/crl_linux_time.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/qt/crl_qt_async.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/qt/crl_qt_semaphore.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/winapi/crl_winapi_async.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/winapi/crl_winapi_fp_exceptions.cpp.o
 ../../../lib_crl/CMakeFiles/lib_crl.dir/crl/winapi/crl_winapi_list.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/winapi/crl_winapi_semaphore.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/winapi/crl_winapi_time.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/crl_object_on_thread.cpp.o 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/crl_time.cpp.o -o codegen_style  
../../../../cmake/linux_jemalloc_helper/CMakeFiles/linux_jemalloc_helper.dir/linux_jemalloc_helper.cpp.o
 ../../../lib_base/liblib_base.a -ldl 
/usr/lib/riscv64-linux-gnu/libQt5Network.so.5.15.4 
/usr/lib/riscv64-linux-gnu/libQt5Svg.so.5.15.4 
/usr/lib/riscv64-linux-gnu/libQt5Widgets.so.5.15.4 
/usr/lib/riscv64-linux-gnu/libQt5XkbCommonSupport.a 
/usr/lib/riscv64-linux-gnu//libQt5Gui.so 
/usr/lib/riscv64-linux-gnu//libQt5Core.so 
/usr/lib/riscv64-linux-gnu/libxkbcommon.so /usr/lib/riscv64-linux-gnu/libGL.so 
/usr/lib/riscv64-linux-gnu/libQt5WaylandClient.so.5.15.4 
/usr/lib/riscv64-linux-gnu/libQt5Gui.so.5.15.4 
/usr/lib/riscv64-linux-gnu/libQt5Core.so.5.15.4 
/usr/lib/riscv64-linux-gnu/libssl.so /usr/lib/riscv64-linux-gnu/libcrypto.so 
/usr/lib/riscv64-linux-gnu/libcrypto.so /usr/lib/riscv64-linux-gnu/libxxhash.so 
/usr/lib/riscv64-linux-gnu/libgiomm-2.4.so 
/usr/lib/riscv64-linux-gnu/libglibmm-2.4.so 
/usr/lib/riscv64-linux-gnu/libsigc-2.0.so 
/usr/lib/riscv64-linux-gnu/libgio-2.0.so 
/usr/lib/riscv64-linux-gnu/libgobject-2.0.so 
/usr/lib/riscv64-linux-gnu/libglib-2.0.so 
/usr/lib/riscv64-linux-gnu/libxcb-keysyms.so 
/usr/lib/riscv64-linux-gnu/libxcb-record.so 
/usr/lib/riscv64-linux-gnu/libxcb-screensaver.so 
/usr/lib/riscv64-linux-gnu/libxcb.so 
/usr/lib/riscv64-linux-gnu/libwayland-client.so
/usr/bin/ld: 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/common/crl_common_queue.cpp.o: in 
function `std::__atomic_base<bool>::compare_exchange_strong(bool&, bool, 
std::memory_order, std::memory_order)':
/usr/include/c++/12/bits/atomic_base.h:560: undefined reference to 
`__atomic_compare_exchange_1'
/usr/bin/ld: 
../../../lib_crl/CMakeFiles/lib_crl.dir/crl/crl_object_on_thread.cpp.o: in 
function `std::unique_lock<std::mutex>::unlock()':
/usr/include/c++/12/bits/unique_lock.h:193: undefined reference to 
`__atomic_compare_exchange_1'
collect2: error: ld returned 1 exit status
make[3]: *** 
[Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/build.make:268: 
Telegram/codegen/codegen/style/codegen_style] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-riscv64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:2224: 
Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
```

The patch attached is trying to fix the issue and it can be built
successfully on my local real riscv64 hardware, so could you apply 
it in the next time. thanks.

-- 
Regards,
--
  Bo YU

diff -Nru telegram-desktop-4.1.1+ds/debian/rules telegram-desktop-4.1.1+ds/debian/rules
--- telegram-desktop-4.1.1+ds/debian/rules	2022-07-03 12:44:08.000000000 +0000
+++ telegram-desktop-4.1.1+ds/debian/rules	2022-08-17 17:16:12.000000000 +0000
@@ -65,6 +65,11 @@
  DEB_CXXFLAGS_MAINT_PREPEND += -gsplit-dwarf
 endif
 
+# Link with libatomic on riscv64
+ifeq ($(DEB_HOST_ARCH),riscv64)
+	export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
+endif
+
 ifeq ($(filter pkg.$(DEB_SOURCE).hugeopt,$(DEB_BUILD_PROFILES)),)
  ifeq ($(DEB_VENDOR),Ubuntu)
   # Link time optimizations require more than 8 GB of RAM.

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: telegram-desktop
Source-Version: 4.2.0+ds-1
Done: Nicholas Guriev <[email protected]>

We believe that the bug you reported is fixed in the latest version of
telegram-desktop, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nicholas Guriev <[email protected]> (supplier of updated telegram-desktop package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 21 Sep 2022 13:37:04 +0300
Source: telegram-desktop
Architecture: source
Version: 4.2.0+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Nicholas Guriev <[email protected]>
Changed-By: Nicholas Guriev <[email protected]>
Closes: 1017965 1018065
Changes:
 telegram-desktop (4.2.0+ds-1) unstable; urgency=medium
 .
   * New upstream release.
     - New reactions, user status, new format of username links.
     - Fix FFmpeg misuse that caused decoding threads to hang. (Closes: 
#1018065)
   * Remove lib_waylandshells from Files-Excluded in d/copyright.
   * Delete Exclude-QWaylandXdgShellIntegration.patch.
   * Refresh other patches that require resolving conflicts.
     - Disable-register-custom-scheme.patch
     - Packed-resources.patch
     - Skip-jemalloc.patch
     - Wayland-protocols-path.patch
   * New Prefer-atomic-flag.patch. (Closes: #1017965)
   * Update build dependencies.
     - New necessary libkf5coreaddons-dev.
     - Removed unused liblzma-dev, qtwayland5-private-dev.
     - Mention pkg-config already called from CMake scripts.
Checksums-Sha1:
 5486ce7254500d4d3a4cec174a6997ad855f65c3 3176 telegram-desktop_4.2.0+ds-1.dsc
 f6009bef7f818a11c7065d0897e90fbb58c57d0a 16629008 
telegram-desktop_4.2.0+ds.orig.tar.xz
 a5d00185aabf643b2959d97f9a88b483fddc3d68 27220 
telegram-desktop_4.2.0+ds-1.debian.tar.xz
Checksums-Sha256:
 229b21e80e3921ad7b3cccd7de4546d775cba9d91a182ac7dbfcafb3db60e15e 3176 
telegram-desktop_4.2.0+ds-1.dsc
 42784d4eb6451a85f7019d9dcdaf337546df966b5eecf45dcc91ce54d7eb66ec 16629008 
telegram-desktop_4.2.0+ds.orig.tar.xz
 754491d3ae305d677758661198157c838b7f770d89541855b86ce275d9bc1751 27220 
telegram-desktop_4.2.0+ds-1.debian.tar.xz
Files:
 54cb4967050430392097befc87d2aa8e 3176 net optional 
telegram-desktop_4.2.0+ds-1.dsc
 fbd7377ea83c07a72596d0bded383648 16629008 net optional 
telegram-desktop_4.2.0+ds.orig.tar.xz
 8d2430d93fec77c63fd6c9e0adf7791c 27220 net optional 
telegram-desktop_4.2.0+ds-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERoDLeOit93I/iGLK2bXpN3piwCsFAmMrQtkACgkQ2bXpN3pi
wCs2Xw//YoJQA9edxZhtB3PLDi7mXlKBFqESpkOGDAT4FMEAowf+l6tYOtwr7Xv/
9E8ADv5gvkYcJV5PnAwitXIcXEwkX3hJBqLfvzDqMBsHFq9nrWoXVmpOINNUcZUn
dYFEqHqXCGsfaO512gZouzsS9m15X20l3XdhWFzIyWlqTcaqZMW9d9tOWOBopNMY
o8a7re4F5NG0N0bSJkrDe2/pXOwJYpjPy5cTpZ1LIfTdHthlbAOs9EmCw4US2EPx
VX/Wp49sqeV3uXwYi+a2oLJFInHPNEkPPaZ9KDjxds0btETha1ihe3QDml79Zq7D
1lcRXE1Aw0B1Jx4+Z199OvimlwyRkYklBvmrKQ7W+zzht7FVcKAka7awZGq2nktF
US96wfb0ye6bTdacgOeZUC+BDH6lwSxF0zKBo2H5APGejKa1AmuXsfc1ytlNdeUw
i4j5dexQBgw+HUaMoOZodpZOCBikRw9uvAVbYV570ZWJc8Rs+geGneIPsM8+RIk4
8bdejlJHJ4IPOu/QPLdt5s9uMPJGPjd7RT6EqFKG/63EuOE2+7j2WJX8QR0HvHiH
ECx1XpEhH/LspiLYHUb705KejoWToaiTnTa4Pqtw56GP4Pr1RFKCI42eL2YFJu4L
vbhGaaO+zzcfjonAw+yNdM1FN574gy1HrUYZyVP3OdO07QY+Yyg=
=MiNG
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to