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

Bug 764077

Summary: sys-auth/fprintd-0.8.1-r3 fails to compile with -fno-common
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Maxim Koltsov (RETIRED) <maksbotan>
Status: RESOLVED FIXED    
Severity: normal CC: leonchik1976
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/18965
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764, 762907    
Attachments: build.log
build.log

Description Agostino Sarubbo gentoo-dev 2021-01-06 09:56:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-auth/fprintd-0.8.1-r3 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-01-06 09:56:17 UTC
Created attachment 681469 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-01-06 09:56:20 UTC
Possible context of error(s):

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./.libs/libfprintd.a(device.o):(.bss+0x0): multiple definition of `store'; main.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
Comment 3 Leonid Kopylov 2021-01-06 12:00:36 UTC
Have exactly the same error
Comment 4 Leonid Kopylov 2021-01-06 12:01:47 UTC
Created attachment 681511 [details]
build.log
Comment 5 Larry the Git Cow gentoo-dev 2021-01-12 09:37:21 UTC
The bug has been closed via the following commit(s):

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

commit 989f5747c6845c252e893686086f4452df94d9c5
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-01-12 09:36:53 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-01-12 09:36:53 +0000

    sys-auth/fprintd: Fix build with gcc-10
    
    * Disable static-libs
    
    Closes: https://github.com/gentoo/gentoo/pull/18965
    Closes: https://bugs.gentoo.org/764077
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../fprintd/files/fprintd-0.8.1-fno-common.patch   | 44 ++++++++++++++++++++++
 sys-auth/fprintd/fprintd-0.8.1-r3.ebuild           | 21 ++++++-----
 2 files changed, 56 insertions(+), 9 deletions(-)