Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144965 - perl compile fails with message about "No rule to make target `<command-line>'"
Summary: perl compile fails with message about "No rule to make target `<command-line>'"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-24 05:57 UTC by Hanno Böck
Modified: 2007-01-09 12:55 UTC (History)
1 user (show)

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


Attachments
output of ./myconfig (myconfig-output,2.41 KB, text/plain)
2006-08-25 19:22 UTC, Hanno Böck
Details
Makefile created by perl (Makefile,32.51 KB, text/plain)
2006-08-25 19:23 UTC, Hanno Böck
Details
perl-5.8.8-gcc42-command-line.patch (perl-5.8.8-gcc42-command-line.patch,497 bytes, patch)
2006-10-01 19:12 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2006-08-24 05:57:38 UTC
Seems to be some weird problem with the makefiles, though I failed to find out more (I'm not very familiar with makefiles):

make[1]: Entering directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
sh ../makedepend MAKE=make
make[2]: Entering directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
echo hash.c  str.c util.c walk.c | tr ' ' '\n' >.clist
make[2]: Leaving directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
make[2]: Entering directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
make[2]: Leaving directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
Updating makefile...
make[1]: Leaving directory `/var/tmp/portage/perl-5.8.8-r2/work/perl-5.8.8/x2p'
Now you must run 'make'.

If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

make: *** No rule to make target `<command-line>', needed by `miniperlmain.o'.  Stop.




emerge info:
1, 2.6.18-rc4-ck1 i686)
=================================================================
System uname: 2.6.18-rc4-ck1 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.4
Last Sync: Thu, 24 Aug 2006 12:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch prelink sandbox sfperms sign strict test"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.utf-8"
LC_ALL="de_DE.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -Wl,--as-needed"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/xgl-overlay /usr/local/overlays/toolchain_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac aalib acl acpi alsa apache2 asf asm avi bash-completion bluetooth bzip2 cairo cdda cddb cdr cgi chipcard chipcard2 cli crypt cups dbus dri dts dvd dvdnav dvdr dvdread elibc_glibc encode exif fastbuild fbcon ffmpeg firefox flac freetype gd gd2 gif gimp gimpprint glibc-omitfp glitz glut gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal hardenedphp hashstyle hbci idn input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_wacom ipv6 jack jingle jpeg kde kdeenablefinal kernel_linux kipi lcms libcaca linguas_de live logitech-mouse mad mhash mikmod mjpeg mmx mmxext mng mod modplug mono mp3 mpeg mpm-peruser musicbrainz mysql ncurses nls no-old-linux nptl nptlonly ogg oggvorbis opengl pam pcmcia pcre pdf png python qt qt3 quicktime readline rtsp samba scanner sdl session slang speex spell sse sse2 ssl stream svg sysfs theora tiff truetype udev unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_radeon vorbis wifi win32codecs wxwindows x264 xcomposite xine xinerama xml2 xorg xprint xv xvid zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-08-25 13:05:41 UTC
reminds me of bug 60213 vaguely.

In the source, please run ./myconfig and post the output. Also, if you could post to this bug the Makefile that was generated that would probably help too. Thanks,

~mcummings
Comment 2 Hanno Böck gentoo-dev 2006-08-25 19:22:24 UTC
Created attachment 95096 [details]
output of ./myconfig
Comment 3 Hanno Böck gentoo-dev 2006-08-25 19:23:25 UTC
Created attachment 95097 [details]
Makefile created by perl
Comment 4 Matti Tiainen 2006-09-25 11:39:35 UTC
http://www.mail-archive.com/perl5-changes@perl.org/msg15340.html

"Very recent development versions of gcc (4.2.0 20060715) seem to have switched from '<command line>' to '<command-line>'."

The patch worked for me.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2006-10-01 19:12:44 UTC
Created attachment 98578 [details, diff]
perl-5.8.8-gcc42-command-line.patch

works for me w/ gcc-4.2.0_pre20061001.

(thanks Matti, this has been bugging me for months)
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2006-11-19 11:16:30 UTC
applying this patch for both libperl and perl. is this fix also needed for gcc-4.3.x?
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2006-11-19 11:32:23 UTC
spoke to dirtyepic on irc, adjusted epatch to be >=gcc-4.2. should be all set. please test and let me know so we can close this one out (line shouldn't affect regular stable users, so added as is)
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2006-12-01 16:46:53 UTC
has_version '>=sys-devel/gcc-4.2' && epatch ${FILESDIR}/${P}-gcc42-command-line.patch

this won't get applied when using the prerelease snapshots, since eg. gcc-4.2.0_pre20061129 < gcc-4.2.0.

something like has_version '>sys-devel/gcc-4.1.9999' should work, though really the patch can be applied unconditionally.  it doesn't affect users of GCC < 4.2 (i just tested w/ 3.3.6 and 4.1.1).
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2007-01-09 12:55:03 UTC
sleeping on the job i am. this is done.