Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13249 - Perl fails to build with 1.4_rc2 live CD for athlon
Summary: Perl fails to build with 1.4_rc2 live CD for athlon
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: Highest blocker (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
: 13373 13437 13470 13510 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-04 12:42 UTC by K. S. Bhaskar
Modified: 2003-02-20 07:36 UTC (History)
5 users (show)

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


Attachments
result of emerge -d perl >&/tmp/20030120_emerge_d_perl.log (20030120_emerge_d_perl.log,736.63 KB, text/plain)
2003-01-20 16:56 UTC, K. S. Bhaskar
Details
Proposed updated ebuild (perl-5.6.1-r11.ebuild,6.75 KB, text/plain)
2003-01-26 10:26 UTC, Michael Cummings (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description K. S. Bhaskar 2003-01-04 12:42:55 UTC
here are the relevant lines from /etc/make.conf

USE="3dnow aalib acl acpi afs alsa apache2 apm arts avi berkdb bonobo cdr crypt
cups dga directfb doc dvd encode esd evo fbcon gb gd gdbm ggz gif gnome gphoto2
gpm gtk gtkhtml guile icc icc-pgo imap imlib innodb java jikes jpeg junit kde
kerberos kms ldap leim libg++ libgda libwww mbox mikmod mmx motif mozilla mpeg
mule mysql nas ncurses nls oav odbc oggvorbis opengl oss pam pda pdflib perl
plotutils png pnp postgres python qt qtmt quicktime readline ruby samba sasl
scanner sdl slang slp snmp socks5 spell sse svga tcltk tcpd tetex tiff truetype
wmf X xml xml2 xmms xv zeo zlib x86"

CHOST="i686-pc-linux-gnu"

CFLAGS="-march=athlon -O3 -pipe"

CXXFLAGS="${CFLAGS}"

While executing emerge -u world, I get:

...
make[3]: Entering directory `/var/tmp/portage/perl-5.6.1-r10/work/perl-5.6.1/x2p
'
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
make[3]: Leaving directory `/var/tmp/portage/perl-5.6.1-r10/work/perl-5.6.1/x2p'
Updating makefile...
make[2]: Leaving directory `/var/tmp/portage/perl-5.6.1-r10/work/perl-5.6.1/x2p'
make[1]: Leaving directory `/var/tmp/portage/perl-5.6.1-r10/work/perl-5.6.1'
make: *** No rule to make target `<built-in>', needed by `miniperlmain.o'.  Stop
.

!!! ERROR: sys-devel/perl-5.6.1-r10 failed.
!!! Function src_compile, Line 158, Exitcode 2
!!! (no error message)

Please note: I am using Red Hat 7.2 to bootstrap gentoo because I need to
rebuild the kernel with a patched pcnet32 driver for my network card.  So, I
have the gentoo / mounted as /gentoo under Red Hat 7.2.  Then I chroot to
/gentoo, set up the gentoo environment and then do a Stage 3 install.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-01-06 14:34:21 UTC
*** Bug 13373 has been marked as a duplicate of this bug. ***
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-07 14:35:31 UTC
*** Bug 13437 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2003-01-07 23:54:57 UTC
Bind-mounting /dev to /mnt/gentoo/dev should fix this. Will fix this in our
documentation now. Also, I'll forward this bug to mcummings so he can
investigate further. Michael -- perl used to have a tweak in it so that it would
be able to build without /dev bind-mounted. Do we still have that tweak in the
ebuild? It looks that for quite a few people, perl requires the /dev inside the
chroot to be bind mounted -- the reporters of this bug as well as myself when I
tried to build perl from my stage building scripts.
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-01-08 05:36:36 UTC
*** Bug 13470 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Robbins (RETIRED) gentoo-dev 2003-01-08 22:28:55 UTC
Docs are updated to reflect the need to bind-mount /dev for perl to compile.
Comment 6 Mark Guertin 2003-01-19 13:08:07 UTC
bind mounting /dev inside the chroot is bad for us to do.  It results in
baselayout failing to build any device nodes (and generating yet more bugs).  I
filed a seperate bug on this and it was removed from the install documentation
already.

We have to co-ordinate on this effort to get it solved properly as right now you
either a) bind mount dev and are left with no device nodes (i.e. your system
will not work at all if you do not have devfs compiled in and loading) or b) you
don't mount /dev and perl fails on installation...
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2003-01-20 12:59:21 UTC
Can some please send me a copy of the output from an emerge -d of perl? Either 
as an attachment to this bug or as an email attachment to mcummings@gentoo.org.
Comment 8 K. S. Bhaskar 2003-01-20 16:56:38 UTC
Created attachment 7484 [details]
result of emerge -d perl >&/tmp/20030120_emerge_d_perl.log

mcummings@gentoo.org asked for this.

-- Bhaskar
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2003-01-26 10:26:19 UTC
Created attachment 7661 [details]
Proposed updated ebuild

The attached ebuild attempts to counter the x2p (gcc) problem. Part of the
issue has been that one version of the ebuild works for some and breaks for
others, and vice versa. The attached ebuild attempts to include both
possibilities by (overcomplicating) the make process with a series of &&'s and
||'s. Please let me know if this works for you.

Michael
Comment 10 Michael Cummings (RETIRED) gentoo-dev 2003-01-26 10:27:04 UTC
*** Bug 13510 has been marked as a duplicate of this bug. ***
Comment 11 Michael Cummings (RETIRED) gentoo-dev 2003-01-29 20:30:10 UTC
Can anyone confirm that the proposed replacement for the perl 5.6.1 (an
attachment on this bug report) ebuild works?
Comment 12 Robert Coie (RETIRED) gentoo-dev 2003-02-15 13:39:43 UTC
There are some messages on LFS mailing lists that describe this issue, and there is an LFS patch called perl-5.6.1.patch that may prove helpful here.
Comment 13 Michael Cummings (RETIRED) gentoo-dev 2003-02-20 07:36:56 UTC
Please test the attachment that was placed on this bug a month ago - I need to know if this works or not (I've received one email that it was good for them, but that's it)