Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sdl-mixer won't compile!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 785
Location: Greece

PostPosted: Mon Oct 15, 2012 6:45 pm    Post subject: sdl-mixer won't compile! Reply with quote

That is it - sdl-mixer won't compile. The error seems weird to my eyes, it looks like libtool "forgot" to put -I in front of a list of directories to include (the directories themselves exist).

Code:
perjanus ~ # emerge sdl-mixer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] media-libs/sdl-mixer-1.2.12-r1  USE="flac mad midi mp3 timidity vorbis wav -fluidsynth -mikmod -mod -modplug -playtools -smpeg -static-libs" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-libs/sdl-mixer-1.2.12-r1
>>> Failed to emerge media-libs/sdl-mixer-1.2.12-r1, Log file:
>>>  '/var/log/portage/media-libs:sdl-mixer-1.2.12-r1:20121015-184052.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.92, 1.02, 1.23
 * Package:    media-libs/sdl-mixer-1.2.12-r1
 * Repository: gentoo
 * Maintainer: games@gentoo.org
 * USE:        amd64 consolekit elibc_glibc flac kernel_linux mad midi mp3 multilib policykit timidity userland_GNU vorbis wav
 * FEATURES:   preserve-libs sandbox




>>> Unpacking source...
>>> Unpacking SDL_mixer-1.2.12.tar.gz to /var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work
>>> Source unpacked in /var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work


>>> Preparing source in /var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work/SDL_mixer-1.2.12 ...
 * Applying sdl-mixer-1.2.12-wav.patch ...
 [ ok ]
>>> Source prepared.


>>> Configuring source in /var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work/SDL_mixer-1.2.12 ...
 * econf: updating SDL_mixer-1.2.12/build-scripts/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating SDL_mixer-1.2.12/build-scripts/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --disable-music-flac-shared --disable-music-fluidsynth-shared --disable-music-mod-shared --disable-music-mp3-shared --disable-music-ogg-shared --enable-music-wave --enable-music-ogg --disable-music-mod --disable-music-mod-modplug --enable-music-flac --disable-static --disable-music-mp3 --enable-music-mp3-mad-gpl --enable-music-timidity-midi --disable-music-fluidsynth-midi
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... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for windres... no
checking for x86_64-pc-linux-gnu-windres... no
checking for linux-gnu-windres... no
checking for an ANSI C-conforming const... no
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDL... yes
checking for pow in -lm... no
checking for GCC -fvisibility=hidden option... no
checking for fork... no
checking for vfork... no
configure: WARNING: MOD support disabled
checking vorbis/vorbisfile.h usability... no
checking vorbis/vorbisfile.h presence... no
checking for vorbis/vorbisfile.h... no
checking for ov_open_callbacks in -lvorbisfile... no
configure: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)
configure: WARNING: Ogg Vorbis support disabled
checking FLAC/export.h usability... no
checking FLAC/export.h presence... no
checking for FLAC/export.h... no
configure: WARNING: *** Unable to find FLAC library (http://flac.sourceforge.net/)
configure: WARNING: FLAC support disabled
checking signal.h usability... no
checking signal.h presence... no
checking for signal.h... no
checking for setbuf... no
checking for libmad headers... no
configure: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)
configure: WARNING: MP3 support disabled
configure: creating ./config.status
config.status: executing libtool commands
configure: creating ./config.status
config.status: creating Makefile
config.status: creating SDL_mixer.spec
config.status: creating SDL_mixer.qpg
config.status: creating SDL_mixer.pc
config.status: executing libtool commands
config.status: executing default commands
>>> Source configured.


>>> Compiling source in /var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work/SDL_mixer-1.2.12 ...
make
/bin/sh ./build-scripts/mkinstalldirs build
mkdir -p -- build
/bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -march=core2 -msse4 -mcx16 -msahf -O2 -pipe  /opt/intel/composer_xe_2011_sp1.11.339/ipp/include:/opt/intel/composer_xe_2011_sp1.11.339/mkl/include:/opt/intel/composer_xe_2011_sp1.11.339/ipp/include:/opt/intel/composer_xe_2011_sp1.11.339/mkl/include -D_GNU_SOURCE=1 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity  -c effect_position.c -o build/effect_position.lo
libtool: compile:  x86_64-pc-linux-gnu-gcc -march=core2 -msse4 -mcx16 -msahf -O2 -pipe /opt/intel/composer_xe_2011_sp1.11.339/ipp/include:/opt/intel/composer_xe_2011_sp1.11.339/mkl/include:/opt/intel/composer_xe_2011_sp1.11.339/ipp/include:/opt/intel/composer_xe_2011_sp1.11.339/mkl/include -D_GNU_SOURCE=1 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -c effect_position.c  -fPIC -DPIC -o build/.libs/effect_position.o
x86_64-pc-linux-gnu-gcc: /opt/intel/composer_xe_2011_sp1.11.339/ipp/include:/opt/intel/composer_xe_2011_sp1.11.339/mkl/include:/opt/intel/composer_xe_2011_sp1.11.339/ipp/include:/opt/intel/composer_xe_2011_sp1.11.339/mkl/include: No such file or directory
make: *** [build/effect_position.lo] Error 1
 * ERROR: media-libs/sdl-mixer-1.2.12-r1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/sdl-mixer-1.2.12-r1'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/sdl-mixer-1.2.12-r1'`.
 * The complete build log is located at '/var/log/portage/media-libs:sdl-mixer-1.2.12-r1:20121015-184052.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work/SDL_mixer-1.2.12'
 * S: '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work/SDL_mixer-1.2.12'



 * Messages for package media-libs/sdl-mixer-1.2.12-r1:

 * Package:    media-libs/sdl-mixer-1.2.12-r1
 * Repository: gentoo
 * Maintainer: games@gentoo.org
 * USE:        amd64 consolekit elibc_glibc flac kernel_linux mad midi mp3 multilib policykit timidity userland_GNU vorbis wav
 * FEATURES:   preserve-libs sandbox
 * Applying sdl-mixer-1.2.12-wav.patch ...
 * ERROR: media-libs/sdl-mixer-1.2.12-r1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/sdl-mixer-1.2.12-r1'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/sdl-mixer-1.2.12-r1'`.
 * The complete build log is located at '/var/log/portage/media-libs:sdl-mixer-1.2.12-r1:20121015-184052.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work/SDL_mixer-1.2.12'
 * S: '/var/tmp/portage/media-libs/sdl-mixer-1.2.12-r1/work/SDL_mixer-1.2.12'
 *
 * The following package has failed to build or install:
 *
 *  (media-libs/sdl-mixer-1.2.12-r1::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/media-libs:sdl-mixer-1.2.12-r1:20121015-184052.log'
 *
perjanus ~ #


Any idea?
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5404

PostPosted: Mon Oct 15, 2012 7:26 pm    Post subject: Reply with quote

Depending on its size, paste or pastebin your make.conf.
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 785
Location: Greece

PostPosted: Mon Oct 15, 2012 7:53 pm    Post subject: Reply with quote

VoidMage wrote:
Depending on its size, paste or pastebin your make.conf.

Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=core2"
CFLAGS="${CFLAGS} -msse4"
CFLAGS="${CFLAGS} -mcx16"
CFLAGS="${CFLAGS} -msahf"
CFLAGS="${CFLAGS} -O2"
CFLAGS="${CFLAGS} -pipe"
CXXFLAGS="${CFLAGS}"
ICCCFLAGS="-O2 -xSSE4.1 -gcc"
ICCCXXFLAGS="${ICCCFLAGS}"
IFCFLAGS="-O2"
IF90FLAGS="${IFCFLAGS}"
ACCEPT_KEYWORDS="~amd64"
NJOBS="8"
NLOAD="8"
USE_PYTHON="2.7"


USE="3dnow acpi alsa apm audacious bash-completion bluetooth caps cdr cups dbus djvu dvb dvd dvdr dvdread edb encode fontconfig ftp  gcj git glut gnutls gstreamer hddtemp hwdb icu kde kpathsea lame latex ldap lm_sensors mad mercurial mmap mng msn multilib nls nsplugin opengl pdf perl pmu qt3 qt3support qt4 rar reiserfs sdl sh smp ssl stroke subversion syslog tcl tk threads timidity truetype unicode upower usb v4l v4l2 vorbis wifi X xcomposite xml zlib"
USE="${USE} cdda directfb fbcon ffmpeg gif id3tag jack jpeg ladspa midi mp3 mpeg mplayer ogg png quicktime svg tiff win32codecs wma wmf X xcomposite xinerama xrandr xpm"
USE="${USE} blas cblas cxx fortran idb icc ifc int64 lapack mkl mpi umfpack"
USE="${USE} wimax"
USE="${USE} nforce2 nvidia"
USE="${USE} ruby_targets_ruby19"
USE="${USE} -apm -arts -connman -gnome -gtk -hal -ipv6 -kde-prefix -minizip -python -sql -xine"
FEATURES="parallel-fetch sandbox"
EMERGE_DEFAULT_OPTS="--jobs=${NJOBS} --keep-going --load-average=${NLOAD} --oneshot --verbose"
ALSA_CARDS="hda-intel aloop hrtimer rtctimer"
ALSA_TOOLS="as10k1 echomixer ld10k1 glo10k1"
AUTOCLEAN="yes"
CLEAN_DELAY=3
DISTDIR="/usr/portage/distfiles"
INPUT_DEVICES="evdev keyboard mouse joystick synaptics"
LINGUAS="en_GB"
LINGUAS="${LINGUAS} el el_GR en en_GB es pt ru ru_RU tr sr_Latn"
PORT_LOGDIR="/var/log/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_RSYNC_RETRIES="3"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
VIDEO_CARDS="nvidia vesa"
source /var/lib/layman/make.conf
GENTOO_MIRRORS="http://mirrors.linuxant.fr/distfiles.gentoo.org/ "

_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5404

PostPosted: Mon Oct 15, 2012 9:21 pm    Post subject: Reply with quote

Seems that was a miss.
Lets try config.log then.
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 785
Location: Greece

PostPosted: Tue Oct 16, 2012 5:36 am    Post subject: Reply with quote

VoidMage wrote:
Seems that was a miss.
Lets try config.log then.


http://pastebin.com/wtf2Jg9a
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5404

PostPosted: Tue Oct 16, 2012 4:22 pm    Post subject: Reply with quote

Do you have anything in your env that would export 'INCLUDE' var ?
It's most likely either in your shell config files or in /etc/env.d.
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 785
Location: Greece

PostPosted: Tue Oct 16, 2012 6:44 pm    Post subject: Reply with quote

VoidMage wrote:
Do you have anything in your env that would export 'INCLUDE' var ?
It's most likely either in your shell config files or in /etc/env.d.

Commenting the line
source /opt/intel/composerxe/bin/compilervars.sh intel64
out from my /etc/profile solves the problem. However, I still think that there is something wrong with this ebuild particularly. I've always used this source in my /etc/profile and never had any similar problem. It seems like libtool is forgeting something specifically for this ebuild.
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5404

PostPosted: Tue Oct 16, 2012 7:09 pm    Post subject: Reply with quote

It's not related to the ebuild - the package itself uses the var.
But TBH it's silly both sides - yours and the package.
Package assumes that a var with a generic name won't be used by any other package, you assume that a var with a generic name is safe to be exported into common env.
Back to top
View user's profile Send private message
Holysword
l33t
l33t


Joined: 19 Nov 2006
Posts: 785
Location: Greece

PostPosted: Tue Oct 16, 2012 7:33 pm    Post subject: Reply with quote

VoidMage wrote:
It's not related to the ebuild - the package itself uses the var.
But TBH it's silly both sides - yours and the package.
Package assumes that a var with a generic name won't be used by any other package, you assume that a var with a generic name is safe to be exported into common env.

I need the var to be exported within the common env because I am EXPECTING everybody to use Intel's MKL. I don't see what is silly about using Intel MKL.

The package is using libtool for configuring things. As I mentioned before, it looks to me like litool is not putting a given -I there. I would like to know if anyone has any idea on why it is happening.
_________________
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5404

PostPosted: Tue Oct 16, 2012 10:25 pm    Post subject: Reply with quote

:roll:
1. libtool is doing sh*t here - see configure.in of sdl-mixer (likely something as simple as 'echo $INCLUDE' will show this)
2. the point is that 'INCLUDE' is a very generic name, so there's no telling if a random package won't decide to use it for one purpose or another; my very first question was about your make.conf, cause this is in a way a variation of many RESOLVED/INVALID bugs for libvpx, where the build system is even more volatile to vars with generic names (like i.e. 'CODECS')
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum