View previous topic :: View next topic |
Author |
Message |
therealjrd Tux's lil' helper
Joined: 18 May 2006 Posts: 120
|
Posted: Sun Dec 03, 2017 11:35 pm Post subject: [SOLVED] gcc 5.4.0 vs hardening |
|
|
Hi all. I'm trying to do some upgrading, in preparation for moving to profile 17. I'm still at 13.
I have a VM on which I do most of my package building, before I try it out on any of my live server machines. I seem to have gotten my VM into a state where it will only build hardened compilers, even though I'm not running a hardened profile. When I
# gcc-config -l
I get only the plain x86_64-pc-linux-gnu-5.4.0, no -vanilla or -hardened* variants. The same seems to be true for 6.4.0.
I've tried switching back to an old 4.9.3 gcc which I haven't unmerged yet, same thing. I get the same results regardless of which version I use to compile the new ones. I've confirmed that I'm running profile default/linux/amd64/13.0/no-multilib
I have a feeling I've busted something in the env, but I don't know what. Before I blow the whole thing away and start over, does anybody have any ideas what I've done to myself?
Thanks in advance . . .
Last edited by therealjrd on Sun Dec 10, 2017 9:09 pm; edited 1 time in total |
|
Back to top |
|
|
AndrewAmmerlaan Developer
Joined: 25 Jun 2014 Posts: 266 Location: Nijmegen
|
Posted: Mon Dec 04, 2017 2:01 pm Post subject: Re: gcc 5.4.0 vs hardening |
|
|
therealjrd wrote: | Hi all. I'm trying to do some upgrading, in preparation for moving to profile 17. I'm still at 13.
I have a VM on which I do most of my package building, before I try it out on any of my live server machines. I seem to have gotten my VM into a state where it will only build hardened compilers, even though I'm not running a hardened profile. When I
# gcc-config -l
I get only the plain x86_64-pc-linux-gnu-5.4.0, no -vanilla or -hardened* variants. The same seems to be true for 6.4.0.
I've tried switching back to an old 4.9.3 gcc which I haven't unmerged yet, same thing. I get the same results regardless of which version I use to compile the new ones. I've confirmed that I'm running profile default/linux/amd64/13.0/no-multilib
I have a feeling I've busted something in the env, but I don't know what. Before I blow the whole thing away and start over, does anybody have any ideas what I've done to myself?
Thanks in advance . . . |
I'm running gcc 6.4.0 on default/linux/amd64/17.0/desktop/plasma, and my gcc-config -l looks like this:
Code: | andrew@Andrew-Gentoo ~ $ gcc-config -l
[1] x86_64-pc-linux-gnu-6.4.0 *
|
I believe you only get the option vanilla/hardened if you actually run a hardened profile, the wiki page shiws this for a hardened system:
Code: | root #gcc-config -l
[1] i686-pc-linux-gnu-4.5.3 *
[2] i686-pc-linux-gnu-4.5.3-hardenednopie
[3] i686-pc-linux-gnu-4.5.3-hardenednopiessp
[4] i686-pc-linux-gnu-4.5.3-hardenednossp
[5] i686-pc-linux-gnu-4.5.3-vanilla
|
_________________ OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
therealjrd Tux's lil' helper
Joined: 18 May 2006 Posts: 120
|
Posted: Mon Dec 04, 2017 8:03 pm Post subject: Re: gcc 5.4.0 vs hardening |
|
|
AndrewAmmerlaan wrote: |
I believe you only get the option vanilla/hardened if you actually run a hardened profile, the wiki page shiws this for a hardened system:
|
Ah. Of course. That makes all kinds of sense. I guess I must have been playing with hardened profiles and left some detritus behind.
I'll confirm that tonight. Many thanks! |
|
Back to top |
|
|
therealjrd Tux's lil' helper
Joined: 18 May 2006 Posts: 120
|
Posted: Sun Dec 10, 2017 9:10 pm Post subject: |
|
|
Closing the loop, yes, switching to a non-hardened profile and rebuilding the toolchain did what I expected.
I have a separate problem stemming from this exercise, will post separately.
Thanks! |
|
Back to top |
|
|
|
|
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
|
|