Summary: | app-office/libreoffice-7.1.5.2 fails with: configure: error: C compiler cannot create executables | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Willard Dawson <wfdawson> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | floppym |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
config.log emerge --info emerge -pqv environment binutils and binutils-libs installed USE settings |
Description
Willard Dawson
2021-10-20 14:07:51 UTC
Created attachment 745899 [details]
Build log
Created attachment 745902 [details]
config.log
Created attachment 745905 [details]
emerge --info
Created attachment 745908 [details]
emerge -pqv
Created attachment 745911 [details]
environment
Created attachment 745914 [details]
binutils and binutils-libs installed USE settings
You seem to have a typo in your LDFLAGS: -Wl,-Ol -Wl,--as-needed -Wl,-fuse-ld=bfd ^ should be a 1 > ld.lld: error: -Ol: number expected, but got 'l'
As Stehphan indicates, this appears to be a typo in your LDFLAGS.
The typo in LDFLAGS was legit. However, that had nothing to do with the error logged in the config.log, nor was it the cause of the error emitted "C compiler cannot create executables," even when the typo was corrected the same error resulted. Commenting out my LDFLAGS setting in /etc/portage/make.conf gets me past the error. But to be clear - the error was not due to the typo noted in the comments made to this bug ID. Please attach a new config.log with corrected LDFLAGS. (In reply to Willard Dawson from comment #9) Oh, I see. Your LDFLAGS have *two* mistakes. > ld.lld: error: unknown argument '-fuse-ld=bfd' Having "-Wl,-fuse-ld=bfd" is nonsensical. That's a flag for the compiler front-end, not the linker. |