Comments (1)
A simple fix:
--- /usr/bin/lto-rebuild.orig 2023-05-02 23:20:59.064006276 +0200
+++ /usr/bin/lto-rebuild 2023-05-05 21:10:58.499995951 +0200
@@ -27,6 +27,7 @@
{
local prefix="${EROOT%/}/usr/lib"
local suffix="\.a"
+local all_archives=()
local archives=()
local packages=()
local GCC_VER=""
@@ -41,16 +42,18 @@
# Exclude /usr/lib/gcc/<arch> because these are internal
# to the [cross-]compilers on the system
-mapfile -t archives < <(
+mapfile -t all_archives < <(
find "${prefix}"{,64,32} -type f -name "*${suffix}" \
- -exec readelf -p .comment {} + \
-o -path "${prefix}64/gcc" -prune \
-o -path "${prefix}32/gcc" -prune \
- -o -path "${prefix}/gcc" -prune 2> /dev/null | \
- grep -v "${GCC_VER}" | grep -B3 "GCC:" | \
- grep -o "${prefix}.*${suffix}" | uniq
+ -o -path "${prefix}/gcc" -prune 2> /dev/null
)
+for a in ${all_archives[@]}; do
+ gcc_ver=$(readelf -p .comment "$a" 2>/dev/null | grep "GCC:" | sed -E 's/^.+\(.+\) ([0-9]+).*$/\1/' | sort -u | head -1 )
+ [[ ! -z $gcc_ver && $gcc_ver != $GCC_VER ]] && archives+=( "$a" )
+done
+
if [[ ${#archives[@]} -eq 0 ]]
then
echo "No problems found!" >&2
from gentoolto.
Related Issues (20)
- Clang HOT 1
- need to improve when NTHREADS="1"
- `-fipa-pta` drastically increases compilation time HOT 11
- gst-plugins-good-1.20.3:1.0::gentoo fails to emerge with currently stable meson 0.62.2 HOT 1
- Obsolete flags HOT 2
- Trailing -O2 in LDFLAGS? HOT 1
- Caution, you may get text display issues for Gnome shell with LTO HOT 2
- Sys-config/ltoize-0.9.11 doesn't recognize clang (fails to install) HOT 6
- Missing some Ofast workarounds HOT 1
- disable -ffinite-math-only for sys-apps/systemd
- dev-lang/duktape doesn't compile with -Ofast HOT 2
- app-office/gnucash does not build with -fno-semantic-interposition HOT 1
- LTO issue with Mold linker and firefox-111.0 HOT 2
- media-tv/v4l-utils-1.24.1 won't build with LTO
- Error emerging gcc HOT 3
- sys-devel/llvm-16.0.4 fails to build with -fipa-pta HOT 2
- Firefox with LTO and PGO fails to install with nodejs 20.2.0 HOT 5
- Portageq depreciated, causes warnings while building anything HOT 49
- -lto with -vtable-verify=(std|preinit) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gentoolto.