Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 190180
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: optical media herd <media-optical@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Chris Smith <chris@realcomputerguy.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
cdrtools-2.01.01_alpha34-asneeded.patch cdrtools-2.01.01_alpha34-asneeded.patch patch Samuli Suominen 2007-08-28 20:01 0000 1.37 KB Details | Diff
emerge-info.out emerge-info.out text/plain Sebastian 2007-09-11 15:39 0000 2.26 KB Details
emerge.log emerge.log text/plain Sebastian 2007-09-11 15:40 0000 254.92 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 190180 depends on: Show dependency tree
Bug 190180 blocks: 129413
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-08-25 14:50 0000
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 From Sebastian 2007-08-25 17:44:29 0000 -------
Please add "emerge --info" output and go to /var/tmp/portage/cdrtools.. and
look for mkisofs with "find -name mkisofs".

------- Comment #2 From Chris Smith 2007-08-25 17:55:03 0000 -------
$ 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 From Chris Smith 2007-08-25 17:55:25 0000 -------
cdrtools-2.01.01_alpha34 # find -name mkisofs
./work/cdrtools-2.01.01/mkisofs

------- Comment #4 From Chris Smith 2007-08-25 17:59:18 0000 -------
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 From Sebastian 2007-08-25 18:50:06 0000 -------
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 From Chris Smith 2007-08-25 20:26:36 0000 -------
(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 From Sebastian 2007-08-25 21:54:35 0000 -------
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 From Lars Weiler (RETIRED) 2007-08-25 22:40:08 0000 -------
See the section "What about LDFLAGS?" in
http://www.gentoo.org/doc/en/gcc-optimization.xml

Happy Gentooing!

------- Comment #9 From Chris Smith 2007-08-26 14:06:11 0000 -------
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 From Jakub Moc (RETIRED) 2007-08-28 18:49:44 0000 -------
*** Bug 190558 has been marked as a duplicate of this bug. ***

------- Comment #11 From Roderick B. Greening 2007-08-28 18:54:52 0000 -------
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 From Roderick B. Greening 2007-08-28 19:04:22 0000 -------
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 From Chris Smith 2007-08-28 19:08:17 0000 -------
(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 From Samuli Suominen 2007-08-28 20:00:41 0000 -------
binutils has nothing to do with this bug, .mk files are simply missing
$(LIB_ACL), since -DUSE_ACL is defined also there.

------- Comment #15 From Samuli Suominen 2007-08-28 20:01:34 0000 -------
Created an attachment (id=129504) [details]
cdrtools-2.01.01_alpha34-asneeded.patch

Patch fixing this issue.

------- Comment #16 From Samuli Suominen 2007-08-28 20:09:04 0000 -------
committed with kind permission from beandog.

------- Comment #17 From Sebastian 2007-09-05 03:39:17 0000 -------
Has the patch been submitted upstream yet? If not I could do that as I'm
subscribed to cdrecord-developers.

Regards
Sebastian

------- Comment #18 From Samuli Suominen 2007-09-05 11:20:28 0000 -------
(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 #19 From Sebastian 2007-09-05 11:53:57 0000 -------
https://lists.berlios.de/pipermail/cdrecord-developers/2007-September/000407.html

Thanks!

Sebastian

------- Comment #20 From Sebastian 2007-09-11 15:37:34 0000 -------
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 From Sebastian 2007-09-11 15:39:14 0000 -------
Created an attachment (id=130591) [details]
emerge-info.out

------- Comment #22 From Sebastian 2007-09-11 15:40:54 0000 -------
Created an attachment (id=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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug