Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334933 - media-sound/solfege-3.16.4 will not compile apparently related to swig version
Summary: media-sound/solfege-3.16.4 will not compile apparently related to swig version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL: http://code.google.com/p/solfege/issu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-28 05:33 UTC by Mark
Modified: 2010-08-29 06:21 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2010-08-28 05:33:27 UTC
Try to compile solfege-3.16.4.  Compile crashes with:

usr/bin/python tools/generate_lessonfiles.py
000179 /usr/bin/python tools/gen_regression_lessonfiles.py
000180 LC_ALL=C makeinfo -I topdocs --no-split --no-headers --output INSTALL topdocs/INSTALL.texi
000181 LC_ALL=C makeinfo -I topdocs --no-split --no-headers --output README topdocs/README.texi
000182 LC_ALL=C makeinfo -I topdocs --no-split --no-headers --output FAQ topdocs/FAQ.texi
000183 LC_ALL=C makeinfo -I topdocs --no-split --no-headers --output INSTALL.win32 topdocs/INSTALL.win32.texi
000184 make: *** No rule to make target `soundcard/_solfege_c_midi.so', needed by `all'.  Stop.
000185  * ERROR: media-sound/solfege-3.16.4 failed:
000186  *   emake failed
000187  * 
000188  * Call stack:
000189  *     ebuild.sh, line   54:  Called src_compile
000190  *   environment, line 3066:  Called _eapi2_src_compile
000191  *     ebuild.sh, line  646:  Called die
000192  * The specific snippet of code:
000193  *   emake || die "emake failed"
000194  * 

Reproducible: Always

Steps to Reproduce:
1. emerge solfege
2.
3.

Actual Results:  
As above: failed emerge

Expected Results:  
Successful emerge

I am not very knowledgeable about programming and may have applied one "patch" in my years of Gentoo (don't recall).  So I pass on what I Googled:


The problem is caused by a typo in the Makefile (only in the branch for unknown swig versions). The following patch solves the issue:

diff -uNr solfege-3.16.4.old/solfege/soundcard/Makefile solfege-3.16.4/solfege/soundcard/Makefile
--- solfege-3.16.4.old/solfege/soundcard/Makefile	2010-07-22 23:51:27.000000000 +0200
+++ solfege-3.16.4/solfege/soundcard/Makefile	2010-07-24 16:44:51.000000000 +0200
@@ -35,7 +35,7 @@
    TARGETS += solfege/soundcard/_solfege_c_midi.so
   endif
   ifeq ($(SWIG_VERSION),unknown)
-   TARGETS += soundcard/_solfege_c_midi.so
+   TARGETS += solfege/soundcard/_solfege_c_midi.so
   endif
  endif
 endif




The 3.16.1 soundcard makefile has this code:


ifeq ($(ENABLE_OSS_SOUND),yes)
 ifdef SWIG
  ifeq ($(SWIG_VERSION),1.1)
   TARGETS += solfege/soundcard/solfege_c_midimodule.so
  endif
  ifeq ($(SWIG_VERSION),1.3)
   TARGETS += solfege/soundcard/_solfege_c_midi.so
  endif
  ifeq ($(SWIG_VERSION),unknown)
   TARGETS += soundcard/_solfege_c_midi.so
  endif
 endif
endif


My system uses swig-2.0.0, so it would appear the
TARGETS += soundcard/_solfege_c_midi.so 
line of code might be the problem.


To comply with the expected: 

Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.12.1-r1, 2.6.32-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-i686-Dual-Core_AMD_Opteron-tm-_Processor_1218-with-gentoo-2.0.1
Timestamp of tree: Fri, 27 Aug 2010 22:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.2.2, 4.4.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="en_US.utf-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa audiofile avahi avi berkdb bluetooth branding bzip2 cairo cdparanoia cdr cdrom chroot cli consolekit cracklib crypt cups cxx dbus divx4linux dri dts dv dvd dvdr dvdread emboss encode exif fam ffmpeg firefox flac fortran freetype gdbm gif gimpprint gnome gpm gtk gtk2 gtkhtml hal iconv java javascript jpeg lcms libnotify lm_sensors lzo mad mbox mikmod mime mmap mmx mmxext mng modules mp3 mp4 mpeg mpi mudflap mysql nas ncurses net network nis nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pango pcre pdf perl php png posix ppds pppd python qt3support qt4 readline reflection rtc samba sdl session sndfile snmp sockets socks5 spell spl ssl startup-notification svg swat sysfs szip tcltk tcpd theora tidy tiff truetype type1-fonts unicode usb userlocales vidix vorbis win32codecs wxwindows x264 x86 xcb xfs xgetdefault xml xmlrpc xorg xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="ice1712" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tim Harder gentoo-dev 2010-08-29 06:21:19 UTC
Thanks for the report. I applied the fix for solfege-3.16.4.