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

Bug 768456

Summary: app-office/libreoffice-7.0.4.2[clang] checking that x86_64-pc-linux-gnu-clang++ supports __attribute__((warn_unused))... configure: error: no
Product: Gentoo Linux Reporter: Lin Jian <me>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED INVALID    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge info

Description Lin Jian 2021-02-03 09:15:30 UTC
Created attachment 685602 [details]
build log

I succeeded in building app-office/libreoffice-7.0.4.2[-clang,+vulkan], but got this warning "Building skia with gcc may lead to performance issues. Disable vulkan or enable clang."

So I tried to build app-office/libreoffice-7.0.4.2[+clang,+vulkan]. However, it fails at econf.
Comment 1 Lin Jian 2021-02-03 09:16:04 UTC
Created attachment 685605 [details]
emerge info
Comment 2 Ionen Wolkens gentoo-dev 2021-02-03 09:48:54 UTC
This is because bashrc-mv is putting LDFLAGS inside your CXXFLAGS.

fails: CXXFLAGS='-O2 -pipe -pipe -march=native -Wl,-O1 -Wl,--as-needed'
works: CXXFLAGS='-O2 -pipe -march=native'
Comment 3 Andreas Sturmlechner gentoo-dev 2021-05-05 00:54:53 UTC
Not sure what else to do than closing this as invalid.