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

Bug 722618

Summary: dev-lisp/clozurecl-1.11.5 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Common Lisp Bugs <common-lisp>
Status: RESOLVED FIXED    
Severity: normal CC: inasprecali
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/19087
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764, 762907    
Attachments: emerge-info.txt
dev-lisp:clozurecl-1.11.5:20200512-023300.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
gcc 10 patch
emerge --info for successful build after patch

Description Toralf Förster gentoo-dev 2020-05-12 07:20:05 UTC
x86_64-pc-linux-gnu-gcc -include ../platform-linuxx8664.h -c ../x86_print.c -DLINUX -D_REENTRANT -DX86 -DX8664 -D_GNU_SOURCE -DHAVE_TLS  -DVC_REVISION="v1.11.5-dirty"  -g -O2 -Wno-format -m64 -o x86_print.o
x86_64-pc-linux-gnu-gcc  -m64 -g  -Wl,--export-dynamic  -o ../../lx86cl64  pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o pmcl-kernel.o gc-common.o x86-gc.o bits.o  x86-exceptions.o x86-utils.o image.o thread_manager.o lisp-debug.o memory.o unix-calls.o x86-asmutils64.o  imports.o lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o -Wl,--no-as-needed -ldl -lm -lpthread -lrt
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: gc-common.o: multiple definition of 'GCweakvll'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: pmcl-kernel.o: previous definition here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-abi32+64-20200503-182741

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.8 (fallback)
  [3]   python3.7 (fallback)
  [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.43.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.252_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue 12 May 2020 01:35:26 AM UTC

emerge -qpvO dev-lisp/clozurecl
[ebuild  N    ] dev-lisp/clozurecl-1.11.5  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2020-05-12 07:20:09 UTC
Created attachment 638320 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-12 07:20:13 UTC
Created attachment 638322 [details]
dev-lisp:clozurecl-1.11.5:20200512-023300.log
Comment 3 Toralf Förster gentoo-dev 2020-05-12 07:20:17 UTC
Created attachment 638324 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-05-12 07:20:21 UTC
Created attachment 638326 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-05-12 07:20:26 UTC
Created attachment 638328 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-05-12 07:20:30 UTC
Created attachment 638330 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-05-12 07:20:33 UTC
Created attachment 638332 [details]
temp.tbz2
Comment 8 inasprecali 2020-08-11 17:56:01 UTC
Created attachment 654162 [details, diff]
gcc 10 patch

This patch, found at https://patch-diff.githubusercontent.com/raw/Clozure/ccl/pull/316.patch and pointed out by grknight, allows it to build successfully with sys-devel/gcc-10.2.0. Please let me know if it works for you as well.
Comment 9 inasprecali 2020-08-11 17:58:33 UTC
Created attachment 654164 [details]
emerge --info for successful build after patch

This is the output of emerge --info dev-lisp/clozurecl used for building it successfully after patching. Please let me know if it works for you as well.
Comment 10 Larry the Git Cow gentoo-dev 2021-01-17 10:53:56 UTC
The bug has been closed via the following commit(s):

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

commit 432128cdf7ed591a37def8308e3fcb2b4d5038b8
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-01-17 10:53:46 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-01-17 10:53:46 +0000

    dev-lisp/clozurecl: Fix build with gcc-10
    
    Closes: https://github.com/gentoo/gentoo/pull/19087
    Closes: https://bugs.gentoo.org/722618
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lisp/clozurecl/clozurecl-1.11.5.ebuild         |   5 +-
 .../files/clozurecl-1.11.5-fno-common.patch        | 110 +++++++++++++++++++++
 2 files changed, 114 insertions(+), 1 deletion(-)