Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198057 - >=media-libs/sdl-mixer-1.2.7 fails to emerge because of sci-libs/acml
Summary: >=media-libs/sdl-mixer-1.2.7 fails to emerge because of sci-libs/acml
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 209547 209645 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-04 14:20 UTC by juantxorena@gmail.com
Modified: 2008-02-11 08:48 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,7.51 KB, text/plain)
2007-11-04 14:24 UTC, juantxorena@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description juantxorena@gmail.com 2007-11-04 14:20:08 UTC
>=media-libs/sdl-mixer-1.2.7 fails to emerge, giving the infamous error: "configure: error: C compiler cannot create executables".

The reason is that all sci-libs acml versions in portage (and sci-libs/mkl as well) creates a env file, 35acml, which contains the following lines:

LDPATH=/opt/acml4.0.0/gfortran64_int64/lib
INCLUDE=/opt/acml4.0.0/gfortran64_int64/include

of course, they change depending of the version installed.

At least sdl-mixer since 1.2.7 version make use of INCLUDE variable and use it as CFLAGS (see its configure.in file, lines 55-69, I can attach it if necessary). When using acml (and mkl), INCLUDE is set to /opt/acml4.0.0/gfortran64_int64/include, the configure script try to use this as a CFLAG and it fails because is a directory and not a valid flag. This happens when acml is installed, it doesn't mind if another blas/lapack implementation is being used via eselect.

Possible solutions are:

1.- Dirty hack I tried: change 35acml to these lines:

LDPATH=/opt/acml4.0.0/gfortran64_int64/lib
INCLUDE=-L/opt/acml4.0.0/gfortran64_int64/include

don't know if it will b0rk other things

2.- Avoid sdl-mixer and some other programs using INCLUDE variable.
3.- Change acml ebuilds to not put an env file and use the solution suggested in bug #128084 which, for some reason, it isn't used anymore.

I'm providing config.log and emerge -v --info in the next comment.

Reproducible: Always

Steps to Reproduce:
1. emerge acml (or mkl)
2. emerge sdl-mixer

Actual Results:  
sdl-mixer fails showing the call stack next.

Expected Results:  
sdl-mixer gets installed

call stack:
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-music-midi --disable-timidity-midi --enable-music-mod --enable-music-libmikmod --enable-music-mp3 --enable-music-ogg --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/media-libs/sdl-mixer-1.2.7/work/SDL_mixer-1.2.7/config.log
 *
 * ERROR: media-libs/sdl-mixer-1.2.7 failed.
 * Call stack:
 *                ebuild.sh, line 1695:  Called dyn_compile
 *                ebuild.sh, line 1033:  Called qa_call 'src_compile'
 *                ebuild.sh, line   44:  Called src_compile
 *   sdl-mixer-1.2.7.ebuild, line   41:  Called econf '--disable-dependency-tracking' '--disable-music-midi' '--disable-timidity-midi' '--enable-music-mod' '--enable-music-libmikmod' '--enable-music-mp3' '--enable-music-ogg'
 *                ebuild.sh, line  632:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/sdl-mixer-1.2.7/temp/build.log'.
 *
Comment 1 juantxorena@gmail.com 2007-11-04 14:24:59 UTC
Created attachment 135148 [details]
config.log

This is the config.log produced when trying to emerge sdl-mixer.

The INCLUDE variable:

juantxorena@localhost ~/Desktop $ echo $INCLUDE
/opt/acml4.0.0/gfortran64_int64/include

I'm not showing emerge -v --info because is too long and I think that is useless in this bug.
Comment 2 juantxorena@gmail.com 2007-11-04 16:59:32 UTC
A little OT: acml-4.0.1 has been released. The ebuild for 4.0.0 version works with a name change. If the solution of this problem has to change acml ebuilds, maybe the version bump can wait till this bug is fixed and commit the updated and correct ebuild.
Comment 3 Philipp Rosenberger 2007-11-11 16:53:09 UTC
same problem here:
echo $INCLUDE
/opt/intel/cc/10.0.026/include
icc 10.x seam to set the $INCLUDE env too.

after doing 'export INCLUDE=""' evrything went fine
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2008-01-08 15:40:20 UTC
Hi,

acml, mkl, icc and ifc should now be free of the INCLUDE variable.
Re-emerge the corresponding packages after a sync and the problem should be gone.
Thanks.
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2008-02-10 17:25:23 UTC
*** Bug 209547 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-11 08:46:45 UTC
*** Bug 209645 has been marked as a duplicate of this bug. ***