Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32409 - net-libs/c-client-2002d-r1 fails to compile with hardened-gcc, throws ICE
Summary: net-libs/c-client-2002d-r1 fails to compile with hardened-gcc, throws ICE
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 11:15 UTC by Eric Olinger
Modified: 2003-11-12 02:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
AstralStorm's emerge --verbose info (info,3.47 KB, text/plain)
2003-11-05 12:48 UTC, Radoslaw Szkodzinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Olinger 2003-10-31 11:15:38 UTC
c-client fails with a internal compiler error when building -r1. I currently
have 2002d installed, so that version seems to be working. This new verion is
needed to install the newest mod_php in x86. I've attached the main error 
portion below.

rfc822.c: In function `rfc822_parse_routeaddr':
rfc822.c:1167: Internal compiler error in instantiate_virtual_regs_1, at function.c:4143
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [rfc822.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/c-client-2002d-r1/work/imap-2002d/c-client'
make[2]: *** [lnp] Error 2
make[2]: Leaving directory `/var/tmp/portage/c-client-2002d-r1/work/imap-2002d/c-client'
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/var/tmp/portage/c-client-2002d-r1/work/imap-2002d'
make: *** [lnp] Error 2

!!! ERROR: net-libs/c-client-2002d-r1 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! (no error message)
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-31 12:25:24 UTC
1. 'emerge info'
2. how much memory in your machine, and is it good (memtest etc.)
Comment 2 Eric Olinger 2003-10-31 12:29:57 UTC
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10p1
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -funroll-loops -fomit-frame-pointer   
       -finline-functions -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -funroll-loops -fomit-frame-pointer 
               -finline-functions -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://supertux.com/pub/mirrors/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 arts avi encode foomaticdb gif imlib jpeg libg++ mad mikmod motif
mpeg ncurses oggvorbis pdflib png quicktime sdl spell svga truetype xml2
xmms xv gdbm berkdb slang readline libwww perl acl crypt exiscan-acl imap
ipv6 maildir mmx mysql pam php python sse ssl zlib -acpi -alsa -apm -cups
-gnome -gpm -gtk -gtk2 -java -kde -kerberos -ldap -nls -oss -opengl -postgres
-qt -selinux -tcpd -X"

I have 512mb ram and 512 swap, on this box.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-31 12:32:27 UTC
please try to reduce the cflags:
remove these first "-funroll-loops -finline-functions"
then if still failing, remove "-fstack-protector -fomit-frame-pointer"
Comment 4 Eric Olinger 2003-10-31 12:42:29 UTC
Already tried removing -fstack-protector and -fomit-frame-pointer, first
things
i tried. Just tried without -funroll-loops and -finline-functions, still
broken.
my current flags are "-march=pentium3 -O3 -pipe".
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-31 13:10:09 UTC
please try c-client-2002e
Comment 6 Eric Olinger 2003-10-31 13:22:19 UTC
same error
Comment 7 Eric Olinger 2003-11-03 10:52:32 UTC
Found the problem. I removed the -fstack-protector flag, but I forgot
I'm using the hardened-gcc package. Looks like c-client has issues with
hardened-gcc.
Comment 8 Radoslaw Szkodzinski 2003-11-05 12:36:43 UTC
Confirming, same error. Disabling stack-protector allows the package to compile.
( hcc -p and removing -fstack-protector from cflags )
Comment 9 Radoslaw Szkodzinski 2003-11-05 12:48:18 UTC
Created attachment 20302 [details]
AstralStorm's emerge --verbose info
Comment 10 Alexander Gabert (RETIRED) gentoo-dev 2003-11-11 01:17:03 UTC
>>> emerge (1 of 1) net-libs/c-client-2002d-r1 to /
...
>>> net-libs/c-client-2002d-r1 merged.
09:32:47 [/usr/local/chroots/chroot001:11605.pty-s2.epoch] epoch ~ # hcc
-l
 glibc: GNU C Library stable release version 2.3.2, by Roland McGrath et
al.
 glibc: Compiled by GNU CC version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2,
propolice).
   gcc: gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
    ld: GNU ld version 2.14.90.0.2 20030515

config: hcc-2.4.5-x86  -  /etc/hcc.conf

emerges cleanly with hcc-2.4.5 and the glibc/gcc propolice patch

you need to wait for Azarah to add the glibc/gcc propolice patches for hardened-gcc
2.4.5 to cvs and then reemerge them:
emerge glibc gcc hardened-gcc

HTH,

Alex
Comment 11 Alexander Gabert (RETIRED) gentoo-dev 2003-11-11 01:18:45 UTC

*** This bug has been marked as a duplicate of 32960 ***
Comment 12 Alexander Gabert (RETIRED) gentoo-dev 2003-11-11 01:20:10 UTC
ouch, mistakenly attached this bug to 32960 PT_GNU_STACK
Comment 13 Alexander Gabert (RETIRED) gentoo-dev 2003-11-12 02:55:22 UTC
please test the ebuild and report back,

TIA,

Alex