Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707256 - app-crypt/tpm-emulator-0.7.5-r1 : fails to build with -fno-common or gcc-10
Summary: app-crypt/tpm-emulator-0.7.5-r1 : 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: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: ~arch only
Keywords: PullRequest
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-29 18:15 UTC by Toralf Förster
Modified: 2021-01-20 10:13 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.38 KB, text/plain)
2020-01-29 18:15 UTC, Toralf Förster
Details
app-crypt:tpm-emulator-0.7.5-r1:20200129-144730.log (app-crypt:tpm-emulator-0.7.5-r1:20200129-144730.log,103.75 KB, text/plain)
2020-01-29 18:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,237.17 KB, text/plain)
2020-01-29 18:15 UTC, Toralf Förster
Details
environment (environment,169.29 KB, text/plain)
2020-01-29 18:15 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.68 KB, application/x-bzip)
2020-01-29 18:15 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,3.87 KB, application/x-bzip)
2020-01-29 18:15 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,40.66 KB, application/x-bzip)
2020-01-29 18:15 UTC, Toralf Förster
Details

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-29 18:15:15 UTC
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking C executable tpmd
cd /var/tmp/portage/app-crypt/tpm-emulator-0.7.5-r1/work/tpm-emulator-0.7.5_build/tpmd/unix && /usr/bin/cmake -E cmake_link_script CMakeFiles/tpmd.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/tpmd.dir/tpmd.o  -o tpmd   -L/opt/local/lib  -Wl,-rpath,/opt/local/lib: ../../tpm/libtpm.a ../../crypto/libtpm_crypto.a -lgmp 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../../tpm/libtpm.a(tpm_cmd_handler.o):(.bss+0x28): multiple definition of `tpm_malloc'; CMakeFiles/tpmd.dir/tpmd.o:(.bss+0x28): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../../tpm/libtpm.a(tpm_cmd_handler.o):(.bss+0x20): multiple definition of `tpm_free'; CMakeFiles/tpmd.dir/tpmd.o:(.bss+0x20): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20200124-204141

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

  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)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 29 Jan 2020 13:26:23 +0000

emerge -qpvO app-crypt/tpm-emulator
[ebuild  N    ] app-crypt/tpm-emulator-0.7.5-r1  USE="-modules -mtm-emulator"
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:15:18 UTC
Created attachment 608230 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:15:21 UTC
Created attachment 608232 [details]
app-crypt:tpm-emulator-0.7.5-r1:20200129-144730.log
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:15:24 UTC
Created attachment 608234 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:15:26 UTC
Created attachment 608236 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:15:29 UTC
Created attachment 608238 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 18:15:32 UTC
Created attachment 608240 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-29 18:15:35 UTC
Created attachment 608242 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2021-01-20 10:13:05 UTC
The bug has been closed via the following commit(s):

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

commit f216135855afdeff7e1f106470b846e253936573
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-01-20 10:12:45 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-01-20 10:12:45 +0000

    app-crypt/tpm-emulator: Port to EAPI 7 and GLEP 81
    
    * Fix build with gcc-10
    * Disable static-libs
    
    Closes: https://github.com/gentoo/gentoo/pull/19113
    Closes: https://bugs.gentoo.org/726492
    Closes: https://bugs.gentoo.org/707256
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../files/tpm-emulator-0.7.5-fno-common.patch      | 48 ++++++++++++++++++++++
 .../files/tpm-emulator-0.7.5-static-libs.patch     | 26 ++++++++++++
 ....7.5-r2.ebuild => tpm-emulator-0.7.5-r3.ebuild} | 32 +++++++++------
 3 files changed, 93 insertions(+), 13 deletions(-)