Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14608 - perl-5.8.0-r9 fails to compile
Summary: perl-5.8.0-r9 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: J Robert Ray
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-27 00:52 UTC by Henry R. Bent
Modified: 2003-02-06 06:55 UTC (History)
0 users

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


Attachments
output from "emerge perl" (perl.log.bz2,9.29 KB, application/octet-stream)
2003-01-27 23:41 UTC, Henry R. Bent
Details
perl-5.6.1-r9 ebuild log (perl-5.6.1-r9.ebuild.log.bz2,16.21 KB, application/octet-stream)
2003-01-31 13:43 UTC, Jay Johnston
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henry R. Bent 2003-01-27 00:52:32 UTC
perl-5.8.0-r9 fails to compile with the following message:

        Making B (dynamic)
Couldn't change to directory /C: No such file or directory at Makefile.PL line 18
Running '/var/tmp/portage/perl-5.8.0-r9/work/perl-5.8.0/miniperl "-I../../lib"
../../lib/ExtUtils/xsubpp -v 2>&1' exits with status 2 at
../../lib/ExtUtils/MM_Unix.pm line 3826.
ACCESS DENIED  open_wr:   /temp000
Cannot open file 'temp000': Permission denied
Warning: No Makefile!
make[1]: Entering directory `/var/tmp/portage/perl-5.8.0-r9/work/perl-5.8.0/ext/B'
make[1]: *** No rule to make target `config'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/perl-5.8.0-r9/work/perl-5.8.0/ext/B'
make config failed, continuing anyway...
make[1]: Entering directory `/var/tmp/portage/perl-5.8.0-r9/work/perl-5.8.0/ext/B'
make[1]: *** No rule to make target `all'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/perl-5.8.0-r9/work/perl-5.8.0/ext/B'
make: *** [lib/auto/B/B.so] Error 2

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

I can provide further information as required.
Comment 1 J Robert Ray 2003-01-27 02:12:25 UTC
Please provide the output of 'emerge info' for starters.
Comment 2 Henry R. Bent 2003-01-27 02:18:47 UTC
ageispolis # emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-which: no gcc in
(/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/opt/intel/compiler60/ia32/bin:/opt/Acrobat5:/opt/RealPlayer8:/usr/X11R6/bin:/opt/blackdown-jre-1.3.1/bin:/usr/qt/3/bin:/usr/qt/2/bin:/usr/kde/3/bin)
sh: line 1: -dumpversion: command not found, glibc-2.2.5-r2,2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r9 i686 GenuineIntel
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi cups gif java kde libg++ libwww mikmod mpeg nls pdflib
quicktime spell truetype xml2 xv gdbm berkdb slang readline arts svga tcltk
guile sdl gpm pam python esd imlib oggvorbis gnome cdr -3dfx -3dnow aalib bonobo
crypt dga encode ggi gphoto2 gtk jpeg mmx motif mozilla ncurses opengl perl
plotutils png -qt qtmt samba sse ssl tcpd tiff X xmms zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentiumpro -O3 -malign-double -pipe"
CXXFLAGS="-march=pentiumpro -O3 -malign-double -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 3 J Robert Ray 2003-01-27 13:06:20 UTC
gcc-which: no gcc in
(/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/opt/intel/compiler60/ia32/bin:/opt/Acrobat5:/opt/RealPlayer8:/usr/X11R6/bin:/opt/blackdown-jre-1.3.1/bin:/usr/qt/3/bin:/usr/qt/2/bin:/usr/kde/3/bin)
sh: line 1: -dumpversion: command not found

That's a little strange, try 'env-update' and 'source /etc/profile' and try
emerge info again.

Then 'emerge perl &> perl.log' and bzip2 perl.log and attach.
Comment 4 Henry R. Bent 2003-01-27 23:41:42 UTC
Created attachment 7700 [details]
output from "emerge perl"
Comment 5 Henry R. Bent 2003-01-27 23:42:59 UTC
After "env-update" here is the only changed line from "emerge info":

Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.2.5-r2,2.3.1-r2)
Comment 6 Jay Johnston 2003-01-29 14:26:15 UTC
I'm seconding this bug...and I'd suggest upgrading the severity.  It's a
showstopper to me.  I've finished the installation, but can't merge many
packages because they depend on perl.  I'd attach the output, but it's exactly
as above.
Comment 7 J Robert Ray 2003-01-30 01:29:49 UTC
So far I have isolated the source of the error but not the cause.  In  ext/B there is a subdirectory called C.  It tries to do something similar to "cd `pwd`/C" but the cwd() function is returning an empty string on your computer.  So it is trying to "cd /C", hence the message:

Couldn't change to directory /C: No such file or directory at Makefile.PL line 18

Can you think of anything about your computer that might make it different from any other?

When I diff the output of your emerge with the output of mine, I see no differences of consequence.

Your emerge is missing the -'ed lines.

Please try to merge perl with the sandbox disabled just to see if it makes a difference:

FEATURES=-sandbox emerge perl

I'm also curious to know if you can successfully emerge an earlier revision of perl, such as:

emerge /usr/portage/sys-devel/perl/perl-5.8.0-r8.ebuild

Have you been able to merge any perl 5.8 ebuild?
Comment 8 J Robert Ray 2003-01-30 01:30:35 UTC
"Your emerge is missing the -'ed lines."  Er, ignore that.
Comment 9 Jay Johnston 2003-01-30 17:09:38 UTC
Building without the sandbox has the same results.
Same with -r8 and -r7 (will try more later).
Comment 10 J Robert Ray 2003-01-30 22:15:52 UTC
Jay, are you able to build perl 5.6?
Comment 11 Jay Johnston 2003-01-31 13:43:06 UTC
Created attachment 7785 [details]
perl-5.6.1-r9 ebuild log

The perl-5.6.1-r9 ebuild fails as well.  btw...for me the problems are
occurring on a fresh install of 1.4_rc2.
Comment 12 Jay Johnston 2003-01-31 18:08:00 UTC
Also, 5.6.1 throws a different access violation.  Briefly (entire log attached above):

  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlcygwin.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perldos.1
Executable pod/pod2man not found.
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlepoc.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlhpux.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlmachten.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlmacos.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlmpeix.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlos2.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlos390.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlsolaris.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlvmesa.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlvos.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlwin32.1
  /var/tmp/portage/perl-5.6.1-r9/image//usr/share/man/man1/perlvms.1
make[1]: *** [install.man] Error 2
make[1]: Leaving directory `/var/tmp/portage/perl-5.6.1-r9/work/perl-5.6.1'
make: *** [install] Error 2

!!! ERROR: sys-devel/perl-5.6.1-r9 failed.
!!! Function src_install, Line 187, Exitcode 2
!!! Unable to make install

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-perl-5.6.1-r9-26935.log"

mkdir:     /for_find
rmdir:     /fa/faa
rmdir:     /fa/fab/faba
rmdir:     /fa/fab
rmdir:     /fa
rmdir:     /fb/fba
rmdir:     /fb
rmdir:     /for_find
--------------------------------------------------------------------------------
Comment 13 J Robert Ray 2003-02-01 01:40:04 UTC
Please remove -malign-double from your CFLAGS and try merging again, thanks.
Comment 14 Henry R. Bent 2003-02-05 04:43:55 UTC
You hit on the problem, and I have to say I'm rather embarassed by the solution.  I just set my compilation flags to nothing more than "-O2" and it works fine.  I'm not sure if this counts as an official resolution, but it probably does.
Comment 15 J Robert Ray 2003-02-05 05:05:36 UTC
I will update the ebuild to filter the malign-double flag, thanks.
Comment 16 J Robert Ray 2003-02-06 06:55:40 UTC
perl 5.8 and libperl have been updated to filter these flags, reopen this bug if you continue to have problems.