Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -u world ERROR: sys-apps/groff-1.18.1 failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
g-man
n00b
n00b


Joined: 19 Jan 2003
Posts: 42
Location: Fort Collins CO

PostPosted: Sun Jan 19, 2003 9:09 pm    Post subject: emerge -u world ERROR: sys-apps/groff-1.18.1 failed Reply with quote

I am a newbie to gentoo and am installing it for the first time. I am following the directions and am using the stage 3 tarball and have gotten as far as emerge -u world. It appears the very first app it downloads and tries to compile is groff.

Here is what I get:

bash-2.05a# emerge -u world

Calculating world dependencies ...done!
>>> emerge (1 of 40) sys-apps/groff-1.18.1 to /
>>> md5 ;-) groff-1.18.1.tar.gz
>>> Unpacking source...
>>> Unpacking groff-1.18.1.tar.gz
* Applying groff-1.18-infoext.patch... [ ok ]
* Applying groff-1.18-no-netpbm-depend.patch... [ ok ]
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
check `config.log' for details.

!!! ERROR: sys-apps/groff-1.18.1 failed.
!!! Function src_compile, Line 8, Exitcode 77
!!! (no error message)

I am compliling on an athlon machine. My /etc/make.conf has

USE="X gtk gnome -alsa avi kde arts bonobo cdr crypt cups evo encode fbcon gdbm gif gpm gtk gtk2 gtkhtml innodb java jikes jpeg kerberos libgda libwww mbox mozilla mpeg mysql ncurses nocardbus oav oggvorbis opengl pdflib perl python gt gtmt quicktime readline sasl scanner slp snmp socks5 spell sse ssl svga tcltk tcpd tiff truetype wmf xml xml2 xv zlib x86"

CFLAGS="march=athlon-xp -O3 -pipe"
CXXFLAGS="${CFLAGS}"
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Jan 19, 2003 10:04 pm    Post subject: Reply with quote

Can you look for config.log in the groff build directory under /var/tmp/portage, and post parts that look relevant?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
g-man
n00b
n00b


Joined: 19 Jan 2003
Posts: 42
Location: Fort Collins CO

PostPosted: Mon Jan 20, 2003 8:57 pm    Post subject: re: emerge -u world ERROR: sys-apps/groff-1.18.1 failed Reply with quote

I found the problem. I incorrectly set the CFLAGS variable in make.conf. It should have been:

CFLAGS="-march=athlon -03 -pipe"

I also went back and took the default USE variables by setting USE="" in make.conf

Everything now compiles and I can boot to gentoo. Now if I can only figure out how to start KDE.

g-man
Back to top
View user's profile Send private message
Gryffon
n00b
n00b


Joined: 21 Jan 2003
Posts: 13

PostPosted: Tue Jan 21, 2003 6:48 pm    Post subject: Re: re: emerge -u world ERROR: sys-apps/groff-1.18.1 failed Reply with quote

g-man wrote:
I found the problem. I incorrectly set the CFLAGS variable in make.conf. It should have been:

CFLAGS="-march=athlon -03 -pipe"

I also went back and took the default USE variables by setting USE="" in make.conf

Everything now compiles and I can boot to gentoo. Now if I can only figure out how to start KDE.

g-man


Would you have identified more precisely the pb ? I would like to keep -march=athlon-xp, but especially the USE flags ...
Back to top
View user's profile Send private message
g-man
n00b
n00b


Joined: 19 Jan 2003
Posts: 42
Location: Fort Collins CO

PostPosted: Fri Jan 24, 2003 2:29 am    Post subject: Reply with quote

Sorry, g-man has been out of town for a few days or I would have responded sooner.

The crux of the problem was I fat fingered the CFLAGS line AND specified the wrong cpu for my machine.

I orginally had:
CFLAGS="march=athlon -03 -pipe"

Notice there is no '-' before the word 'march'. The '-' character has to be there. So I changed it to:
CFLAGS="-march=athlon -03 -pipe"

and now everthing compiles.

There should not be a problem with using:
CFLAGS="-march=athlon-xp -03 -pipe"
if you have an athlon-xp machine.

As for the USE flags, I don't think they were a part of the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
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