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

Bug 707294

Summary: app-text/ttf2pk2-2.0_p20190410 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: TeX project <tex>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
app-text:ttf2pk2-2.0_p20190410:20200129-195104.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 20:04:04 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I./include  -I/usr/include/freetype2  -DHAVE_LIBKPATHSEA  -Wimplicit -Wreturn-type -O2 -pipe -march=native -fno-common -c -o ttf2pk.o ttf2pk.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I./include  -I/usr/include/freetype2  -DHAVE_LIBKPATHSEA  -Wimplicit -Wreturn-type -O2 -pipe -march=native -fno-common -c -o ttflib.o ttflib.c
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o ttf2pk errormsg.o filesrch.o ftlib.o ligkern.o newobj.o parse.o subfont.o texenc.o ttfenc.o pklib.o ttf2pk.o ttflib.o -lkpathsea  -lfreetype  -lz -lm 
libtool: link: x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o ttf2pk errormsg.o filesrch.o ftlib.o ligkern.o newobj.o parse.o subfont.o texenc.o ttfenc.o pklib.o ttf2pk.o ttflib.o  -lkpathsea -lfreetype -lz -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: pklib.o:(.bss+0xb78): multiple definition of `dpi'; ftlib.o:(.bss+0x70): first defined here
collect2: error: ld returned 1 exit status

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

  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 *

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
ghc:
The Glorious Glasgow Haskell Compilation System, version 7.10.3

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

emerge -qpvO app-text/ttf2pk2
[ebuild  N    ] app-text/ttf2pk2-2.0_p20190410
Comment 1 Toralf Förster gentoo-dev 2020-01-29 20:04:07 UTC
Created attachment 608422 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 20:04:10 UTC
Created attachment 608424 [details]
app-text:ttf2pk2-2.0_p20190410:20200129-195104.log
Comment 3 Toralf Förster gentoo-dev 2020-01-29 20:04:13 UTC
Created attachment 608426 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-29 20:04:16 UTC
Created attachment 608428 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-29 20:04:19 UTC
Created attachment 608430 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 20:04:22 UTC
Created attachment 608432 [details]
logs.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-02-07 09:59:13 UTC
The bug has been closed via the following commit(s):

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

commit feec28a2c092c6cb95f391119a42f56800b6e233
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-02-07 09:58:53 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-02-07 09:58:53 +0000

    app-text/ttf2pk2: Fix building with GCC 10
    
    Closes: https://bugs.gentoo.org/707294
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../ttf2pk2-2.0_p20190410-fno-common-gcc10.patch    | 21 +++++++++++++++++++++
 app-text/ttf2pk2/ttf2pk2-2.0_p20190410.ebuild       |  4 +++-
 2 files changed, 24 insertions(+), 1 deletion(-)