Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Installation] emerge --emptytree system error (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Sun Aug 21, 2005 10:07 pm    Post subject: [Installation] emerge --emptytree system error (solved) Reply with quote

Hi guys.

I'm trying to install Gentoo on a Powerbook G4 15' 1250 MHz, following both the handbook and this post.

The problem appears when I do
Code:
#emerge --emptytree system

I get the following output (after some hours):
Code:
...
>>> emerge (76 of 123) dev-perl/XML-Parser-2.34 to /
>>> md5 files   ;-) XML-Parser-2.34.ebuild
>>> md5 files   ;-) XML-Parser-2.31.ebuild
>>> md5 files   ;-) XML-Parser-2.31-r1.ebuild
>>> md5 files   ;-) files/digest-XML-Parser-2.31
>>> md5 files   ;-) files/digest-XML-Parser-2.34
>>> md5 files   ;-) files/digest-XML-Parser-2.31-r1
>>> md5 src_uri ;-) XML-Parser-2.34.tar.gz
>>> Unpacking source...
>>> Unpacking XML-Parser-2.34.tar.gz to /var/tmp/portage/XML-Parser-2.34/work
>>> Source unpacked.
 * Using ExtUtils::MakeMaker
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/liste_perl/5.8.6/powerpc-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/perl5/5.8.6 /usr/local/lib/site_perl .) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: dev-perl/XML-Parser-2.34 failed.
!!! Function perl-module_src_compile, line 119, Exitcode 2
...


My make.conf is similar to this one, I just adapted the USE line to my needs:
Code:
USE="X gtk2 gnome2 alsa altivec truetype nls opengl xv avi jpeg png oss mozilla xml2 tetex cups dga lyx ssl tiff ginac qhull jack ladcca plotutils usb xml gpg sdl dvd php xmms ncurses fftw octave dvdr oggvorbis bluetooth divx4linux encode ffmpeg flac ftp ieee1394 java mad mpeg odbc pcmcia samba theora usb wifi win32codecs xvid ppc"


Does anybody know why it crashes? Thanks in advance...


Last edited by 2lopez on Wed Aug 24, 2005 8:06 am; edited 1 time in total
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Aug 22, 2005 3:11 am    Post subject: Reply with quote

Code:
emerge --oneshot  ExtUtils-MakeMaker
first.
This sort of error usually happens when your emerge caused perl to be upgraded to a new version, and you (or it) didn't run perl-rebuilder right away.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Mon Aug 22, 2005 9:10 am    Post subject: Reply with quote

Ok, I tried to emerge that, but this is the output:
Code:
# emerge --oneshot ExtUtils-MakeMaker
...
>>> Unpacking source...
>>> Unpacking ExtUtils-MakeMaker-6.21.tar.gz to /var/tmp/portage/ExtUtils-MakeMaker-6.21/work
>>> Source unpacked.
Checking if your kit is complete...
Looks good
Writing Makefile for ExtUtils::MakeMaker
make: *** No rule to make target '/usr/lib/perl5/5.8.6/powerpc-linux/CORE/config.h', needed by 'Makefile'. Stop.

!!! ERROR: perl-core/ExtUtils-MakeMaker-6.21 failed.
!!! Function src_compile, Line 19, Exitcode 2
...


It remains the same... :?
Back to top
View user's profile Send private message
rdlugosz
n00b
n00b


Joined: 22 Aug 2005
Posts: 9
Location: PL

PostPosted: Mon Aug 22, 2005 5:23 pm    Post subject: Reply with quote

I've had the same problem. I think the solution was to do
Code:
emerge perl
env-update
source /etc/profile
and then do
Code:
emerge -e system
again.
Please let me know if it works.
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Mon Aug 22, 2005 6:23 pm    Post subject: Reply with quote

What the f...! :o It hangs:
Code:
#emerge perl
...
grops:<standard input> (<standard input>):1749: missing argument
grops:<standard input> (<standard input>):1749: missing argument
grops:<standard input> (<standard input>):1749: missing argument
grops:<standard input> (<standard input>):1749: missing argument
...
grops:<standard input> (<standard input>):1749: missing argument

Now I press Ctrl+c:
Code:

make[2]: *** Deleting file 'pic.ps'
make[2]: *** [pic.ps] Error 130
make[1]: *** [doc] Interrupt
make: *** [all] Interrupt

/usr/portage/sys-apps/groff/groff-1.19.1-r2.ebuild: src_compile aborted; exiting.

Exiting on signal 2


Last edited by 2lopez on Mon Aug 22, 2005 6:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Aug 22, 2005 6:25 pm    Post subject: Reply with quote

Code:
emerge --info
?
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Mon Aug 22, 2005 6:36 pm    Post subject: Reply with quote

Code:
Gentoo Base System version 1.12.0_pre6Portage 2.0.51.22-r2 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo-r6-ppc32 ppc)
=================================================================
System uname: 2.6.12-gentoo-r6-ppc32 ppc 7447/7457, altivec supported
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gpopt -mpowerpc-gfxopt -fsigned-char"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"CXXFLAGS="-O3 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gpopt -mpowerpc-gfxopt -fsigned-char"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa altivec berkdb bitmap-fonts bluetooth crypt cups dga dvd dvdr eds emboss encode ffmpeg fftw flac fortran ftp gif ginac gnome gnome2 gpg gphoto2 gpm gstreamer gtk gtk2 ieee1394 ipv6 jack java jpeg kde ladcca libwww lyx mad motif mozilla mp3 mpeg ncurses nls octave odbc ogg oggvorbis opengl oss pam pcmcia pdflib perl php plotutils png ppc python qhull qt readline samba sdl spell ssl tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis wifi xml xml2 xmms xprint xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Back to top
View user's profile Send private message
rdlugosz
n00b
n00b


Joined: 22 Aug 2005
Posts: 9
Location: PL

PostPosted: Mon Aug 22, 2005 8:23 pm    Post subject: Reply with quote

From: http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/RS_002f6000-and-PowerPC-Options.html#RS_002f6000-and-PowerPC-Options about the gcc flags I see in your cflags after mcpu:
Quote:
You use these options to specify which instructions are available on the processor you are using. The default value of these options is determined when configuring GCC. Specifying the -mcpu=cpu_type overrides the specification of these options. We recommend you use the -mcpu=cpu_type option rather than the options listed above.

I don't know how advanced you are but setting something wrong here might impact compilation problems later.
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Mon Aug 22, 2005 8:49 pm    Post subject: Reply with quote

I just copied the cflags from http://ppcconfdb.sourceforge.net/conf/PowerBook_G4_1250MHz-15.2_Aluminium/etc/make.conf
... I also tried -02 but I had the same error
Back to top
View user's profile Send private message
rdlugosz
n00b
n00b


Joined: 22 Aug 2005
Posts: 9
Location: PL

PostPosted: Mon Aug 22, 2005 9:07 pm    Post subject: Reply with quote

If I were you I'd try to limit cflags to something like:
Code:
CFLAGS="-02 -mcpu=7450 -pipe"

and give emerge perl another try.
Also try to do an
Code:
emerge sync
before - maybe they've fixed something.
I also see that you're using the 2005.1 profile and I used 2005.0 so this might make things different.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Aug 22, 2005 9:26 pm    Post subject: Reply with quote

Always emerge libperl and perl together, libperl before perl. Tears and suffering shalt await him who ignoreth that advice.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Mon Aug 22, 2005 11:13 pm    Post subject: Reply with quote

Ok, I used the cflags from rdlugosz to emerge libperl perl (as moocha said), and it worked.

Before finishing to install the base system, some more questions: Maybe these cflags are too general, can I change back the cflags to its previous state to emerge -e system?

Thank you, guys 8)
Back to top
View user's profile Send private message
rdlugosz
n00b
n00b


Joined: 22 Aug 2005
Posts: 9
Location: PL

PostPosted: Tue Aug 23, 2005 9:22 am    Post subject: Reply with quote

I think when you do emerge -e system libperl and perl will be emerged. If your flags were wrong it will fail again :) To make sure that won't happen I'd change the flags to those you had and emerge libperl and perl for a test. It that worked then I'd go for the whole system.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Aug 23, 2005 5:07 pm    Post subject: Reply with quote

rdlugosz wrote:
I think when you do emerge -e system libperl and perl will be emerged.
Yes, but not necessarily when they should. There are those who consider Gentoo's toolchain build order to be broken (and before you ask, I'm among them :D). The current build order is like it is in order to avoid complications when bootstrapping. It could be fixed but it'd take a lot of time and even more testing...
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Tue Aug 23, 2005 5:21 pm    Post subject: Reply with quote

I tried some ccflags to build libperl and perl. Finally it worked and compiled fine, but when I typed
Code:
# emerge --pretend --emptytree system
I couldn't see libperl or perl... Maybe I need a new pair of glasses :lol:

Anyway, I'm now emerging -e system , I hope everything will be ok.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Aug 23, 2005 6:49 pm    Post subject: Reply with quote

2lopez wrote:
but when I typed
Code:
# emerge --pretend --emptytree system
I couldn't see libperl or perl...
If that actually happened, then it's a clear-cut bug. libperl and perl are needed to build the toolchain hence they are (and will for the foreseeable future be) part of system. Them not showing up is a sign that something's very wrong here.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Tue Aug 23, 2005 6:58 pm    Post subject: Reply with quote

I typed in another term
Code:
# emerge --pretend --emptytree system | grep perl
I was wrong, there wasn't any bug.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Aug 23, 2005 7:08 pm    Post subject: Reply with quote

That's good news then.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
2lopez
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2004
Posts: 143
Location: Somewhere Out In Space

PostPosted: Wed Aug 24, 2005 8:06 am    Post subject: Reply with quote

Woooooooohaaaa :P Today I woke up and saw on the screen that
Code:
# emerge --emptytree system
succeeded!!!

So the problem was on the cflags while emerging perl...

Thanks again!!!
Back to top
View user's profile Send private message
emerald
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2005
Posts: 113

PostPosted: Wed Oct 19, 2005 1:30 pm    Post subject: Reply with quote

...just got to know that ppc has problems compiling groff with -mpowerpc-gpopt CFLAG
without it it's compiling fine

emerald.
_________________
Knowledge is scary....

... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - :D ...
System Profile

Don't open the Red Door !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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