Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42373 - problems with hardened stages and hardened-gcc
Summary: problems with hardened stages and hardened-gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: The Gentoo Linux Hardened Team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-21 08:37 UTC by Daniel Harper
Modified: 2004-03-12 18:05 UTC (History)
2 users (show)

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


Attachments
Output of "emerge groff" (grofferror.txt,60.14 KB, text/plain)
2004-02-26 08:15 UTC, Peter Mayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harper 2004-02-21 08:37:27 UTC
After bootstrapping the system using the "2004.0" live cd and using the "stage1-athlon-xp-2004.0-20040210.tar.bz2" tarball, going into the "emerge system" stage, I receive this error when compiling "groff" 

"make[2]: *** [examples/letters.ps] Error 139 
make[2]: Leaving directory '/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/contrib/mom' 
make[1]: *** [contrib/mom] Error 2 
make[1]: Leaving directory '/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1' 
make: *** [all] Error 2 

!!! ERROR: sys-apps/groff-1.18.1-r4 failed. 
!!! Function src_compile, Line 85, Exitcode 2 
!!! (no error message)"

I've tried using previous versions of groff, but I get exactly the same error no matter what I do. I figured this was a bug because upon re-formatting and using an older stage1 tarball, I received no errors, installation went smooth


 

Reproducible: Always
Steps to Reproduce:
1.Download stage1-athlon-xp-2004.0-20040210.tar.bz2 tarball
2.Follow installation instructions till you finish the bootstrap process
3.Do an "Emerge System" 

Actual Results:  
"Groff-1.18.1" stopped compiling with this error 

"make[2]: *** [examples/letters.ps] Error 139 
make[2]: Leaving directory '/var/tmp/portage/groff-1.18.1-r4/work/groff-
1.18.1/contrib/mom' 
make[1]: *** [contrib/mom] Error 2 
make[1]: Leaving directory '/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1' 
make: *** [all] Error 2 

!!! ERROR: sys-apps/groff-1.18.1-r4 failed. 
!!! Function src_compile, Line 85, Exitcode 2 
!!! (no error message)"

Every single time

Expected Results:  
Compiled groff and carried on emerging system. 

portage-2.0.50-r1 (hardened-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24-xfs-
r0) 
========================================= 
System uname: 2.4.24-xfs-r0 i686 AMD Athlon(tm) XP 2400+ 
Gentoo Base System version 1.4.3.13 
Autoconf: 
Automake: 
ACCEPT_Keywords="~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control" 
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox sfperms strict" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS= "-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR"/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow alsa berkdb crypt kde mmx nls pam pic qt readline ssl tcpd x86 xmms 
zlib" 
 


Running 2004.0 live cd
Comment 1 Patrick McLean gentoo-dev 2004-02-25 09:55:21 UTC
Same thing here, using 2004.0 stage1 image (not using a livecd), 3 different times. Going to try the 1.4 stage1.
Comment 2 Bart Van Kerkhove 2004-02-25 10:45:50 UTC
Same here, "clean" install of gentoo 2004.0, no specific options turned on.  Groff bails out with the error above.
Comment 3 Ivan Lalaguna 2004-02-25 11:43:34 UTC
Seems to be a problem with binutils(ld says "cannot find entry symbol _start; defaulting to ...."
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-02-25 13:53:13 UTC
Want to post the actual error and not just the makefile failing out?
Might be a ways back.
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2004-02-25 21:19:56 UTC
this is a hardened stage, not a vanilla x86 stage
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2004-02-25 21:20:49 UTC
kurt, see here for what I was talking about wrt the confusion about hardened and regular living together
Comment 7 Peter Mayer 2004-02-26 08:15:14 UTC
Created attachment 26399 [details]
Output of "emerge groff"

I have the same problem, clean install from stage1-x86-pie-ssp-2004.0.tar.bz2

USE="-gtk -gnome qt kde dvd alsa cdr"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"

Problem occurs on "emerge system" and also on "emerge groff"
Comment 8 Alexander Gabert (RETIRED) gentoo-dev 2004-02-26 12:56:47 UTC
please do etc-update and hcc -a
if that does not help, unmerge hardened-gcc
if that does not help, gcc -dumpspecs > $(gcc-config -L)/specs
if that does not help, write to me or meet me on gentoo-hardened, we can provide you some fresh specs if you need one

sorry for inconveniences,

Alex
Comment 9 Bryan Duff 2004-02-27 07:58:50 UTC
Thanks Alexander.

That solution solved the problem for me (etc-update && hcc -a).  I used the hardened stage; and did emerge system again, and groff emerge without issue.  Just thought you would like to know.

-Bryan
Comment 10 Alexander Gabert (RETIRED) gentoo-dev 2004-02-27 09:22:17 UTC
close the bug
close the bug

close the bug
close the bug

close it please close it yeah yeah yeah close it yeah

wow, that was close ;-)

(just a little pun here, no offense intented)
Comment 11 Robert Coie (RETIRED) gentoo-dev 2004-02-28 17:24:52 UTC
Reopening and changing title at request of pappy.
Comment 12 Joshua Brindle (RETIRED) gentoo-dev 2004-02-28 17:25:20 UTC
"Steps to Reproduce:
1.Download stage1-athlon-xp-2004.0-20040210.tar.bz2 tarball"

that does show it being a pie-ssp stage, our stages are suppose to be labeled with pie-ssp, i've just looked and the url is 
http://gentoo.oregonstate.edu/experimental/x86/stages/athlon-xp/hardened/
which isn't clear enough i guess that this is not a plain stage.

I'm cc'ing zhen to take care of the naming conventions, perhaps we also need to add a README to the hardened directory

Zhen: in addition to the naming scheme this needs to be fixed so that this error doesn't happen to hardened users

[19:23] <pappy-> updating hardened-gcc replaces config script
[19:23] <pappy-> which does not run etc-update during update
[19:23] <pappy-> which then cannot run hcc -a with the right config when gcc made it through

Comment 13 Alexander Gabert (RETIRED) gentoo-dev 2004-03-01 06:56:18 UTC
as talked to rac on the -dev channel, we will have to do something about this

step 1) mask all versions of hardened-gcc, remove hardened-gcc from CVS
step 2) mask sys-devel/hardened-gcc in all profiles, forcing blocker removal
step 3) mask sys-devel/hardened as block in recent gcc ebuilds to force removal before gcc can be updated

the last step will be introducing the new "hardened" USE flag (IUSE and USE.description need to be updated for this)

again, thanks to rac for being so pervasive about this hot issue, i was not aware that the problem was so wide-spread.

i think we can solve this issue tonight and prevent users from falling down this way in the future.
Comment 14 Brandon Hale (RETIRED) gentoo-dev 2004-03-12 18:05:25 UTC
hardened-gcc is now masked for all users, and the hardened stages are moved to a less confusing location. Looks like we are past this particular bump in the road.