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

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



Your message dated Fri, 06 Jan 2017 04:03:36 +0000
with message-id <E1cPLke-0009EN-CO@fasolo.debian.org>
and subject line Bug#849536: fixed in limesuite 16.8.23.819+git20161221+dfsg-2
has caused the Debian Bug report #849536,
regarding limesuite 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.)


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


Package limesuite_16.8.23.819+git20161221+dfsg-1 FTBFS on mips and mipsel with following error:

> /«BUILDDIR»/limesuite-16.8.23.819+git20161221+dfsg/src/boardEmulator.cpp:111:21: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
>   system(linkCommand);
>                     ^
> ../libLimeSuite.so.16.8.23.819: undefined reference to `__atomic_exchange_8'
> ../libLimeSuite.so.16.8.23.819: undefined reference to `__atomic_load_8'
> ../libLimeSuite.so.16.8.23.819: undefined reference to `__atomic_store_8'
> collect2: error: ld returned 1 exit status
> src/examples/CMakeFiles/basicRX.dir/build.make:100: recipe for target 'bin/basicRX' failed
> make[3]: *** [bin/basicRX] Error 1
> make[3]: Leaving directory '/«BUILDDIR»/limesuite-16.8.23.819+git20161221+dfsg/obj-mips-linux-gnu'

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=limesuite&arch=mips&ver=16.8.23.819%2Bgit20161221%2Bdfsg-1&stamp=1482435869

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 resolves this issue.
With this patch package builds successfully on mips, mipsel, mips64el and i386.

Build for powerpc also fails with same error and should be resolved in the same way as for the mips architecture,
but I did not have a chance to test it.

Regards,
Radovan
--- limesuite-16.8.23.819+git20161221+dfsg.orig/src/CMakeLists.txt
+++ limesuite-16.8.23.819+git20161221+dfsg/src/CMakeLists.txt
@@ -93,6 +93,12 @@ if(CMAKE_COMPILER_IS_GNUCXX)
     list(APPEND LIME_SUITE_LIBRARIES -pthread)
 endif(CMAKE_COMPILER_IS_GNUCXX)
 
+if (CMAKE_SYSTEM_PROCESSOR MATCHES "(mips)|(MIPS)|(mipsel)|(MIPSEL)")
+        if (CMAKE_SIZEOF_VOID_P MATCHES "4")
+             list(APPEND LIME_SUITE_LIBRARIES -latomic)
+	endif()
+endif()
+
 #sqlite depedency
 list(APPEND LIME_SUITE_INCLUDES ${SQLITE3_INCLUDE_DIRS})
 list(APPEND LIME_SUITE_LIBRARIES ${SQLITE3_LIBRARIES})

--- End Message ---
--- Begin Message ---
Source: limesuite
Source-Version: 16.8.23.819+git20161221+dfsg-2

We believe that the bug you reported is fixed in the latest version of
limesuite, 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 849536@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 limesuite 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: Fri, 06 Jan 2017 04:34:07 +0100
Source: limesuite
Binary: limesuite liblimesuite16.8-1 liblimesuite-dev soapysdr0.5-2-module-lms7 soapysdr-module-lms7 limesuite-udev
Architecture: source amd64 all
Version: 16.8.23.819+git20161221+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
Changed-By: Andreas Bombe <aeb@debian.org>
Description:
 liblimesuite-dev - library to access LMS7 transceiver based hardware (development)
 liblimesuite16.8-1 - library to access LMS7 transceiver based hardware
 limesuite  - tools to test, control and update LMS7 transceiver based hardware
 limesuite-udev - Lime Suite - USB rules for udev
 soapysdr-module-lms7 - Lime Microsystems LMS7 device support for SoapySDR (default versi
 soapysdr0.5-2-module-lms7 - Lime Microsystems LMS7 device support for SoapySDR
Closes: 849536
Changes:
 limesuite (16.8.23.819+git20161221+dfsg-2) unstable; urgency=medium
 .
   * Link to libatomic (Closes: #849536)
   * Link with --as-needed
   * Make liblimesuite-dev Multi-Arch: same and limesuite-udev
     Multi-Arch: foreign
   * Make sure desktop files are installed on all architectures, not
     just Linux
   * Add patch fix-libusb-include to fix sources including
     <libusb-1.0/libusb.h> when <libusb.h> is sufficient and doesn't
     break kfreebsd
Checksums-Sha1:
 a7ad52a4b9c48c558b7615faf144253e398612b2 2602 limesuite_16.8.23.819+git20161221+dfsg-2.dsc
 37d286435de3a933c83dba5bc0cead0b81ed9aec 6724 limesuite_16.8.23.819+git20161221+dfsg-2.debian.tar.xz
 8aa9496ef2d51fe8a925e66794056f5c4dc9ed5d 45950 liblimesuite-dev_16.8.23.819+git20161221+dfsg-2_amd64.deb
 5c4a457da69cb65ec1db40112448eb007fae9f91 2106130 liblimesuite16.8-1-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 ded7ec8fae7fafb06d08e870a363610abec833ea 217214 liblimesuite16.8-1_16.8.23.819+git20161221+dfsg-2_amd64.deb
 54364529e85d591ef673102a36ddf9bcc5a56e7f 9320618 limesuite-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 54fcc64ccbb156d3a15b04e476b850013d834cc1 3914 limesuite-udev_16.8.23.819+git20161221+dfsg-2_all.deb
 14fa21429278bc1a65f7570b4e77ac5980e3d1e2 12349 limesuite_16.8.23.819+git20161221+dfsg-2_amd64.buildinfo
 5e301e397d671d41e93a58b18e714f2413e7ed8d 793196 limesuite_16.8.23.819+git20161221+dfsg-2_amd64.deb
 d31af12f07355cc40da9a80c131d68db2e2ec87e 1036 soapysdr-module-lms7_16.8.23.819+git20161221+dfsg-2_amd64.deb
 48d54c32f83c37081e87c03f1d085ec3d18c87cc 450794 soapysdr0.5-2-module-lms7-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 b50dd2f3a6208fffd2bdffeb648438ddbcf3b09e 45888 soapysdr0.5-2-module-lms7_16.8.23.819+git20161221+dfsg-2_amd64.deb
Checksums-Sha256:
 b5c53422cd59434c30d2626868d07a88150187937476b9b2356fbf5218f02d8c 2602 limesuite_16.8.23.819+git20161221+dfsg-2.dsc
 2999be28fb0d493f76cead5431351cfb4f90d8b5bb687cb2b6898c9d39a69296 6724 limesuite_16.8.23.819+git20161221+dfsg-2.debian.tar.xz
 3c838f4c703ffe1ac75fdec0cdb4d92c17e3cd8c084e33dd3e83e7a04b3cdeca 45950 liblimesuite-dev_16.8.23.819+git20161221+dfsg-2_amd64.deb
 b77a31ed973e2c2751dbc89ed01438c7f4933297f6d6fdabb8129fd13234b279 2106130 liblimesuite16.8-1-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 9a512b215e0367974cf7bfa4c98fa54ab4c5a48de9bfd6026be2c384994c45bc 217214 liblimesuite16.8-1_16.8.23.819+git20161221+dfsg-2_amd64.deb
 254dec0ac3b8ae718a907c9af769a2c868c42798c57651c5f4eb3e8c9cdae9cb 9320618 limesuite-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 20ee9ecc720147a4cf907aa555879f416bed1ccedcad9d45798ff41bf6960e79 3914 limesuite-udev_16.8.23.819+git20161221+dfsg-2_all.deb
 34993ddabf3943df35a7b83112e026cadfb4fd8de4e6fcb3fc39dabb2754816a 12349 limesuite_16.8.23.819+git20161221+dfsg-2_amd64.buildinfo
 951907c74142bed57cce48b717a62bd9dea275a517f07f3b48c5a8a55bfc6bbe 793196 limesuite_16.8.23.819+git20161221+dfsg-2_amd64.deb
 a36dff63f8dacd1c3c7e08fc58f6de3cea5fc3acdecc8a6c551cfdd0c81399ea 1036 soapysdr-module-lms7_16.8.23.819+git20161221+dfsg-2_amd64.deb
 4b2902fb1e48475569bcd8de947ac6d78165c747a95dcf7a5aecc856e9dd0f2c 450794 soapysdr0.5-2-module-lms7-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 ee9d50f7e819bbd4ddb01d8baea092839dcbf34ee4377b3bad18184a5b90ee27 45888 soapysdr0.5-2-module-lms7_16.8.23.819+git20161221+dfsg-2_amd64.deb
Files:
 c41742049fe55553f2946299d0131fb0 2602 hamradio optional limesuite_16.8.23.819+git20161221+dfsg-2.dsc
 6556c62adc4b79a583360ab4538efca0 6724 hamradio optional limesuite_16.8.23.819+git20161221+dfsg-2.debian.tar.xz
 8046080c3aa3bad30e9de0c8fffbeb03 45950 libdevel optional liblimesuite-dev_16.8.23.819+git20161221+dfsg-2_amd64.deb
 f6e9697abae04fd2c6bce5951338eff6 2106130 debug extra liblimesuite16.8-1-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 f13c68b14175d8adaad0ef1c05f9eae2 217214 libs optional liblimesuite16.8-1_16.8.23.819+git20161221+dfsg-2_amd64.deb
 2b049aa48b687fb89e173cdd622902d5 9320618 debug extra limesuite-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 f4521b6c04de2f6ee3887f5a776ac867 3914 libs optional limesuite-udev_16.8.23.819+git20161221+dfsg-2_all.deb
 73764b77a8f8fe7cf5ec8f9e1287d37f 12349 hamradio optional limesuite_16.8.23.819+git20161221+dfsg-2_amd64.buildinfo
 a982d62ae5e63750085e12a44858e330 793196 hamradio optional limesuite_16.8.23.819+git20161221+dfsg-2_amd64.deb
 0834880625ca894e229f77320a23c0dd 1036 hamradio optional soapysdr-module-lms7_16.8.23.819+git20161221+dfsg-2_amd64.deb
 a1a30d9b4585e5952cb86f24393effab 450794 debug extra soapysdr0.5-2-module-lms7-dbgsym_16.8.23.819+git20161221+dfsg-2_amd64.deb
 b9a427bbed17fae3405fa37a92f61db7 45888 hamradio optional soapysdr0.5-2-module-lms7_16.8.23.819+git20161221+dfsg-2_amd64.deb

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

iQJDBAEBCAAtFiEE/fJ3FAtt+ejNyKmCMWRwWx2jHUwFAlhvEvYPHGFlYkBkZWJp
YW4ub3JnAAoJEDFkcFsdox1MnkwP/jaQw6QHDMoXIbdK2W7TRAfXqn3DGTDTtAy+
PSubcE0bsCt/YK1O3rjQvq4qLKk98u0DCYcquPOZubCVViI2Iv+5EmsYmy6NbWyX
Y1tdQK8oexfJCBvP3KOaDJp+0wXBXL/u8kqVL57YktmOVWbc6sNpWBvCGOh/L3ft
G6AtBTqYu/hQab6rJ832DuLeDL2IMW4PhH9lyOxifGet8JYtXeqTXMXnXaTCRfAU
j/G4mwhl3Hk3oy7o6qdAU16nCKYKBg2DRsJQSPiTF2E9AMhxtjERXiJayBgLAgZE
Vj2A2e5h/1x2emJmbyQKASEt7rP82PFTjZ5isNrGEHWySLcrsIDlgC/qumFv5yXO
h1UvYoHoq5sY36StHnUmgcLoXj/ltkrefzZVQkZpkBOZs/Hz0K0/SOgqOv2GQHO7
B0JhuK1WauuUHNhyvWc2DkUjSP54YmsS4BqxesOCctsba30SZ4OndjKx4GF8TKQQ
NrfYuimX9m8b1n/wI0o3QS2Ry5of6RJrg8TJFWC/xkgASW9TTTQQB4neY1570xOu
P2WwEKM2ZF1oe6JdkS4PhyTzaVnEP+84lpAWGr6o2Cr7cDx1jkrocnKir7YFOTwg
n8kMINQsfEKCCy+GkdCN+U7eaOSAiLZFHc54Gcr1hl1mvo3Kg2KoKbvDHVUpqbHp
17X9NiJH
=R28B
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: