Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error compiling Perl-5.8.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Thu Dec 12, 2002 6:30 pm    Post subject: Error compiling Perl-5.8.0 Reply with quote

Hi,

everything went fine, till now. I'm in stage 2 and Gentoo is busy with compiling Perl. After about 3/4 till 1 hour (on a PIII-450) it stops with the following error:

Code:

gcc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mcpu=i686
 -O2 -pipe -fomit-frame-pointer   -DVERSION=\"0.99\" -DXS_VERSION=\"0.99\" -fpic "-I../.."   threads.c
cp threads.bs ../../lib/auto/threads/threads.bs
chmod 644 ../../lib/auto/threads/threads.bs
rm -f ../../lib/auto/threads/threads.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib threads.o  -o ../../lib/auto/threads/threads.so
chmod 755 ../../lib/auto/threads/threads.so
cp shared.bs ../../../lib/auto/threads/shared/shared.bs
chmod 644 ../../../lib/auto/threads/shared/shared.bs
rm -f ../../../lib/auto/threads/shared/shared.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib shared.o  -o ../../../lib/auto/threads/shared/shared.so
chmod 755 ../../../lib/auto/threads/shared/shared.so
make[2]: Leaving directory `/var/tmp/portage/perl-5.8.0-r2/work/perl-5.8.0/ext/threads/shared'
make[1]: Leaving directory `/var/tmp/portage/perl-5.8.0-r2/work/perl-5.8.0/ext/threads'

!!! ERROR: sys-devel/perl-5.8.0-r2 failed.
!!! Function src_compile, Line -131, Exitcode 2
!!! Unable to make

desktop portage #


Does anyone have any idea how this problem could occur, and more important, how I can solve it?

TIA,
Rutger
Back to top
View user's profile Send private message
doug-x07
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2002
Posts: 122
Location: Paris, France

PostPosted: Thu Dec 12, 2002 7:31 pm    Post subject: Reply with quote

Were you deliberately trying to install Perl-5.8.0 ? It should normally still be masked in the portage tree, see this thread . If you really want to install this version, it compiled for me by using less aggressive CFLAGS than ususal, unmerging all perl modules then emerging them again. You may find it wiser just to install perl-5.6.1-r7 instead unless you must absolutely have 5.8.0
_________________
#! /usr/bin/perl
if( @first != $succeed ) {
post { $question->forum && eval '$answers' };
try { $again } catch { $problem && $resolve };
bless $posters; }
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Thu Dec 12, 2002 10:50 pm    Post subject: Reply with quote

It was asking for this package by himself, and started to download it. I don't now why it doesn't use version 5.6 if that's the normal way.

And how do I unemerge the other perl modules (how can i see which one I have?) and emerge them again? In case that's tho only option?

Or is there a method to skip the perl 5.8 modules in the emerge system?

BTW. I have taken a look, but is hasn't downloaded version 5.6xx, so I guess that it wasn't in the portage tree
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Thu Dec 12, 2002 10:54 pm    Post subject: Reply with quote

I've copied the output (only the first few lines) from my 'emerge -p system', as you can see, it asked for version 5.8 by himself

These are the packages that I would merge, in order.

Calculating system dependencies ...done!
[ebuild N ] dev-python/python-fchksum-1.6.1
[ebuild N ] sys-devel/m4-1.4p
[ebuild N ] sys-apps/groff-1.17.2-r3
[ebuild N ] sys-libs/db-1.85-r1
[ebuild N ] sys-libs/db-3.2.9-r1
[ebuild N ] sys-libs/gdbm-1.8.0-r5
[ebuild N ] sys-devel/perl-5.8.0-r2
--- snip ---


Could it have something to do with an USE='perl' option in make.conf?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Dec 12, 2002 10:55 pm    Post subject: Reply with quote

Do you have an ACCEPT_KEYWORDS line in make.conf?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Thu Dec 12, 2002 11:04 pm    Post subject: Reply with quote

No, what will this variable do?

Oh... and I have taken a closer look to my USE variable, and there is no keyword perl in it, but it is in the standard USE. So I guess that this shouldn't make a difference
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Dec 12, 2002 11:08 pm    Post subject: Reply with quote

Rocker wrote:
No, what will this variable do?
If you have ACCEPT_KEYWORDS="~x86" (assuming you are using x86 - are you?) then you will accept unstable packages also, which I show perl 5.8 as being:
Code:
$ emerge -s ^perl$
      Latest version available: 5.6.1-r7
 $ ACCEPT_KEYWORDS="~x86" emerge -s ^perl$
      Latest version available: 5.8.0-r3
...could you try the following experiment and see if it matches:
Code:
$ grep KEYWORDS /usr/portage/sys-devel/perl/*.ebuild
/usr/portage/sys-devel/perl/perl-5.6.1-r6.ebuild:KEYWORDS="x86 ppc sparc  alpha"
/usr/portage/sys-devel/perl/perl-5.6.1-r7.ebuild:KEYWORDS="x86 ppc sparc  alpha"
/usr/portage/sys-devel/perl/perl-5.6.1-r8.ebuild:KEYWORDS="x86 ~ppc sparc  ~alpha"
/usr/portage/sys-devel/perl/perl-5.8.0-r2.ebuild:KEYWORDS="~x86"
/usr/portage/sys-devel/perl/perl-5.8.0-r3.ebuild:KEYWORDS="~x86 ~sparc ~ppc ~alpha"

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Thu Dec 12, 2002 11:14 pm    Post subject: Reply with quote

rac wrote:
Code:
$ grep KEYWORDS /usr/portage/sys-devel/perl/*.ebuild
/usr/portage/sys-devel/perl/perl-5.6.1-r6.ebuild:KEYWORDS="x86 ppc sparc  alpha"
/usr/portage/sys-devel/perl/perl-5.6.1-r7.ebuild:KEYWORDS="x86 ppc sparc  alpha"
/usr/portage/sys-devel/perl/perl-5.6.1-r8.ebuild:KEYWORDS="x86 ~ppc sparc  ~alpha"
/usr/portage/sys-devel/perl/perl-5.8.0-r2.ebuild:KEYWORDS="~x86"
/usr/portage/sys-devel/perl/perl-5.8.0-r3.ebuild:KEYWORDS="~x86 ~sparc ~ppc ~alpha"

It's a 100% match!
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Thu Dec 12, 2002 11:19 pm    Post subject: Reply with quote

i got the exact same behavior .... I emerge sync 2-3 times and emerge want to update perl to 5.8.x so I went on and emerge it. My system was already up and runnning and the next day emerge want to go back to 5.6 ... I didnt have the accept keyword I double check to make sure.


I had to re-emerge vim and gaim because of the new perl package ... but now I do not have any problem...

Since you are trying to install gentoo maybe 5.8 will fails but that I don't know.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Dec 12, 2002 11:20 pm    Post subject: Reply with quote

Then this is extremely bizarre. Is this a fresh install, or an upgrade? Which stage did you start with? What does "emerge -V" say?

EDIT: If you read French (or even if you don't, as some of the interesting parts are in English), you might also be interested in pb installation perl 5.8.0-r2.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Thu Dec 12, 2002 11:34 pm    Post subject: Reply with quote

It's a fresh install, I started with it yesterday. I have done the first emerge sync yesterday evening, so about 30 hours ago.

I started to install from an existing system (LFS), so I don't have the life cd. I wanted to compile everything on my own machine, so started at stage 1.

I have done a new emerge sync 15 minutes ago (is it possible to do this again, or does this break any dependencies or whatever? I don't know because it's my first Gentoo install), and am now going to bootstrap again, but with CFLAGS set to -O2 instead of -O3.

After this emerge sync I looked at the dependencies of portage with a emerge -p portage, and it needed perl version 5.8.0

This is the output from an emerge -V
Code:

desktop / # emerge -V
Portage 2.0.45-r3 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
desktop / #
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Dec 12, 2002 11:36 pm    Post subject: Reply with quote

Rocker wrote:
I have done a new emerge sync 15 minutes ago (is it possible to do this again, or does this break any dependencies or whatever?
Yes, that's fine. It won't hurt anything. All it does is update your local copy of all the ebuilds that live in /usr/portage.
Quote:
After this emerge sync I looked at the dependencies of portage with a emerge -p portage, and it needed perl version 5.8.0
I will be interested to see if anyone can figure out why.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Thu Dec 12, 2002 11:41 pm    Post subject: Reply with quote

rac wrote:
Then this is extremely bizarre. Is this a fresh install, or an upgrade? Which stage did you start with? What does "emerge -V" say?

EDIT: If you read French (or even if you don't, as some of the interesting parts are in English), you might also be interested in pb installation perl 5.8.0-r2.

Well, I can handle myself when I'm on vacation in France, but that's it. It is the same error code I receive, but I don't know what to do with it, even after reading this half-French, half-English post.

What I see in other post, is that the problems with version 5.8 are all from the last few days, yesterday and today. I saw in one post that somebody with a new emerge sync received the 5.6.1 version while he had version 5.8.0 in de sync the day before. That's why I tried a new emerge sync half an hour ago
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Fri Dec 13, 2002 12:10 am    Post subject: Reply with quote

Is it better to do an 'emerge rsync' instead of an 'emerge sync'? If I understand it well, this will clean up the /usr/portage dir first? So maybe this will give another result?

Just brainstorming... :wink:
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Dec 13, 2002 12:24 am    Post subject: Reply with quote

Rocker wrote:
Is it better to do an 'emerge rsync' instead of an 'emerge sync'?
Those should do exactly the same thing. As I understand it, "rsync" will be deprecated for "sync" because of the ambiguity with the "rsync" package.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Rocker
n00b
n00b


Joined: 12 Dec 2002
Posts: 67
Location: The Netherlands

PostPosted: Fri Dec 13, 2002 3:40 pm    Post subject: Reply with quote

I've done a new emerge rsync this morning. This time it came with perl version 5.6.1. At this moment it's busy with it's emerge system, and has already passed the perl module, so the problem is fixed!
Back to top
View user's profile Send private message
Timm
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 138
Location: Earth

PostPosted: Fri Dec 13, 2002 7:07 pm    Post subject: Reply with quote

A few days ago portage also told me to update to 5.8.0-r2. Today it told me to downgrade to 5.6.1-r9. Funny.

Oh yes, I don't use experimental/testing packages, which means that ACCEPT_KEYWORDS is commented out in /etc/make.conf
Back to top
View user's profile Send private message
Curious
Bodhisattva
Bodhisattva


Joined: 13 May 2002
Posts: 395
Location: Sydney, Australia

PostPosted: Fri Dec 13, 2002 9:24 pm    Post subject: Reply with quote

The juggling might have been in response to this. I believe the fix was first established for 5.8, and then backported to earlier Perls.

-- Curious
Perl Hater.
_________________
Are you down with the Hawk?
Back to top
View user's profile Send private message
doug-x07
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2002
Posts: 122
Location: Paris, France

PostPosted: Fri Dec 13, 2002 10:35 pm    Post subject: Reply with quote

Humm I maybe completely wrong about this as I'm not aware of how the developpers managing masking and unmasking packages in cvs. I just had a look through cvs and the perl-5.8.0-r2.ebuild was masked on 11th december. Before that it was unmasked for x86. I take it in that case emerge would have found it as the latest unmasked version if it was in the portage tree. Possible explanation?

I don't think the safe module bug is the origin of the changes, all that seems to have been done recently on perl-5.8.0 is lc support and reverting to make rather than emake. I checked the module on cpan and the bug fix has been in place since 5th October. Seeing as it is one of the base perl packages I don't think it impacts the actual ebuilds asthey just download the current official version from cpan. Maybe if you installed perl before then it might be an idea emerging again to have the security fix. Please correct me if any of my assumptions are wrong on the subject.
_________________
#! /usr/bin/perl
if( @first != $succeed ) {
post { $question->forum && eval '$answers' };
try { $again } catch { $problem && $resolve };
bless $posters; }
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
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