Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 706664 - net-wireless/bladerf-2019.07 : fails to build with -fno-common or gcc-10
Summary: net-wireless/bladerf-2019.07 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL: https://github.com/Nuand/bladeRF/comm...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-27 17:27 UTC by Toralf Förster
Modified: 2021-01-03 01:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.54 KB, text/plain)
2020-01-27 17:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,62.03 KB, text/plain)
2020-01-27 17:27 UTC, Toralf Förster
Details
environment (environment,90.09 KB, text/plain)
2020-01-27 17:27 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.26 KB, application/x-bzip)
2020-01-27 17:27 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,157.47 KB, application/x-bzip)
2020-01-27 17:27 UTC, Toralf Förster
Details
net-wireless:bladerf-2019.07:20200127-033502.log (net-wireless:bladerf-2019.07:20200127-033502.log,134.76 KB, text/plain)
2020-01-27 17:27 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.38 KB, application/x-bzip)
2020-01-27 17:27 UTC, Toralf Förster
Details
patch to fix fno-common (bladerf-2019.07-fno-common.patch,608 bytes, patch)
2020-06-07 17:27 UTC, Jannik Glückert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-01-27 17:27:28 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/common.c.o:(.data.rel.local+0x0): multiple definition of `bladerf2_state_to_string'; host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/bladerf2.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/rfic_fpga.c.o:(.bss+0x0): multiple definition of `bladerf2_state_to_string'; host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/bladerf2.c.o:(.bss+0x0): first defined here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-libressl-20200125-183534

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *


llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 02:06:14 +0000

emerge -qpvO net-wireless/bladerf
[ebuild  N    ] net-wireless/bladerf-2019.07  USE="tecla -doc"
Comment 1 Toralf Förster gentoo-dev 2020-01-27 17:27:31 UTC
Created attachment 605208 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 17:27:34 UTC
Created attachment 605210 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 17:27:36 UTC
Created attachment 605212 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 17:27:39 UTC
Created attachment 605214 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 17:27:42 UTC
Created attachment 605216 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-27 17:27:45 UTC
Created attachment 605218 [details]
net-wireless:bladerf-2019.07:20200127-033502.log
Comment 7 Toralf Förster gentoo-dev 2020-01-27 17:27:47 UTC
Created attachment 605220 [details]
temp.tbz2
Comment 8 Jannik Glückert 2020-06-07 17:27:15 UTC
Created attachment 643842 [details, diff]
patch to fix fno-common

This got fixed by a commit two weeks ago
https://github.com/Nuand/bladeRF/commit/5cf9fd299a396a5ae5b4402215713fd2a84e607b

It applies and compiles fine. Attached is the patch
Comment 9 Larry the Git Cow gentoo-dev 2021-01-01 10:28:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6dbb3f4e857cc95c777f582bed9bbf32743e0cf

commit b6dbb3f4e857cc95c777f582bed9bbf32743e0cf
Author:     Andreas K. Huettel <dilfridge@gentoo.org>
AuthorDate: 2021-01-01 10:16:21 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: 2021-01-01 10:28:34 +0000

    net-wireless/bladerf: Fix build with gcc-10
    
    Closes: https://bugs.gentoo.org/706664
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 net-wireless/bladerf/bladerf-2019.07.ebuild        |  6 +++++-
 .../bladerf/files/bladerf-2019.07-gcc10.patch      | 23 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)
Comment 10 Larry the Git Cow gentoo-dev 2021-01-03 01:09:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb81e916efadc7f94e193594bc92a78e9065c80b

commit eb81e916efadc7f94e193594bc92a78e9065c80b
Author:     Andreas K. Huettel <dilfridge@gentoo.org>
AuthorDate: 2021-01-03 01:00:47 +0000
Commit:     Andreas K. Huettel <dilfridge@gentoo.org>
CommitDate: 2021-01-03 01:00:47 +0000

    net-wireless/bladerf: Remove old
    
    Bug: https://bugs.gentoo.org/706664
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 net-wireless/bladerf/Manifest               |  1 -
 net-wireless/bladerf/bladerf-2018.08.ebuild | 52 -----------------------------
 2 files changed, 53 deletions(-)