[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#859616: marked as done (cubicsdr FTBFS on mips and mipsel: error: undefined reference to `__atomic_load_8')



Your message dated Thu, 06 Apr 2017 18:48:48 +0000
with message-id <E1cwCSe-00035t-MH@fasolo.debian.org>
and subject line Bug#859616: fixed in cubicsdr 0.2.0+git20170310+dfsg-2
has caused the Debian Bug report #859616,
regarding cubicsdr FTBFS on mips and mipsel: error: undefined reference to `__atomic_load_8'
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 owner@bugs.debian.org
immediately.)


-- 
859616: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859616
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cubicsdr
Version: 0.2.0+git20170310+dfsg-1
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-mips@lists.debian.org
Usertags: mips-patch


Package cubicsdr_0.2.0+git20170310+dfsg-1 FTBFS on mips and mipsel with following error:

>...
> CMakeFiles/CubicSDR.dir/src/sdr/SoapySDRThread.cpp.o: In function `std::__atomic_base<long long>::load(std::memory_order) const':
> /usr/include/c++/6/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
> /usr/include/c++/6/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
> /usr/include/c++/6/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
> /usr/include/c++/6/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
> /usr/include/c++/6/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
> CMakeFiles/CubicSDR.dir/src/sdr/SoapySDRThread.cpp.o:/usr/include/c++/6/bits/atomic_base.h:396: more undefined references to `__atomic_load_8' follow
> collect2: error: ld returned 1 exit status
> CMakeFiles/CubicSDR.dir/build.make:2053: recipe for target 'x86/CubicSDR' failed
> make[3]: *** [x86/CubicSDR] Error 1
> make[3]: Leaving directory '/«BUILDDIR»/cubicsdr-0.2.0+git20170310+dfsg/obj-mipsel-linux-gnu'
> CMakeFiles/Makefile2:102: recipe for target 'CMakeFiles/CubicSDR.dir/all' failed
> make[2]: *** [CMakeFiles/CubicSDR.dir/all] Error 2
> make[2]: Leaving directory '/«BUILDDIR»/cubicsdr-0.2.0+git20170310+dfsg/obj-mipsel-linux-gnu'
> Makefile:130: recipe for target 'all' failed
> make[1]: *** [all] Error 2
>...

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=cubicsdr&arch=mipsel&ver=0.2.0%2Bgit20170310%2Bdfsg-1&stamp=1491259779&raw=0


The problem occurs because mips 32-bit architectures does not support use of 8-byte atomics functions.
To solve this problem, it is necessary to provide linking with libatomic library.

I have created and attached a patch that enables linking with latomic library as needed.
With this patch package builds successfully on mips, mipsel, mips64el and i386.

Build for powerpc fails with same error and it should be solved as well.

Regards,
Radovan
--- cubicsdr-0.2.0+git20170310+dfsg.orig/CMakeLists.txt
+++ cubicsdr-0.2.0+git20170310+dfsg/CMakeLists.txt
@@ -238,7 +238,7 @@ IF (UNIX AND NOT APPLE)
     SET(USE_SYSTEM_RTAUDIO OFF CACHE BOOL "Use the system RtAudio which in turn provides OSS, ALSA, JACK, PulseAudio support depending on how it was compiled")
 
     SET(LIQUID_LIB liquid)
-    SET(OTHER_LIBRARIES ${OTHER_LIBRARIES} dl)
+    SET(OTHER_LIBRARIES ${OTHER_LIBRARIES} dl -Wl,--as-needed -latomic)
 
     IF(USE_SYSTEM_RTAUDIO)
         find_package(RtAudio)

--- End Message ---
--- Begin Message ---
Source: cubicsdr
Source-Version: 0.2.0+git20170310+dfsg-2

We believe that the bug you reported is fixed in the latest version of
cubicsdr, 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 859616@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Bombe <aeb@debian.org> (supplier of updated cubicsdr 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 06 Apr 2017 15:11:38 +0200
Source: cubicsdr
Binary: cubicsdr
Architecture: source amd64
Version: 0.2.0+git20170310+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
Changed-By: Andreas Bombe <aeb@debian.org>
Description:
 cubicsdr   - Software Defined Radio receiver
Closes: 859616
Changes:
 cubicsdr (0.2.0+git20170310+dfsg-2) unstable; urgency=medium
 .
   * Link to libatomic (Closes: #859616)
Checksums-Sha1:
 c62e8ab2e2ab0786244f2cb4feb4ffbc45f8663b 2170 cubicsdr_0.2.0+git20170310+dfsg-2.dsc
 82a0612f0382ead57b46d4f1efb0a0e0c047048c 5388 cubicsdr_0.2.0+git20170310+dfsg-2.debian.tar.xz
 7b185581bf7eeb69878326679882fc1030b16118 11354738 cubicsdr-dbgsym_0.2.0+git20170310+dfsg-2_amd64.deb
 e177248b8c5186350cdea44398109180a7182976 11896 cubicsdr_0.2.0+git20170310+dfsg-2_amd64.buildinfo
 366cd8990a1a7b16778ae1786a6f44b487235f01 982886 cubicsdr_0.2.0+git20170310+dfsg-2_amd64.deb
Checksums-Sha256:
 8488941755d1fafe577e0a4be543264fe717e7c4cf47f04ef938fd1d2d8a338e 2170 cubicsdr_0.2.0+git20170310+dfsg-2.dsc
 9b2e4bc2515c9c9e27342c325dc545f386de7e7ea5e67c6fc3cd8e38ac1454e8 5388 cubicsdr_0.2.0+git20170310+dfsg-2.debian.tar.xz
 2426dbe34e3ebdecc3ac609977ff25a3f8367022adffa772f0fc7bce9f1a2691 11354738 cubicsdr-dbgsym_0.2.0+git20170310+dfsg-2_amd64.deb
 a02959bfbd76ec89afd8f167e5ce3ebc0bd402fcb4446c9b6f2fe6d4ca985b50 11896 cubicsdr_0.2.0+git20170310+dfsg-2_amd64.buildinfo
 b7db5d4ed7ff33261f1d2971b18678645c917f05c004c1d2b71078e35df39397 982886 cubicsdr_0.2.0+git20170310+dfsg-2_amd64.deb
Files:
 e40714da688ac802ba268724f3a16c8a 2170 hamradio optional cubicsdr_0.2.0+git20170310+dfsg-2.dsc
 24cd6bbaa155928acb8b4a8eee4da7ae 5388 hamradio optional cubicsdr_0.2.0+git20170310+dfsg-2.debian.tar.xz
 62c22562665954acc7298ea33bf4c3b8 11354738 debug extra cubicsdr-dbgsym_0.2.0+git20170310+dfsg-2_amd64.deb
 37e84c18a2e52aac7d261a18835f961e 11896 hamradio optional cubicsdr_0.2.0+git20170310+dfsg-2_amd64.buildinfo
 322c88530aa92ffeefd46a42f770043a 982886 hamradio optional cubicsdr_0.2.0+git20170310+dfsg-2_amd64.deb

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

iQJDBAEBCAAtFiEE/fJ3FAtt+ejNyKmCMWRwWx2jHUwFAljmiDUPHGFlYkBkZWJp
YW4ub3JnAAoJEDFkcFsdox1MPdoQAL1uQtsOWxB5cphuXz22qz6RzDxAPY9AsZlZ
XIXugQkFBAxgFI7mLJxw1jtGk5msWNSw+gSVbfQyRdQ2m71xS8FUzOOgcpTSOOmt
OknHobdh/FBBcuLl4HEa958RhLxCjDn1+mLEEkcEUHBDHRtS4rkxGhSvEUqldLmi
onl2MdxOheHEONeu8ijSy0ZiqWhGzyP6tuYP3LtQCKcS2yNiNc5oZ2ucxVwl3iW7
xCplDzVe+yQXoo2HwKSgEufJFJG4QE5IwpZQuKQrDHovvLTiAX3io9fsExOT77sB
gXoY+rQq7g4PVEq7HhDgkTe+kolRv5hoEKBL8xuI5N/CgbpmzGpx4lGeAj7UNc8S
ozl4Cd/wJmvG4NO6faRQGEfzqTiw+WnscHRIPemCSPZ3WnHCgX90+QmnYilSdLOl
TtvSZ09M1rW2a2XI+TaUSa+pki8PbFJL1/JW+3dPJ4g/pFsnRdWBU9dXRJvws9j7
hEvwGNiODNFqqQHTk6NqzFWDPx41jWzHorOomN0rSCbRHPO7ywnNiViV6oZZjDbY
aN9d0r4M17eQf0KWV7EVujLJJvcWB1eWF43UCTqzqDwO3G1wnem3dOH04AfbizI0
2OnR/a/49q//6dDK/7Iy/nabzNj3zSFIWmC3MJix4FcWLV5a7ppn/Snf7BU1Oanp
rzPQe4+6
=u4sn
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: