Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142264 - elfutils-0.122 fails on install process with autoconf-2.60
Summary: elfutils-0.122 fails on install process with autoconf-2.60
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 142409 (view as bug list)
Depends on: 142852 165798
Blocks:
  Show dependency tree
 
Reported: 2006-07-31 04:09 UTC by Lars
Modified: 2007-07-14 20:18 UTC (History)
7 users (show)

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


Attachments
Patch to elfutils-0.122.ebuild (bug-142264.patch,576 bytes, patch)
2006-07-31 17:26 UTC, Martin von Gagern
Details | Diff
elfutils emerge logfile (log,394.92 KB, text/plain)
2006-07-31 23:29 UTC, Lars
Details
emerge log with AT_M4DIR and mkinstalldirs.patch (dev-libs:elfutils-0.122:20060731-235748.log,363.98 KB, text/plain)
2006-07-31 23:37 UTC, Martin von Gagern
Details
emerge log using patch from comment 2 (dev-libs:elfutils-0.122:20060801-021549.log,415.12 KB, text/plain)
2006-08-01 00:03 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars 2006-07-31 04:09:53 UTC
elfutils-0.122 compiles cleanly, but when it's start the installation process, there is the following error:

ln -fs libelf-0.122.so /var/tmp/portage/elfutils-0.122/image//usr/lib/libelf.so.1
ln -fs libelf.so.1 /var/tmp/portage/elfutils-0.122/image//usr/lib/libelf.so
make[1]: Leaving directory `/var/tmp/portage/elfutils-0.122/work/elfutils-0.122/libelf'
Making install in libelf-po
make[1]: Entering directory `/var/tmp/portage/elfutils-0.122/work/elfutils-0.122/libelf-po'
/bin/sh @MKINSTALLDIRS@ /var/tmp/portage/elfutils-0.122/image//usr/share
/bin/sh: @MKINSTALLDIRS@: Datei oder Verzeichnis nicht gefunden
make[1]: *** [install-data-yes] Fehler 127
make[1]: Leaving directory `/var/tmp/portage/elfutils-0.122/work/elfutils-0.122/libelf-po'
make: *** [install-recursive] Fehler 1

!!! ERROR: dev-libs/elfutils-0.122 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_install
  ebuild.sh, line 1017:   Called src_install
  elfutils-0.122.ebuild, line 58:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Benjamin Hodgetts 2006-07-31 06:11:55 UTC
Confirming.

------------------------------------------------------
test -z "/usr/lib64" || mkdir -p -- "/var/tmp/portage/elfutils-0.122/image//usr/lib64"
 /bin/install -c -m 644 'libelf.a' '/var/tmp/portage/elfutils-0.122/image//usr/lib64/libelf.a'
 x86_64-pc-linux-gnu-ranlib '/var/tmp/portage/elfutils-0.122/image//usr/lib64/libelf.a'
test -z "/usr/include/elfutils" || mkdir -p -- "/var/tmp/portage/elfutils-0.122/image//usr/include/elfutils"
 /bin/install -c -m 644 'elf-knowledge.h' '/var/tmp/portage/elfutils-0.122/image//usr/include/elfutils/elf-knowledge.h'
test -z "/usr/include" || mkdir -p -- "/var/tmp/portage/elfutils-0.122/image//usr/include"
 /bin/install -c -m 644 'libelf.h' '/var/tmp/portage/elfutils-0.122/image//usr/include/libelf.h'
 /bin/install -c -m 644 'gelf.h' '/var/tmp/portage/elfutils-0.122/image//usr/include/gelf.h'
 /bin/install -c -m 644 'nlist.h' '/var/tmp/portage/elfutils-0.122/image//usr/include/nlist.h'
make[2]: Leaving directory `/var/tmp/portage/elfutils-0.122/work/elfutils-0.122/libelf'
/bin/sh ../config/mkinstalldirs /var/tmp/portage/elfutils-0.122/image//usr/lib64
/bin/install -c libelf.so /var/tmp/portage/elfutils-0.122/image//usr/lib64/libelf-0.122.so
ln -fs libelf-0.122.so /var/tmp/portage/elfutils-0.122/image//usr/lib64/libelf.so.1
ln -fs libelf.so.1 /var/tmp/portage/elfutils-0.122/image//usr/lib64/libelf.so
make[1]: Leaving directory `/var/tmp/portage/elfutils-0.122/work/elfutils-0.122/libelf'
Making install in libelf-po
make[1]: Entering directory `/var/tmp/portage/elfutils-0.122/work/elfutils-0.122/libelf-po'
/bin/sh @MKINSTALLDIRS@ /var/tmp/portage/elfutils-0.122/image//usr/share
/bin/sh: @MKINSTALLDIRS@: No such file or directory
make[1]: *** [install-data-yes] Error 127
make[1]: Leaving directory `/var/tmp/portage/elfutils-0.122/work/elfutils-0.122/libelf-po'
make: *** [install-recursive] Error 1
-------------------------------------------------

EMERGE -INFO :

Portage 2.1.1_pre4-r1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
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
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe"
CHOST="x86_64-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/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB"
LC_ALL="en_GB"
LINGUAS="en_GB"
MAKEOPTS="-j3"
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/portage/local/layman/pro-audio /usr/portage/local/layman/zugaina /usr/portage/local/layman/vmware /usr/portage/local/layman/voip /usr/portage/local/layman/musicbrainz /usr/portage/local/layman/ebuild-exchange /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac acpi aim alsa artworkextra asf async audacious automount avi berkdb bitmap-fonts bluetooth bzip2 cairo capslib cdda cddb cdinstall cdparanoia cdr cdrom cjk clamav cli crypt cups dbus dlloader dmi dri dvd dvdr dvdread eds emboss emul-linux-x86 encode faad fat ffmpeg fftw firefox flac foomaticdb fortran fuse gcc64 gif gimp gimpprint glitz glut gnome gnome-print gpm gstreamer gtk gtk2 gzip h323 hal hfs ieee1394 imlib ipv6 isdnlog java jbig jfs jikes joystick jpeg jpeg2k kdeenablefinal kqemu ladspa lcms lzw lzw-tiff mad mikmod mime mjpeg modplug moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg mpeg2 mplayer musepack musicbrainz nautilus ncurses nfs nls nptl nptlonly nsplugin ntfs nvidia nvram nvtv ogg openexr opengl pam pcre pdf pdflib perl pic png ppds pppd python qemu-fast qt3 qt4 quicktime readline reflection reiser4 reiserfs samba scanner sdl sdl-sound session sid silc skins smartcard smp speex spell spl ssl stencil-buffer svg svgz swat szip tcpd tga theora threads tiff transcode truetype truetype-fonts type1 type1-fonts udev unicode usb v4l v4l2 vcd videos vorbis wma wmf x264 xchat xcomposite xfs xft xine xorg xpm xv xvid xvmc yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick input_devices_aiptek kernel_linux linguas_en_GB userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Martin von Gagern 2006-07-31 17:26:07 UTC
Created attachment 93165 [details, diff]
Patch to elfutils-0.122.ebuild

This patch made things work for me.

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/gettext:   0.15

Would be interesting to know why this elfutils-0.120-mkinstalldirs.patch was added in the first place. I can see no reason for this, no reference to any bug out there, and no further information in the preamble of the patch.
Comment 3 SpanKY gentoo-dev 2006-07-31 21:09:59 UTC
run `emerge elfutils >& log` and post the log as an attachment
Comment 4 Lars 2006-07-31 23:29:58 UTC
Created attachment 93183 [details]
elfutils emerge logfile
Comment 5 Martin von Gagern 2006-07-31 23:37:37 UTC
Created attachment 93184 [details]
emerge log with AT_M4DIR and mkinstalldirs.patch

(In reply to comment #3)
> run `emerge elfutils >& log` and post the log as an attachment

This is my ebuild log from the run when I had AT_M4DIR already set, but with the elfutils-0.120-mkinstalldirs.patch still applied. I guess it's obvious why not applying the patch solved the issue for me.
Comment 6 Martin von Gagern 2006-08-01 00:03:06 UTC
Created attachment 93185 [details]
emerge log using patch from comment 2

And this is what it looked like when I used an ebuild modified as described in comment 2. Due to -j2, diffing the logs is no fun. But the result seems the right thing.

What is wrong with my approach, that it has been marked obsolete?
Should gettext po files for nls be installed as well?

I also wonder, if you don't use my patch, where does the definition of AM_PO_SUBDIRS come from? That is the line mentioned in configure.ac that in the long run causes the substitution of MKINSTALLDIRS, at least in the version from m4/gettext.m4. But I guess without my modification, /usr/share/aclocal/po.m4 is used instead. This seems to be rigged for using AM_PROG_MKDIR_P instead. That might use ac_aux_dir which could lead to the behaviour from comment 5, but on modern systems, it would simply use mkdir -p. The elfutils makefiles could be patched to use this.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-08-01 05:41:27 UTC
*** Bug 142409 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-08-01 05:42:55 UTC
Reopen.
Comment 9 Huemi 2006-08-01 05:48:52 UTC
(In reply to comment #7)
> *** Bug 142409 has been marked as a duplicate of this bug. ***
> 

Sorry, but I didn't find the bug when I searched for elfutils on bugs.gentoo.org

Comment 10 SpanKY gentoo-dev 2006-08-04 08:33:41 UTC
fixed in cvs
Comment 11 SpanKY gentoo-dev 2006-08-04 21:30:12 UTC
not sure we have the correct fix yet
Comment 12 SpanKY gentoo-dev 2006-08-05 14:09:33 UTC
Comment on attachment 93165 [details, diff]
Patch to elfutils-0.122.ebuild

going through the m4 files and such, this patch is the correct fix

see Bug 142852 for details of why
Comment 13 SpanKY gentoo-dev 2006-08-05 14:10:17 UTC
applied to cvs, cheers