View previous topic :: View next topic |
Author |
Message |
kernelOfTruth Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neysx Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/17295657453e350b33c0b78.jpg)
Joined: 27 Jan 2003 Posts: 795
|
Posted: Mon May 07, 2007 3:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kernelOfTruth Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelOfTruth Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Mon May 07, 2007 5:16 pm Post subject: |
|
|
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 ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelOfTruth Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Tue May 08, 2007 7:22 pm Post subject: |
|
|
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
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) )... _________________ 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 ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kernelOfTruth Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Wed May 09, 2007 2:21 pm Post subject: |
|
|
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
|
![Cool 8)](images/smiles/icon_cool.gif) _________________ 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 ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|