Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 706912

Summary: dev-libs/opensc-0.20.0 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/16316
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
dev-libs:opensc-0.20.0:20200128-091546.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 18:37:35 UTC
      |      EVP_PKEY_CTX_set_rsa_mgf1_md
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../src  -DNDEBUG  -O2 -pipe -march=native -fno-common -c -o p11test-p11test_helpers.o `test -f 'p11test_helpers.c' || echo './'`p11test_helpers.c
/bin/sh ../../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -DNDEBUG  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o p11test p11test-p11test.o p11test-p11test_loader.o p11test-p11test_case_common.o p11test-p11test_case_readonly.o p11test-p11test_case_multipart.o p11test-p11test_case_mechs.o p11test-p11test_case_ec_sign.o p11test-p11test_case_ec_derive.o p11test-p11test_case_usage.o p11test-p11test_case_wait.o p11test-p11test_case_pss_oaep.o p11test-p11test_helpers.o  -lcrypto  -lcmocka  -ldl 
libtool: link: x86_64-pc-linux-gnu-gcc -DNDEBUG -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o p11test p11test-p11test.o p11test-p11test_loader.o p11test-p11test_case_common.o p11test-p11test_case_readonly.o p11test-p11test_case_multipart.o p11test-p11test_case_mechs.o p11test-p11test_case_ec_sign.o p11test-p11test_case_ec_derive.o p11test-p11test_case_usage.o p11test-p11test_case_wait.o p11test-p11test_case_pss_oaep.o p11test-p11test_helpers.o  -lcrypto -lcmocka -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: p11test-p11test_loader.o:(.bss+0x0): multiple definition of `token'; p11test-p11test.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: p11test-p11test_case_common.o:(.bss+0x20): multiple definition of `token'; p11test-p11test.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl_test-20200126-104546

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

  Please see the tracker bug for details.

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

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)

Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 28 Jan 2020 08:46:21 +0000

emerge -qpvO dev-libs/opensc
[ebuild  N    ] dev-libs/opensc-0.20.0  USE="libressl pcsc-lite readline ssl test zlib -ctapi -doc -notify -openct -secure-messaging"
Comment 1 Toralf Förster gentoo-dev 2020-01-28 18:37:37 UTC
Created attachment 606520 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 18:37:40 UTC
Created attachment 606522 [details]
dev-libs:opensc-0.20.0:20200128-091546.log
Comment 3 Toralf Förster gentoo-dev 2020-01-28 18:37:43 UTC
Created attachment 606524 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-28 18:37:46 UTC
Created attachment 606526 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-28 18:37:48 UTC
Created attachment 606528 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-28 18:37:51 UTC
Created attachment 606530 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-28 18:37:54 UTC
Created attachment 606532 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-06-18 21:02:54 UTC
The bug has been closed via the following commit(s):

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

commit 9aa6947ae348f91a97f301c0f0e76e6955612420
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-06-18 19:34:18 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2020-06-18 21:02:48 +0000

    dev-libs/opensc: fix compilation with GCC10
    
    Fix compilation with -fno-commons (see
    https://github.com/OpenSC/OpenSC/pull/1939).
    Closes: https://bugs.gentoo.org/706912
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/16316
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 dev-libs/opensc/files/opensc-0.20.0-gcc10.patch | 37 +++++++++++++++++++++++++
 dev-libs/opensc/opensc-0.20.0.ebuild            |  4 +++
 2 files changed, 41 insertions(+)