app-cdr/cdrtools-2.01.01_alpha34 fails to emerge during install Reproducible: Always Actual Results: >>> Source compiled. >>> Test phase [not enabled]: app-cdr/cdrtools-2.01.01_alpha34 >>> Install cdrtools-2.01.01_alpha34 into /var/tmp/portage/app-cdr/cdrtools-2.01.01_alpha34/image/ category app-cdr !!! dobin: mkisofs/OBJ/*-*-cc/mkisofs does not exist * * ERROR: app-cdr/cdrtools-2.01.01_alpha34 failed.
Please add "emerge --info" output and go to /var/tmp/portage/cdrtools.. and look for mkisofs with "find -name mkisofs".
$ emerge --info Portage 2.1.3.7 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-ck1 x86_64) ================================================================= System uname: 2.6.22-ck1 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Gentoo Base System release 1.12.10 Timestamp of tree: Sat, 25 Aug 2007 11:20:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.18 sys-devel/gcc-config: 1.4.0 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -fomit-frame-pointer -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/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://gentoo.chem.wisc.edu/gentoo/" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,--as-needed" LINGUAS="en" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://davinci.mw.realcomputerguy.com/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl dbus dri dts dv dvb dvd dvdr dvdread encode exif fam ffmpeg flac fortran gdbm gif gphoto2 gpm gstreamer gtk2 hal iconv imagemagick imap ipv6 isdnlog jack java jpeg jpeg2k kde kdeenablefinal lame lcd lcms ldap mad midi mmap mmx mozcalendar mozilla mp3 mudflap musicbrainz ncurses newspr nls nodrm nptl nptlonly nvidia ofx ogg oggvorbis openexr opengl openmp pam pcre pda pdf perl pertty png pppd python qt3 qt4 quicktime readline reflection samba sasl scanner sdl session slp sndfile spell spl sse sse2 ssl subversion svg tcltk tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vorbis wmf xattr xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev vmware v4l" Unset: CTARGET, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
cdrtools-2.01.01_alpha34 # find -name mkisofs ./work/cdrtools-2.01.01/mkisofs
cdrtools-2.01.01_alpha34 # ls -al ./work/cdrtools-2.01.01/mkisofs/OBJ/amd64-linux-cc/mkiso* -rw-r--r-- 1 root root 6011 2007-08-25 13:47 ./work/cdrtools-2.01.01/mkisofs/OBJ/amd64-linux-cc/mkisofs.d -rw-r--r-- 1 root root 97976 2007-08-25 13:47 ./work/cdrtools-2.01.01/mkisofs/OBJ/amd64-linux-cc/mkisofs.o
If there's no mkisofs binary at all there should be some errors during compilation. Please check that, maybe even attach the whole output of the installation process to this bug. Also please try if _not_ setting LDFLAGS and/or MAKEOPTS helps.
(In reply to comment #5) > If there's no mkisofs binary at all there should be some errors during > compilation. Please check that, maybe even attach the whole output of the > installation process to this bug. > > Also please try if _not_ setting LDFLAGS and/or MAKEOPTS helps. > Not setting LDFLAGS results in succesful emerge.
Well, then why don't you close this bug report as invalid? A good read: http://www.gentoo.org/proj/en/qa/asneeded.xml. Gentoo handbook might me another. And I quote: 1. "In any case, please don't report problems caused by the steps explained in this guide on bugzilla." 2. "... this flag is not considered safe for production use and not supported in any way by Gentoo."
See the section "What about LDFLAGS?" in http://www.gentoo.org/doc/en/gcc-optimization.xml Happy Gentooing!
Yes, my bad. I completely forgot about it being there...in the past that's the first thing I would try (removing LDFLAGS). Sorry for the noise.
*** Bug 190558 has been marked as a duplicate of this bug. ***
I have cdrtools installed with --as-needed. You need a newer than 2.17 binutils (preferably 2.17.50.0.18). So, while the problem is related to --as-needed, it is more strongly related to a problem with the initial release of binutils 2.17 which is referenced in bug 190558 (I have pretty much the same setup as that user, but he has 2.17 binutils and I have the latest).
Oh, and here's the note from the guide (http://www.gentoo.org/proj/en/qa/asneeded.xml): 2. Fixing problems with --as-needed Identifying the problem Anyone willing to try out the --as-needed flag should be aware that there are many cases of failures that may fall into one of a few different categories. I'll try to explain here the reasoning behind the failures and ways to fix them; some of them are really simple, others are not. Once again, if you're not interested in fixing those problems, or you are not a developer, please try to stay away from experimental things like this. If you're a developer or you have a patch to fix --as-needed issues, you can file a bug in Gentoo Bugzilla, blocking bug #129413. Should this then be listed as a blocker to that bug instead of being simply closed/invalid?
(In reply to comment #11) > I have cdrtools installed with --as-needed. > > You need a newer than 2.17 binutils (preferably 2.17.50.0.18). But I have binutils-2.17.50.0.18 installed (see the emerge --info above) and have the problem with --as-needed.
binutils has nothing to do with this bug, .mk files are simply missing $(LIB_ACL), since -DUSE_ACL is defined also there.
Created attachment 129504 [details, diff] cdrtools-2.01.01_alpha34-asneeded.patch Patch fixing this issue.
committed with kind permission from beandog.
Has the patch been submitted upstream yet? If not I could do that as I'm subscribed to cdrecord-developers. Regards Sebastian
(In reply to comment #17) > Has the patch been submitted upstream yet? If not I could do that as I'm > subscribed to cdrecord-developers. Not yet. If you can that'd be great. > > Regards > Sebastian >
https://lists.berlios.de/pipermail/cdrecord-developers/2007-September/000407.html Thanks! Sebastian
Hi everybody, I just got this reply from upstream: Sebastian Kemper <sebastian_ml@gmx.net> wrote: > Attached is the cdrtools-2.01.01_alpha34-asneeded patch as submitted to > https://bugs.gentoo.org/show_bug.cgi?id=190180 by Samuli Suominen. > > Maybe you can include it in a future cdrtools version. > I just checked my sources and cannot find any problem! 1) The Makefile for mkisofs includes $(LIB_ACL) _after_ -lfind 2) Adding LIBS= $(LIB_ACL) to a makefile that creates a static library is a noop. 3) https://bugs.gentoo.org/show_bug.cgi?id=190180 does not include a problem desciption that includes a log from the compilation that would verify a problem. The only possible change I see is that mkisofs/Makefile would work with $(LIB_ACL_TEST) and doesn't need $(LIB_AC). If you belive that there is a problem, please describe it. Jörg I'm not into programming so I don't fully understand this. BUT what I _can_ tell is that cdrtools-2.01.01_alpha34 installs fine on my own x86 box _without_ the as-needed patch while LDFLAGS="-Wl,--as-needed" is _set_. I have the x86 sys-devel/binutils-2.17 installed if that matters. I'd be happy to submit your input upstream again. I'll attach my emerge --info output as well as the output of the actuall install of cdrtools.
Created attachment 130591 [details] emerge-info.out
Created attachment 130595 [details] emerge.log I got the logs my running the following command: emerge cdrtools 1> emerge.log 2> emerge-errors.log I won't attach emerge-errors.log because it only holds these two lines: >>> Regenerating /etc/ld.so.cache... >>> Regenerating /etc/ld.so.cache... Regards Sebastian