Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
upgrading on hardened gentoo from gcc3.4 & glibc2.3 to gcc4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon May 07, 2007 2:34 pm    Post subject: upgrading on hardened gentoo from gcc3.4 & glibc2.3 to g Reply with quote

Hi there,

is the following guide working / has anyone tested it?

http://209.85.129.104/search?q=cache:KDy8dFw-3LcJ:sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/hardened/toolchain-upgrade-guide.xml%3Frev%3D1.2+hardened+gentoo+glibc+2.5&hl=de&ct=clnk&cd=1&gl=at

thanks in advance ...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Mon May 07, 2007 3:00 pm    Post subject: Reply with quote

http://www.gentoo.org/proj/en/hardened/toolchain-upgrade-guide.xml is the document you tried to link to.
toolchain-upgrade-guide.xml wrote:
Disclaimer : This document is a work in progress and should not be considered official yet.
I haven't tested it, but if you give it a go, feedback would be appreciated. Thanks.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon May 07, 2007 3:25 pm    Post subject: Reply with quote

thanks, neysx

how high is the possibility that my system doesn't work after the switch ? or should it be working fine ?

... anyway I'll give it a try (after backing up the system)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon May 07, 2007 5:16 pm    Post subject: Reply with quote

I always get this or similar errors when trying to install gcc (-hardened):

Quote:
In file included from /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/include/memory:61,
from /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/include/string:48,
from /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
from /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/include/locale:46,
from /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/include/limits:990: error: stray ‘\226’ in program
/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/include/limits:1047: error: stray ‘\374’ in program
/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/include/limits:1104: error: stray ‘\226’ in program
make[5]: *** [codecvt.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-target-libstdc++-v3] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.2 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
ebuild.sh, line 1304: Called toolchain_src_compile
toolchain.eclass, line 26: Called gcc_src_compile
toolchain.eclass, line 1552: Called gcc_do_make
toolchain.eclass, line 1426: Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.1.2/temp/build.log'.

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue May 08, 2007 7:22 pm    Post subject: Reply with quote

there's a problem in step 2.5:

I only get:

Quote:
gcc-config -l
[1] i686-pc-linux-gnu-3.4.6
[2] i686-pc-linux-gnu-3.4.6-hardenednopie
[3] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[4] i686-pc-linux-gnu-3.4.6-hardenednossp
[5] i686-pc-linux-gnu-3.4.6-vanilla
[6] i686-pc-linux-gnu-4.1.2 *


gcc 4.1.2 is supposed to offer a hardened profile, which is disabled by ebuild 8O

update:

now using hardened toolchain overlay ...

update2:
by using kevin quinn's hardened overlay files for gcc it worked pretty easily:
http://overlays.gentoo.org/svn/dev/kevquinn/hardened/toolchain/branches/

switching from a default to a hardened profile + using the hardened gcc 3.4.6 compiler of a hardened box also worked with that ebuild (4.1.2-r1)

thanks for that great work, now that only needs to be merged to the official portage tree (when it's ready (TM) 8) )...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed May 09, 2007 2:21 pm    Post subject: Reply with quote

here the output after the switch from default to hardened profile + update to hardened gcc4:

Quote:
gcc-config -l
[1] i686-pc-linux-gnu-3.4.6
[2] i686-pc-linux-gnu-3.4.6-hardenednopie
[3] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[4] i686-pc-linux-gnu-3.4.6-hardenednossp
[5] i686-pc-linux-gnu-3.4.6-vanilla
[6] i686-pc-linux-gnu-4.1.2 *
[7] i686-pc-linux-gnu-4.1.2-hardenednopiessp
[8] i686-pc-linux-gnu-4.1.2-hardenednossp
[9] i686-pc-linux-gnu-4.1.2-vanilla
[10] i686-pc-linux-gnu-4.2.0-pre20070501


:D 8)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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