Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190180 - app-cdr/cdrtools-2.01.01_alpha34 fails to emerge w/ as-needed
Summary: app-cdr/cdrtools-2.01.01_alpha34 fails to emerge w/ as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
: 190558 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2007-08-25 14:50 UTC by Chris Smith
Modified: 2007-09-11 15:40 UTC (History)
3 users (show)

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


Attachments
cdrtools-2.01.01_alpha34-asneeded.patch (cdrtools-2.01.01_alpha34-asneeded.patch,1.37 KB, patch)
2007-08-28 20:01 UTC, Samuli Suominen (RETIRED)
Details | Diff
emerge-info.out (emerge-info.out,2.26 KB, text/plain)
2007-09-11 15:39 UTC, Sebastian
Details
emerge.log (emerge.log,254.92 KB, text/plain)
2007-09-11 15:40 UTC, Sebastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2007-08-25 14:50:23 UTC
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.
Comment 1 Sebastian 2007-08-25 17:44:29 UTC
Please add "emerge --info" output and go to /var/tmp/portage/cdrtools.. and look for mkisofs with "find -name mkisofs".
Comment 2 Chris Smith 2007-08-25 17:55:03 UTC
$ 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
Comment 3 Chris Smith 2007-08-25 17:55:25 UTC
cdrtools-2.01.01_alpha34 # find -name mkisofs
./work/cdrtools-2.01.01/mkisofs
Comment 4 Chris Smith 2007-08-25 17:59:18 UTC
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
Comment 5 Sebastian 2007-08-25 18:50:06 UTC
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.
Comment 6 Chris Smith 2007-08-25 20:26:36 UTC
(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.
Comment 7 Sebastian 2007-08-25 21:54:35 UTC
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."
Comment 8 Lars Weiler (RETIRED) gentoo-dev 2007-08-25 22:40:08 UTC
See the section "What about LDFLAGS?" in http://www.gentoo.org/doc/en/gcc-optimization.xml

Happy Gentooing!
Comment 9 Chris Smith 2007-08-26 14:06:11 UTC
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.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-08-28 18:49:44 UTC
*** Bug 190558 has been marked as a duplicate of this bug. ***
Comment 11 Roderick B. Greening 2007-08-28 18:54:52 UTC
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).
Comment 12 Roderick B. Greening 2007-08-28 19:04:22 UTC
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?
Comment 13 Chris Smith 2007-08-28 19:08:17 UTC
(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.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2007-08-28 20:00:41 UTC
binutils has nothing to do with this bug, .mk files are simply missing $(LIB_ACL), since -DUSE_ACL is defined also there.
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2007-08-28 20:01:34 UTC
Created attachment 129504 [details, diff]
cdrtools-2.01.01_alpha34-asneeded.patch

Patch fixing this issue.
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2007-08-28 20:09:04 UTC
committed with kind permission from beandog.
Comment 17 Sebastian 2007-09-05 03:39:17 UTC
Has the patch been submitted upstream yet? If not I could do that as I'm subscribed to cdrecord-developers.

Regards
Sebastian
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2007-09-05 11:20:28 UTC
(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
> 

Comment 20 Sebastian 2007-09-11 15:37:34 UTC
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.
Comment 21 Sebastian 2007-09-11 15:39:14 UTC
Created attachment 130591 [details]
emerge-info.out
Comment 22 Sebastian 2007-09-11 15:40:54 UTC
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