Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366993 - media-sound/audacious-2.4.4 and media-plugins/audacious-plugins-2.4.4-r1 linking error when dev-lang/icc installed
Summary: media-sound/audacious-2.4.4 and media-plugins/audacious-plugins-2.4.4-r1 link...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal critical
Assignee: Tony Vroon (RETIRED)
URL: https://webkeks.org/hg/buildsys/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 14:50 UTC by Hack_leberry Finn
Modified: 2011-05-13 08:26 UTC (History)
1 user (show)

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


Attachments
audacious ebuild with fixed problem (audacious-2.4.4-r1.ebuild,1.67 KB, text/plain)
2011-05-12 14:52 UTC, Hack_leberry Finn
Details
audacious-plugins ebuild with fixed problem (audacious-plugins-2.4.4-r2.ebuild,3.51 KB, text/plain)
2011-05-12 14:53 UTC, Hack_leberry Finn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hack_leberry Finn 2011-05-12 14:50:58 UTC
When dev-lang/icc installed in system and audacious-2.4.4 and audacious-plugins-2.4.4-r1 builded with gcc, error ocurres. In audacious build time:

Successfully compiled report.c.
ACCESS DENIED  open_wr:      /opt/intel/Compiler/11.1/056/ipp/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot open output file /opt/intel/Compiler/11.1/056/ipp//lib: Permission denied
collect2: ld returned 1 exit status
Failed to link /opt/intel/Compiler/11.1/056/ipp//lib!
make[5]: *** [/opt/intel/Compiler/11.1/056/ipp//lib] Error 1
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1
make[2]: *** [all] Error 1
make[1]: *** [subdirs] Error 1
make: *** [all] Error 1
emake failed

and from sandbox:

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-23321.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /opt/intel/Compiler/11.1/056/ipp//lib
A: /opt/intel/Compiler/11.1/056/ipp/lib
R: /opt/intel/Compiler/11.1/056/ipp/lib
C: /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld --eh-frame-hdr -m elf_i386 -shared -o /opt/intel/Compiler/11.1/056/ipp//lib /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/crtbeginS.o -L../libaudclient -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../.. main.o handlers_general.o handlers_playback.o handlers_playlist.o handlers_playqueue.o handlers_vitals.o handlers_equalizer.o report.o -soname=/opt/intel/Compiler/11.1/056/ipp//lib. -O1 --as-needed -rpath /usr/lib -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -laudclient -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lmowgli -lmcs -lmowgli -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../crtn.o 
--------------------------------------------------------------------------------

In audacious-plugins build time:

Successfully compiled tonegen.c.
ACCESS DENIED  open_wr:      /opt/intel/Compiler/11.1/056/ipp/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot open output file /opt/intel/Compiler/11.1/056/ipp//lib: Permission denied
collect2: ld returned 1 exit status
Failed to link /opt/intel/Compiler/11.1/056/ipp//lib!
make[5]: *** [/opt/intel/Compiler/11.1/056/ipp//lib] Error 1
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1
make[2]: *** [all] Error 1
make[1]: *** [subdirs] Error 1
make: *** [all] Error 1
emake failed

and from sandbox:

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-12298.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /opt/intel/Compiler/11.1/056/ipp//lib
A: /opt/intel/Compiler/11.1/056/ipp/lib
R: /opt/intel/Compiler/11.1/056/ipp/lib
C: /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld --eh-frame-hdr -m elf_i386 -shared -o /opt/intel/Compiler/11.1/056/ipp//lib /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/crtbeginS.o -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5 -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../.. tonegen.o -soname=/opt/intel/Compiler/11.1/056/ipp//lib. -O1 --as-needed -laudcore -laudgui -lgtk-x11-2.0 -lmcs -ldbus-glib-1 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgmodule-2.0 -lmowgli -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lm -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../crtn.o 
--------------------------------------------------------------------------------

This problem was in 2.4.0 audacious/audacious-plugins (I can't find this bug in database). After searching I found problem in LIB variable used by config tools in audacious sources, and /opt/intel/Compiler/11.1/056/ipp/ia32/tools/env/ippvars32.sh file from ipp. My solution changes LIB variable to empty, and orginal value is restored from temporary variable OLDLIB after instalation. Here are ebuilds fixing this problem.
Comment 1 Hack_leberry Finn 2011-05-12 14:52:30 UTC
Created attachment 272941 [details]
audacious ebuild with fixed problem
Comment 2 Hack_leberry Finn 2011-05-12 14:53:57 UTC
Created attachment 272943 [details]
audacious-plugins ebuild with fixed problem
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-13 03:35:49 UTC
Comment on attachment 272941 [details]
audacious ebuild with fixed problem

--- audacious-2.4.4.ebuild      2011-05-02 03:31:55.000000000 +0200
+++ -   2011-05-13 05:35:07.438701163 +0200
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/audacious/audacious-2.4.4.ebuild,v 1.7 2011/04/29 17:46:10 xarthisius Exp $
+# $Header: Exp $
 
 EAPI=1
 
@@ -33,6 +33,8 @@
 PDEPEND=">=media-plugins/audacious-plugins-2.4.4"
 
 src_compile() {
+       OLDLIB="${LIB}"
+        LIB=""
        # D-Bus is a mandatory dependency, remote control,
        # session management and some plugins depend on this.
        # Building without D-Bus is *unsupported* and a USE-flag
@@ -59,4 +61,5 @@
        doins "${WORKDIR}"/gentoo_ice/*
        docinto gentoo_ice
        dodoc "${WORKDIR}"/README
+        LIB="${OLDLIB}"
 }
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-13 03:36:40 UTC
Comment on attachment 272943 [details]
audacious-plugins ebuild with fixed problem

--- audacious-plugins-2.4.4-r1.ebuild   2011-05-02 03:31:48.000000000 +0200
+++ -   2011-05-13 05:36:17.832288775 +0200
@@ -64,6 +64,8 @@
 }
 
 src_configure() {
+        OLDLIB="${LIB}"
+        LIB=""
        mp3_warning
 
        econf \
@@ -118,4 +120,5 @@
 src_install() {
        emake DESTDIR="${D}" install || die
        dodoc AUTHORS
+        LIB="${OLDLIB}"
 }
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2011-05-13 08:26:23 UTC
This should be reported upstream to Jonathan Schleifer, the author of the "buildsys" we use. The current fix looks positively disgusting in the ebuild, and we have no official support for ICC anyway (I am open towards being convinced, but link me to documentation on a gentoo.org domain saying so).
Please contact js@webkeks.org or js on irc.atheme.org to report your bug. I follow buildsys upstream for Audacious & Audacious-Plugins; it will then make it into the next release.