Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GCC10 LTO breaks many compilations
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Sat May 09, 2020 11:03 pm    Post subject: [SOLVED] GCC10 LTO breaks many compilations Reply with quote

EDIT: Best solution, provided by mike155
Quote:
Please try binutils-2.34-r1.

You will have to accept the ** keyword on the 2.34-r1 binutils, I've tried and they work well.
Thank you!

Updating to GCC-10.1.0 and re-emerging @world led to many failed emerges.
(over 70 packages). The error is always the same, it starts with the same line during configure and breaks compilation on the same error.
Code:
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... failed

...imagine a completed configure and a running compiler here...

../libtool: 1: eval: Syntax error: "|" unexpected
Re-emerging libtool or binutils does not help.
The solution is to add the following to your CFLAGS: -ffat-lto-objects
and this to your make.conf: NM='gcc-nm --plugin ""'

Obviously, nm is broken with the lto plugin and needs proper symbol tables in object files


Packages that broke compilation with GCC10
    portage/elog/app-crypt/gcr-3.34.0-r1
    portage/elog/app-crypt/libsecret-0.20.3
    portage/elog/app-crypt/p11-kit-0.23.20-r1
    portage/elog/app-text/enchant-2.2.8
    portage/elog/app-text/evince-3.34.2
    portage/elog/app-text/libetonyek-0.1.9-r1
    portage/elog/app-text/libmspub-0.1.4
    portage/elog/dev-libs/dbus-glib-0.110
    portage/elog/dev-libs/fribidi-1.0.9
    portage/elog/dev-libs/jansson-2.12
    portage/elog/dev-libs/libatasmart-0.19_p5
    portage/elog/dev-libs/libpipeline-1.5.2
    portage/elog/dev-python/dbus-python-1.2.16
    portage/elog/dev-scheme/guile-2.2.6
    portage/elog/dev-util/android-tools-9.0.0_p3-r1
    portage/elog/dev-util/pkgconf-1.6.3
    portage/elog/gnome-base/gnome-keyring-3.34.0
    portage/elog/gnome-base/librsvg-2.40.21
    portage/elog/media-gfx/enblend-4.2.0_p20161007-r1
    portage/elog/media-libs/glu-9.0.1
    portage/elog/media-libs/ilmbase-2.3.0
    portage/elog/media-libs/libbluray-1.2.0
    portage/elog/media-libs/libdvdnav-6.1.0
    portage/elog/media-libs/libdvdread-6.1.0
    portage/elog/media-libs/libgphoto2-2.5.22
    portage/elog/media-libs/libsndfile-1.0.29_pre2_p20191024
    portage/elog/media-plugins/calf-0.90.3
    portage/elog/media-plugins/gst-plugins-libav-1.16.2-r1
    portage/elog/media-plugins/gst-plugins-lv2-1.16.2
    portage/elog/media-plugins/libvisual-plugins-0.4.0-r3
    portage/elog/media-sound/mpg123-1.25.13
    portage/elog/media-sound/pulseeffects-4.7.2
    portage/elog/net-misc/curl-7.70.0
    portage/elog/sci-calculators/galculator-2.1.4
    portage/elog/sys-apps/accountsservice-0.6.50-r1
    portage/elog/sys-apps/util-linux-2.35.1-r2
    portage/elog/sys-auth/elogind-243.7
    portage/elog/sys-auth/polkit-0.116-r1
    portage/elog/sys-devel/autogen-5.18.16-r1
    portage/elog/sys-devel/clang-10.0.0
    portage/elog/sys-devel/gettext-0.20.2
    portage/elog/sys-devel/llvm-10.0.0
    portage/elog/sys-fs/eudev-3.2.9
    portage/elog/sys-fs/udisks-2.8.4
    portage/elog/sys-power/upower-0.99.11
    portage/elog/www-client/firefox-76.0.1
    portage/elog/x11-libs/colord-gtk-0.1.26
    portage/elog/x11-libs/libwnck-3.30.0
    portage/elog/x11-libs/pango-1.42.4-r2
    portage/elog/x11-libs/xcb-util-cursor-0.1.3-r2
    portage/elog/x11-misc/colord-1.3.5
    portage/elog/x11-misc/lightdm-1.30.0
    portage/elog/xfce-base/exo-0.12.11
    portage/elog/xfce-base/garcon-0.7.0
    portage/elog/xfce-base/libxfce4ui-4.15.2
    portage/elog/xfce-base/libxfce4util-4.15.0
    portage/elog/xfce-base/thunar-1.8.14
    portage/elog/xfce-base/xfce4-panel-4.14.4
    portage/elog/xfce-base/xfconf-4.14.3
    portage/elog/xfce-extra/xfce4-cpugraph-plugin-1.1.0
    portage/elog/xfce-extra/xfce4-datetime-plugin-0.8.0
    portage/elog/xfce-extra/xfce4-diskperf-plugin-2.6.2
    portage/elog/xfce-extra/xfce4-mount-plugin-1.1.3
    portage/elog/xfce-extra/xfce4-notifyd-0.6.1
    portage/elog/xfce-extra/xfce4-places-plugin-1.8.1
    portage/elog/xfce-extra/xfce4-power-manager-1.7.0
    portage/elog/xfce-extra/xfce4-pulseaudio-plugin-0.4.3
    portage/elog/xfce-extra/xfce4-screenshooter-1.9.7
    portage/elog/xfce-extra/xfce4-sensors-plugin-1.3.92-r1
    portage/elog/xfce-extra/xfce4-systemload-plugin-1.2.3
    portage/elog/xfce-extra/xfce4-verve-plugin-2.0.0
    portage/elog/xfce-extra/xfce4-weather-plugin-0.10.1

_________________
There's no stupid questions, only stupid answers.


Last edited by dr_wulsen on Mon May 11, 2020 6:21 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sun May 10, 2020 2:21 am    Post subject: Reply with quote

That seems to be: https://bugs.gentoo.org/708340

Please try binutils-2.34-r1. :)
Back to top
View user's profile Send private message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Sun May 10, 2020 8:27 am    Post subject: Reply with quote

Will do, but currently I am on 2.34; so shouldn't the fix be there anyway?
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22730

PostPosted: Sun May 10, 2020 5:37 pm    Post subject: Reply with quote

2.34 is less than 2.34-r1, so assuming the title in the bug is accurate, then no, your version should not have the fix.
Back to top
View user's profile Send private message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Sun May 10, 2020 7:41 pm    Post subject: Reply with quote

aaand this is the definite proof that the biggest advantage is not being able to read, but actually reading.
I'll give the - r1 a shot, didn't have it in my portage tree yet.
Thanks for your patience :)
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sun May 10, 2020 7:46 pm    Post subject: Reply with quote

Quote:
I'll give the - r1 a shot, didn't have it in my portage tree yet.

It is there, but it's masked. Add the line below to /etc/portage/package.accept_keywords:
Code:
=sys-devel/binutils-2.34-r1 **
Back to top
View user's profile Send private message
dr_wulsen
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2013
Posts: 146
Location: Austria

PostPosted: Mon May 11, 2020 6:18 am    Post subject: Reply with quote

Good morning,

after syncing my tree and unmasking binutils-2.34-r1, making sure they were selected I tried, and it works.
Thank you for your guidance, the community is definitely what makes gentoo a really great distribution!
_________________
There's no stupid questions, only stupid answers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum