Gentoo Archives: gentoo-hardened

From: Gordon Malm <gengor@g.o>
To: gentoo-hardened@l.g.o
Cc: "Kārlis Repsons" <karlis.repsons@×××××.com>
Subject: Re: [gentoo-hardened] GCC upgrading from 3.4.6-r2 to 4.3.4 dies
Date: Mon, 01 Feb 2010 23:02:36
Message-Id: 201002011437.59563.gengor@gentoo.org
In Reply to: Re: [gentoo-hardened] GCC upgrading from 3.4.6-r2 to 4.3.4 dies by "Kārlis Repsons"
1 On Monday, February 1, 2010 11:54:55 Kārlis Repsons wrote:
2 > On Monday 01 February 2010 19:14:35 Gordon Malm wrote:
3 > > emerge --info please.
4 >
5 > Portage 2.1.7.16 (hardened/linux/x86/10.0, gcc-3.4.6, glibc-2.10.1-r1,
6 > 2.6.28-hardened-r9-2009.11.19 i686)
7 > =================================================================
8 > System uname:
9 > Linux-2.6.28-hardened-r9-2009.11.19-i686-VIA_Eden_Processor_1200MHz-with-ge
10 >ntoo-1.12.11.1 Timestamp of tree: Sun, 31 Jan 2010 17:00:01 +0000
11 > app-shells/bash: 4.0_p28
12 > dev-lang/python: 2.6.2-r1
13 > sys-apps/baselayout: 1.12.11.1
14 > sys-apps/sandbox: 1.6-r2
15 > sys-devel/autoconf: 2.63-r1
16 > sys-devel/automake: 1.9.6-r2, 1.10.2
17 > sys-devel/binutils: 2.18-r3
18 > sys-devel/gcc-config: 1.4.0-r4
19 > sys-devel/libtool: 2.2.6a
20 > virtual/os-headers: 2.6.23-r3
21 > ACCEPT_KEYWORDS="x86"
22 > ACCEPT_LICENSE="* -@EULA"
23 > CBUILD="i686-pc-linux-gnu"
24 > CFLAGS="-march=prescott -O2 -pipe -msse2 -mmmx -msse"
25 > CHOST="i686-pc-linux-gnu"
26 > CONFIG_PROTECT="/etc"
27 > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
28 > /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d
29 > /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -msse2
30 > -mmmx -msse"
31 > DISTDIR="/usr/portage/distfiles"
32 > FEATURES="assume-digests distlocks fixpackages news parallel-fetch
33 > protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans
34 > userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org
35 > http://distro.ibiblio.org/pub/linux/distributions/gentoo"
36 > LANG="en_GB.UTF-8"
37 > LDFLAGS="-Wl,-O1"
38 > LINGUAS="en_GB.UTF8"
39 > PKGDIR="/usr/portage/packages"
40 > PORTAGE_CONFIGROOT="/"
41 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
42 > --compress --force --whole-file --delete --stats --timeout=180
43 > --exclude=/distfiles --exclude=/local --exclude=/packages"
44 > PORTAGE_TMPDIR="/var/tmp"
45 > PORTDIR="/usr/portage"
46 > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
47 > USE="acl bzip2 cli cracklib crypt cups cxx dhcp dri gdbm hal hardened iconv
48 > imap maildir modules mudflap mysql ncurses nls nptl nptlonly openmp pcre
49 > pic pppd python readline reflection sasl session slang spl sse2 ssl sysfs
50 > tcpd udev unicode urandom usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000
51 > atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371
52 > es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident
53 > usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym
54 > copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
55 > lfloat linear meter mmap_emul mulaw multi null plug rate route share shm
56 > softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
57 > authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile
58 > authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock
59 > deflate dir disk_cache env expires ext_filter file_cache filter headers
60 > include info log_config logio mem_cache mime mime_magic negotiation rewrite
61 > setenvif speling status unique_id userdir usertrack vhost_alias"
62 > ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
63 > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
64 > ncurses text" LINGUAS="en_GB.UTF8" RUBY_TARGETS="ruby18" USERLAND="GNU"
65 > VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel
66 > mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage
67 > siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware
68 > voodoo"
69 > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
70 > LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
71 > PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
72
73 Wasn't one of the two common (fixed) reasons I was hoping it might be. I
74 suspect it is something incompat with the less often used VIA CPU & gcc-3.4.6
75 (or maybe a combo of circumstances). You might want to try building a
76 non-hardened compiler and use it as an intermediate step to building the
77 hardened gcc-4.3.4 compiler.
78
79 Perhaps you can install and use a binary gcc-4.3.4 package[1] and then
80 recompile hardened gcc-4.3.4 to your specifications. Try it out on a staging
81 environment.
82
83 [1] http://tinderbox.dev.gentoo.org/hardened/x86/sys-devel/gcc-4.3.4.tbz2
84
85 There are some other VIA users in hardened, I seem to recall one of them on
86 IRC having this same issue. Any tips for Kārlis?
87
88 Gordon Malm (gengor)

Replies

Subject Author
Re: [gentoo-hardened] GCC upgrading from 3.4.6-r2 to 4.3.4 dies "Kārlis Repsons" <karlis.repsons@×××××.com>