Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830473 - app-forensics/foremost-1.5.7-r3 fails to compile with -fno-common
Summary: app-forensics/foremost-1.5.7-r3 fails to compile with -fno-common
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2022-01-02 21:22 UTC by Agostino Sarubbo
Modified: 2023-07-30 11:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,40.66 KB, text/plain)
2022-01-02 21:22 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-02 21:22:13 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-forensics/foremost-1.5.7-r3 fails to compile with -fno-common.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
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 2022-01-02 21:22:15 UTC
Created attachment 761116 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-02 21:22:17 UTC
Error(s) that match a know pattern:


/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: api.o:(.bss+0x460): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: cli.o:(.bss+0x0): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: config.o:(.bss+0x0): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: dir.o:(.bss+0x0): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: engine.o:(.bss+0x0): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: extract.o:(.bss+0x0): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: helpers.o:(.bss+0x0): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: state.o:(.bss+0xbd760): multiple definition of `__progname'; main.o:(.bss+0x8): first defined here
collect2: error: ld returned 1 exit status
Comment 3 Larry the Git Cow gentoo-dev 2022-07-13 18:12:16 UTC
The bug has been closed via the following commit(s):

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

commit 231b90fbc3ab287472363374377241a4eacf24cd
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-07-13 18:12:06 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-07-13 18:12:06 +0000

    app-forensics/foremost: fix musl build
    
    Closes: https://bugs.gentoo.org/830473
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../foremost/files/foremost-1.5.7-musl.patch       | 81 ++++++++++++++++++++++
 app-forensics/foremost/foremost-1.5.7-r3.ebuild    |  3 +-
 2 files changed, 83 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2023-07-30 11:52:59 UTC
The bug has been referenced in the following commit(s):

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

commit cbb557262a820ed960408d225152bc5ccaab3bcf
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2023-07-30 11:11:41 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2023-07-30 11:52:27 +0000

    app-forensics/foremost: simplify the musl patch.
    
    This make it work also for Darwin.
    
    Bug: https://bugs.gentoo.org/830473
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 .../foremost/files/foremost-1.5.7-musl.patch       | 76 ++++------------------
 1 file changed, 14 insertions(+), 62 deletions(-)