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

Bug 712054

Summary: dev-lang/srf-1.0-r2 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
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
dev-lang:srf-1.0-r2:20200310-113727.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-10 11:44:35 UTC
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"srf\" -DPACKAGE_TARNAME=\"srf\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"srf\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"srf\" -DVERSION=\"1.0\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_ASSERT_H=1  -I. -I.    -g -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c `test -f 'hashtable.c' || echo './'`hashtable.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"srf\" -DPACKAGE_TARNAME=\"srf\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"srf\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"srf\" -DVERSION=\"1.0\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_ASSERT_H=1  -I. -I.    -g -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c `test -f 'lex.c' || echo './'`lex.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"srf\" -DPACKAGE_TARNAME=\"srf\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"srf\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"srf\" -DVERSION=\"1.0\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_ASSERT_H=1  -I. -I.    -g -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c `test -f 'value.c' || echo './'`value.c
x86_64-pc-linux-gnu-gcc -g -O2 -pipe -march=native -fno-common -falign-functions=32:25:16  -Wl,-O1 -Wl,--as-needed -o srf  atom.o builtins.o function.o srf-grammar.o hashtable.o lex.o value.o  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: function.o:/var/tmp/portage/dev-lang/srf-1.0-r2/work/srf-1.0/./builtins.h:23: multiple definition of `primitive_call_counter'; builtins.o:/var/tmp/portage/dev-lang/srf-1.0-r2/work/srf-1.0/./builtins.h:23: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: srf-grammar.o:/var/tmp/portage/dev-lang/srf-1.0-r2/work/srf-1.0/./builtins.h:23: multiple definition of `primitive_call_counter'; builtins.o:/var/tmp/portage/dev-lang/srf-1.0-r2/work/srf-1.0/./builtins.h:23: first defined here

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

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

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

  Please see the tracker bug for details.

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

clang:
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
llvm:
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.41.1 *
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 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 10 Mar 2020 09:14:59 +0000

emerge -qpvO dev-lang/srf
[ebuild  N    ] dev-lang/srf-1.0-r2
Comment 1 Toralf Förster gentoo-dev 2020-03-10 11:44:38 UTC
Created attachment 617892 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-10 11:44:41 UTC
Created attachment 617894 [details]
dev-lang:srf-1.0-r2:20200310-113727.log
Comment 3 Toralf Förster gentoo-dev 2020-03-10 11:44:45 UTC
Created attachment 617896 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-10 11:44:47 UTC
Created attachment 617898 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-10 11:44:50 UTC
Created attachment 617900 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-10 11:44:53 UTC
Created attachment 617902 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-10 11:44:56 UTC
Created attachment 617904 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-11-28 23:09:55 UTC
The bug has been closed via the following commit(s):

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

commit cbbaf8e8744ecbfad9ee7159d00ea7d589e1de0f
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-11-28 23:08:49 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-28 23:08:49 +0000

    dev-lang/srf: fix build with gcc-10
    
    Closes: https://bugs.gentoo.org/712054
    Package-Manager: Portage-3.0.9, Repoman-3.0.1
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/srf/files/srf-1.0-fno-common.patch | 8 ++++++++
 dev-lang/srf/srf-1.0-r2.ebuild              | 9 ++++-----
 2 files changed, 12 insertions(+), 5 deletions(-)