View previous topic :: View next topic |
Author |
Message |
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 14, 2017 9:52 am Post subject: 17.0 Profile |
|
|
Team,
If you have not been following the -dev mailing list you won't know that there is a new profile being discussed.
Its a long way from becoming stable as it needs gcc-6.x
Forcing USE=pie is a good thing but breaks things too.
Gentoo stable users can stop reading here. Portage will tell when and how to upgrade when the time in right.
Gentoo testing users can follow the -dev mailing list and decide for themselves if/when they want to try the new profile.
User with a spare testing install, with hard masked stuff mixed in, that that they don't mind throwing away from time to time, can play any time.
Just now, its amd64 only ... that's how early in the profile lifecycle it is.
Its rather like buying a Ferrari. If you need to ask the price, you can't afford it.
Anyway, since I'm one of the nutcases with lots of corner cases in my install, I've switched to the new profile and recorded what happened.
It looks like the USE=(pie) prevents some cross toolchains building. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Wed Jun 14, 2017 10:39 am Post subject: |
|
|
As a ~amd64 user I will probably try the new 17.0 profile with my next system update, after creating a btrfs snapshot of the root filesystem. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 14, 2017 12:08 pm Post subject: |
|
|
fturco,
Good luck. Rebuild your gcc, so you pick up the USE=(pie) then you must rebuild everything that builds a static library. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Wed Jun 14, 2017 12:11 pm Post subject: |
|
|
Hi!
I have switched to profile 17.0, with no big problems.
The issues I had were almost the same as with gcc-6, except with klibc ("kernel does'nt support PIC" error). I will file bugs when needed.
I have not switched to gold nor LTO. Do I need to do it? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 14, 2017 12:24 pm Post subject: |
|
|
xaviermiller,
Gold and/or LTO are not part of the 17.0 profile today.
They might be tomorrow :)
Of course, that does not stop you switching, you just get a bigger problem space when things break. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 977 Location: Somewhere in Denmark
|
Posted: Wed Jun 14, 2017 2:57 pm Post subject: |
|
|
How do I actually get the 17.0 profile - do I keyword the profile somehow? (or do I need to go full ~amd64?)
Currently running gcc-7 with pie on 13.0/no-multilib profile.
Code: | Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0/no-multilib, gcc-7.1.0, glibc-2.25, 4.9.16-gentoo x86_64)
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-AMD_G-T40E_Processor-with-gentoo-2.3
KiB Mem: 4015556 total, 375660 free
KiB Swap: 4162644 total, 4162644 free
Timestamp of repository gentoo: Wed, 14 Jun 2017 02:00:02 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash: 4.3_p48-r1::gentoo
dev-lang/perl: 5.24.1-r2::gentoo
dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake: 3.7.2::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.3::gentoo
sys-apps/openrc: 0.26.3::gentoo
sys-apps/sandbox: 2.10-r3::gentoo
sys-devel/autoconf: 2.69::gentoo
sys-devel/automake: 1.15-r2::gentoo
sys-devel/binutils: 2.28-r2::gentoo
sys-devel/gcc: 7.1.0-r1::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25::gentoo
...
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -flto=3 -fuse-linker-plugin -fno-fat-lto-objects -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
...
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -flto=3 -fuse-linker-plugin -fno-fat-lto-objects -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -fno-delete-null-pointer-checks -flifetime-dse=1" |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 14, 2017 4:03 pm Post subject: |
|
|
freke,
You have to do it manually ... like you did in the days before eselect profile.
Set the symlink by hand.
/usr/portage/profiles/default/linux/amd64/ contains a 17.0/ dir.
I have Code: | ls -l /etc/portage/make.profile -l
lrwxrwxrwx 1 root root 63 Jun 11 19:18 /etc/portage/make.profile -> ../../usr/portage/profiles/default/linux/amd64/17.0/no-multilib |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 977 Location: Somewhere in Denmark
|
Posted: Wed Jun 14, 2017 4:47 pm Post subject: |
|
|
Damn - old habbits die fast it seems - totally forgot about that. So simple
Thanks. |
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Wed Jun 14, 2017 6:22 pm Post subject: |
|
|
I noticed the USE flag for gcc for PIE being available, though I wasn't for sure if it will apply PIE on everything or just gcc, as only a few ebuilds even have the PIE USE flag even listed (though probably masked). |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Jun 14, 2017 7:06 pm Post subject: |
|
|
ct85711,
When you build gcc with USE=pie, its applied to everything.
Hence the requirement to rebuild all your static libs.
Code: | $ equery h pie
* Searching for USE flag pie ...
[I-O] [ ] cross-aarch64-unknown-linux-gnu/gcc-6.3.0:6.3.0
[I-O] [ ] cross-aarch64-unknown-linux-gnu/gcc-7.1.0-r1:7.1.0
[I-O] [ ] cross-armv6j-hardfloat-linux-gnueabi/gcc-6.3.0:6.3.0
[I-O] [ ] cross-armv7a-hardfloat-linux-gnueabi/gcc-6.3.0:6.3.0
[I-O] [ -] cross-avr/gcc-6.3.0:6.3.0
[I-O] [ ] cross-i686-pc-linux-gnu/gcc-6.3.0:6.3.0
[I-O] [ ] cross-i686-pc-linux-gnu/gcc-7.1.0-r1:7.1.0
[I-O] [ ] cross-powerpc-unknown-linux-gnu/gcc-6.3.0:6.3.0
[IP-] [ ] net-misc/openssh-7.5_p1-r2:0
[IP-] [ ] sys-devel/gcc-6.3.0:6.3.0
[IP-] [ ] sys-devel/gcc-7.1.0-r1:7.1.0
[IP-] [ ] sys-libs/pam-1.3.0:0 |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Thu Jun 15, 2017 9:18 am Post subject: |
|
|
I found this command:
Code: | emerge --exclude 'dev-haskell/*' -1 $(find /lib* /usr/lib* -type f -name "*.a") |
What do you think? Is it appropriate?
Source. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Thu Jun 15, 2017 10:03 am Post subject: |
|
|
fturco,
Looks promising. Here, it wants to rebuild sys-devel/gcc-5.4.0-r3 which isn't allowed.
Code: | The following mask changes are necessary to proceed:
(see "package.unmask" in the portage(5) man page for more details)
# required by sys-devel/gcc:5.4.0 (argument)
# /usr/portage/profiles/releases/17.0/package.mask:
# Andreas K. Huettel <dilfridge@gentoo.org> (27 May 2017)
# Require a gcc here that uses C++14 or later as default setting
=sys-devel/gcc-5.4.0-r3 | as gcc<6 is masked.
That's correct though. The 17.0 profile needs gcc-6 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Fri Jun 16, 2017 9:35 am Post subject: |
|
|
NeddySeagoon wrote: | xaviermiller,
Gold and/or LTO are not part of the 17.0 profile today.
They might be tomorrow
Of course, that does not stop you switching, you just get a bigger problem space when things break. |
Hi Neddy,
Do I need to recompile all if I enable ld.gold as default linker? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri Jun 16, 2017 10:50 am Post subject: |
|
|
xaviermiller,
No, you can change linkers freely.
The gold linker is not nearly as tolerant of 'underlinking', so it exposes broken make systems that do not explicitly call all the libs they need.
File bugs and go back to the bfd linker for those packages. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Fri Jun 16, 2017 11:23 am Post subject: |
|
|
OK thank you, I will switch and watch the breakages _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Sat Jun 17, 2017 5:28 pm Post subject: |
|
|
Well, I also switched my system to 17.0 profile, though using gcc-6.3 right now, then later I'll update to gcc-7.
Initial issues I encountered so far, is the busybox failing (not due to pie). I am encountering https://bugs.gentoo.org/show_bug.cgi?id=617200 with glibc-2.24-r2; so I keyworded glibc-2.25 (according to the bug, this version has the fix). I didn't see any real bugs blocking the new glibc, except one that appears to be related with lto system...
Currently, I am rebuilding the entire system, and will update as I encounter any other issues. I am suspecting, next week I'll update gcc to 7.x.
Update: After a day and half of compiling, only one other package failed to recompile (besides busybox), clisp, which due to a different bug (there's already a bug report/supposed patch already).
So overall, I can say it went really well for my system, even though it is a multilib system. Later, I'll probably go ahead and switch to no-multilib, as nothing I am using need it. More likely, I do that switch when I update gcc, to 7.x. |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Mon Jun 19, 2017 9:56 am Post subject: |
|
|
Yesterday I finished switching my Gentoo system to the 17.0 profile with gcc-7.1.0-r1. No problems so far. I will provide further feedback if I find any problem. |
|
Back to top |
|
|
Tom_ Guru
Joined: 20 May 2004 Posts: 444 Location: France
|
Posted: Tue Oct 03, 2017 7:41 pm Post subject: |
|
|
I found this thread when I was looking for information about this new profile, cf https://forums.gentoo.org/viewtopic-t-1069826.html.
In the past, I read that Gold should be faster than bfd and also more modern.
NeddySeagoon and xaviermiller, what do you think about Gold? Is it really faster than bfd? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Oct 03, 2017 7:50 pm Post subject: |
|
|
Tom_,
I don't actually time my linking. All my systems update in the background, except the Raspberry Pis :)
It rare that I find a new linker problem with gold.
I described my experiences with the 17.0 profile and the gold linker on the wiki. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Wed Oct 04, 2017 6:15 am Post subject: |
|
|
Hi Tom_,
I don't use Gentoo for ricing or performance, I just use Gentoo as a stable and highliy configurable Linux metadistribution.
I don't care on compile times (my processors are old or low-end, and I compile in background on a old build server). _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Oct 04, 2017 6:41 am Post subject: |
|
|
I've had the opposite result: gold's slower, silently breaks some output programs (sshfs was the last one that bit me), and is more prone to OOMing than bfd. Not much of an upgrade at all. |
|
Back to top |
|
|
Tom_ Guru
Joined: 20 May 2004 Posts: 444 Location: France
|
Posted: Wed Oct 04, 2017 9:47 am Post subject: |
|
|
Thank you for your replies
I'm not looking for extreme performance either : i'm just wondering whether it would be worthwhile to switch to gold or not as i'm currently doing some spring cleaning on my workstation and general upgrades.
According to your replies, it doesn't surprise me anymore to find so little threads about gold in this forum.
I'm sticking to bfd as i want my system to be stable! |
|
Back to top |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Fri Oct 06, 2017 4:28 pm Post subject: |
|
|
Something goes wrong on my router. I changed profile, made bootstrap and emerge -e. After about 18h of rebuilding router froze, after restart I don't see any errors. Router have access to Internet, PC connected to router have access to router, but PC don't have access to Internet.
I wanted finish rebuild, but emerge --resume want rebuild everything from beginning. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri Oct 06, 2017 4:34 pm Post subject: |
|
|
lekto,
Please post Code: | ifconfig -a
route
emerge --info | from your router.
Explain what each interface in ifconfig is for.
This doe not sound like a profile switch issue. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|