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

Bug 782388

Summary: app-crypt/scute-1.7.0 fails to compile with -fno-common
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: David Seifert <soap>
Status: RESOLVED FIXED    
Severity: normal CC: bertrand, sam, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-04-12 06:40:33 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-crypt/scute-1.7.0 fails to compile with -fno-common.
Discovered on: amd64 (internal ref: ci)

NOTE:
To reproduce this issue you may want to set CFLAGS="${CFLAGS} -fno-common" or compile it with gcc-10 that enables -fno-common by default.
Comment 1 Agostino Sarubbo gentoo-dev 2021-04-12 06:40:35 UTC
Created attachment 699327 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-04-12 06:40:38 UTC
Possible context of error(s):

/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-readconf.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-error-mapping.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-get-path.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-agent.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-slots.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-cert-gpgsm.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-cert-object.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-gpgsm.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-p11-findobjectsinit.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/scute_la-p11-initialize.o:(.bss+0x0): multiple definition of `_scute_opt'; .libs/scute_la-debug.o:(.bss+0x10): first defined here
collect2: error: ld returned 1 exit status
Comment 3 Ionen Wolkens gentoo-dev 2021-04-12 13:46:08 UTC
*** Bug 782511 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2021-04-22 11:53:33 UTC
The bug has been closed via the following commit(s):

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

commit 079865b0cd09dc76add2cc8199ff98d3b10a2939
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-04-22 11:53:12 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-04-22 11:53:12 +0000

    app-crypt/scute: Add upstream patch for -fno-common
    
    Closes: https://bugs.gentoo.org/782388
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>

 app-crypt/scute/files/scute-1.7.0-fno-common.patch | 52 ++++++++++++++++++++++
 app-crypt/scute/scute-1.7.0.ebuild                 |  2 +
 2 files changed, 54 insertions(+)