Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reproducable error with stage1 install and "groff"
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
djh-world
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 281
Location: Nottingham, UK

PostPosted: Fri Feb 20, 2004 7:27 pm    Post subject: Reproducable error with stage1 install and "groff" Reply with quote

Hello there, over the past few days i've been attempting to succesfully complete a stage 1 installation, but failed because of one annoying error that will not go away. Upon starting the "emerge system" stage, I get this error when its compiling groff (i'm typing this using links, so excuse me for any errors in this post):-

Code:
 
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)


This is a reproducable error, and i've tried emerging all of the versions of groff in the sys-apps/groff/ folder (1.18.1-r1 & r2 & r3 & r4) which reproduce exactly the same error as above, no changes!

Can anyone help me? I hate having to sit and type in links, I want my gentoo install back! :-(
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Fri Feb 20, 2004 7:34 pm    Post subject: Reply with quote

can you post the output of
Code:

emerge info

??
HTH
Back to top
View user's profile Send private message
djh-world
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 281
Location: Nottingham, UK

PostPosted: Fri Feb 20, 2004 8:13 pm    Post subject: Reply with quote

Yeah sure, I just wish there was a copy + paste command in links :(

Code:

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"


Interestingly, those use flags at the bottem are different from the use flags in my make.conf....
Back to top
View user's profile Send private message
djh-world
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 281
Location: Nottingham, UK

PostPosted: Fri Feb 20, 2004 8:25 pm    Post subject: Reply with quote

You reckon its because i'm using the "stage1-athlon-xp-2004.0-20040210.tar.bz2" stage tarball?
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Tue Feb 24, 2004 5:52 am    Post subject: Reply with quote

I'm having the same problem. Anyone have a solution?

I'm using stage1-pentium4-pie-ssp-2004.0.tar.bz2.
Back to top
View user's profile Send private message
Flop
n00b
n00b


Joined: 26 Jan 2004
Posts: 40
Location: Montréal, Canada

PostPosted: Tue Feb 24, 2004 8:01 am    Post subject: Reply with quote

stage1-pentium4-pie-ssp-2004.0.tar.bz2 too.

Links. :(
Back to top
View user's profile Send private message
superman_440
n00b
n00b


Joined: 29 Sep 2003
Posts: 13

PostPosted: Tue Feb 24, 2004 12:03 pm    Post subject: me too Reply with quote

same here with stage1-x86-pie-ssp-2004.0.tar.bz2
Back to top
View user's profile Send private message
Genfoo'
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 112

PostPosted: Wed Feb 25, 2004 12:09 am    Post subject: Reply with quote

Bumpfoo'

Is bumping even allowed here?
Back to top
View user's profile Send private message
a2i
n00b
n00b


Joined: 24 Feb 2004
Posts: 5

PostPosted: Wed Feb 25, 2004 2:00 am    Post subject: Reply with quote

I had the same thing happen to me. I had to start bootstrapping over with different flags.

These are the flags I used that worked.

-pipe -O3 -march=pentium4 -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
Back to top
View user's profile Send private message
Yak
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 107

PostPosted: Wed Feb 25, 2004 6:18 am    Post subject: Reply with quote

Code:
# pwd
/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/contrib/mom

# GROFF_COMMAND_PREFIX=''; export GROFF_COMMAND_PREFIX; GROFF_BIN_PATH=`echo /var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/roff/groff /var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/roff/troff /var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/devices/grops | sed -e 's|  *|:|g'`; export GROFF_BIN_PATH; /var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/roff/groff/groff -F/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/font -F/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/font -M/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/tmac -M/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/tmac -M/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/contrib/mom -Tps -mom examples/letter.mom >examples/letter.ps
Segmentation fault


yep, reproducible
Back to top
View user's profile Send private message
fynn
n00b
n00b


Joined: 25 Feb 2004
Posts: 2

PostPosted: Wed Feb 25, 2004 6:31 am    Post subject: Reply with quote

me too ;-)

However.... I was dorking around trying to find a way around this, and something in the following sequences of steps I did seems to have gotten me past this point:

* unmerge hardened-gcc
* emerge hardened-gcc
* execute "hardened-gcc -A"

At this point, groff emerges successfully???
Back to top
View user's profile Send private message
Yak
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 107

PostPosted: Wed Feb 25, 2004 8:52 am    Post subject: Reply with quote

Finally figured it out, thanks for the help fynn. I was trying all kinds of different CXXFLAGS and getting nowhere.

It seems that the existing version 2.4.5 of hardened-gcc has a config file /etc/hcc.conf. When you 'emerge system' the first thing it does is update hardened-gcc, but due to the config file protection /etc/hcc.conf does not get overwritten with the newer version. So all that really needs done is to get hardened-gcc using the right config file.

Code:
mv /etc/._cfg0000_hcc.conf /etc/hcc.conf
hardened-gcc -a


Btw, you may want to do some investigating with
Code:
find /etc -iname '._cfg*'
less /etc/hcc.conf
less /etc/._cfg0000_hcc.conf

and such, before you blindly overwrite config files. Look for the versions in the headers.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Feb 27, 2004 8:15 pm    Post subject: Reply with quote

Yak wrote:

Code:
mv /etc/._cfg0000_hcc.conf /etc/hcc.conf
hardened-gcc -a


Thank you.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
complich8
n00b
n00b


Joined: 26 Feb 2004
Posts: 23

PostPosted: Sat Feb 28, 2004 3:06 am    Post subject: Reply with quote

yuppers. Thanks for answering this thread.

I'm bootstrapping from stage 1 following the instructions too, and hit the same thing.

etc-update (use the new one) followed by hardened-gcc -a and groff passed by just fine. Now I'm waiting for the next failure point ;)
_________________
complacence is the enemy
Back to top
View user's profile Send private message
Ambrosa
n00b
n00b


Joined: 04 Nov 2003
Posts: 31
Location: Milan - Italy

PostPosted: Sat Feb 28, 2004 7:47 am    Post subject: Reply with quote

The solution:
mv /etc/._cfg0000_hcc.conf /etc/hcc.conf
hardened-gcc -a
it' ok also for me.

I've yesterday tried to install 2004.0 Stage1 and fails to 'emerge system' in GROFF compilation as described above.

This solution works and now I'm doing 'emerge system' without any problem.

Thanks
Back to top
View user's profile Send private message
2sheds
n00b
n00b


Joined: 27 Feb 2004
Posts: 48
Location: Sydney, Oz

PostPosted: Sat Feb 28, 2004 9:25 am    Post subject: Reply with quote

Doesn't work for me! I tried the fix:
mv /etc/._cfg0000_hcc.conf /etc/hcc.conf
hardened-gcc -a

then

emerge system

and ended up with this:

>>> emerge (1 of 61) sys-apps/groff-1.18.1-r4 to /
>>> md5 src_uri ;-) groff-1.18.1.tar.gz

Finito! I have no idea what it is telling me. Any ideas?
Back to top
View user's profile Send private message
psofa
Guru
Guru


Joined: 28 Feb 2004
Posts: 485

PostPosted: Sat Feb 28, 2004 12:13 pm    Post subject: Reply with quote

it works thanks!
_________________
psofa
Back to top
View user's profile Send private message
gchen77
n00b
n00b


Joined: 01 Mar 2004
Posts: 5
Location: Florida

PostPosted: Mon Mar 01, 2004 7:25 pm    Post subject: Thank you Yak! Reply with quote

Okay... I started a stage3 build the other day using the gentoo-2004.0 live basic. Everything worked fine.
Got everything up and running and then decided to do a emerge sync && emerge -u system. Worked just fine.
I then did a emerge apache and got a broken pipe error (sorry no logs).
I did an update of vim and same thing. I noticed that the error was coming from gcc. After a quick forum search I saw that someone had said it could be fixed with just an emerge of gcc. But it wouldn't even emerge that!
So I did a emerge --info and noticed that 2004.0 was using harden-gcc.
I did a quick forum search again and brought up this post. Boy did it save alot of headaches.
Thank you so much Yak!

Just as a side note though. I know the topic of this is an error with groff but as you can see from my post it actually applies to anything after a emerge system with hardened. Perhaps it could be retitled somehow to save some other newbie the headache that I had to go through?
:)
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Tue Mar 02, 2004 2:57 am    Post subject: THANK YOU!! =) Reply with quote

And guess what i have to say.......
Quote:
THANK YOU!! =)

_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
StarWarsHater
n00b
n00b


Joined: 22 May 2003
Posts: 30
Location: College Station, TX

PostPosted: Tue Mar 02, 2004 5:56 am    Post subject: Reply with quote

Very thank you! stage1-x86-2004.0 =)
Back to top
View user's profile Send private message
RemcoNL
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 178
Location: Leiden, The Netherlands

PostPosted: Tue Mar 02, 2004 8:21 am    Post subject: Reply with quote

Thank you, Yak!
Solved it for me too :D
_________________
Use Compact Flash cards as a silent IDE hard drive
Back to top
View user's profile Send private message
TheIxian
n00b
n00b


Joined: 09 Aug 2003
Posts: 13
Location: Minneapolis, MN

PostPosted: Tue Mar 02, 2004 9:57 am    Post subject: Reply with quote

Thanks a lot, back on track now.

I believe in Gentoo!
_________________
Irony can be pretty ironic sometimes
Back to top
View user's profile Send private message
schrepfler
n00b
n00b


Joined: 01 Mar 2004
Posts: 56
Location: Bologna, Italy

PostPosted: Tue Mar 02, 2004 12:06 pm    Post subject: Reply with quote

Had the same problem yesterday using stage1 for pentium4,
Thank god these forums are so full of information and to working networking and links2 ;)

PS. First time gentoo installer and plesantly surprised.
Back to top
View user's profile Send private message
LeTene
Guru
Guru


Joined: 02 Mar 2004
Posts: 348
Location: Ah'll glass ye!

PostPosted: Tue Mar 02, 2004 12:46 pm    Post subject: Reply with quote

Brilliant! Solved my problem also...a pity the Mr. Banana smiley isn't on this forum, as you all deserve a few victory dances...thanks people!
_________________
Docs, Tips & Tricks at the Gentoo Wiki page.
Back to top
View user's profile Send private message
muhr
n00b
n00b


Joined: 20 Feb 2004
Posts: 28

PostPosted: Tue Mar 02, 2004 3:03 pm    Post subject: Reply with quote

Another n00b that got helped by this thread :D

Great! And thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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