Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214234 - media-sound/lash-0.5.4 failed to compile
Summary: media-sound/lash-0.5.4 failed to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-22 11:16 UTC by Federico Ferri (RETIRED)
Modified: 2011-03-29 06:52 UTC (History)
0 users

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


Attachments
this is the lash-0.5.4/pylash/lash_wrap.c generated by swig (lash_wrap.c,150.98 KB, text/plain)
2008-03-22 11:18 UTC, Federico Ferri (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Ferri (RETIRED) gentoo-dev 2008-03-22 11:16:20 UTC
media-sound/lash-0.5.4 failed to compile with the following error:
(fails module pylash. my installed version of swig is 1.3.31)

make[2]: Entering directory `/var/tmp/portage/media-sound/lash-0.5.4/work/lash-0.5.4/pylash'
/bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I..   -O2 -pipe -fomit-frame-pointer -march=athlon-xp -mfpmath=sse -msse -c -o lash.lo lash.c
/usr/bin/swig -o lash_wrap.c -I.. -python ../pylash/lash.i
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I.. -O2 -pipe -fomit-frame-pointer -march=athlon-xp -mfpmath=sse -msse -c lash.c  -fPIC -DPIC -o .libs/lash.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I.. -O2 -pipe -fomit-frame-pointer -march=athlon-xp -mfpmath=sse -msse -c lash.c -o lash.o >/dev/null 2>&1
/usr/bin/swig -o lash_wrap.c -I.. -python ../pylash/lash.i
/bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I..   -O2 -pipe -fomit-frame-pointer -march=athlon-xp -mfpmath=sse -msse -c -o lash_wrap.lo lash_wrap.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I.. -O2 -pipe -fomit-frame-pointer -march=athlon-xp -mfpmath=sse -msse -c lash_wrap.c  -fPIC -DPIC -o .libs/lash_wrap.o
lash_wrap.c:2430:9: warning: no newline at end of file
lash_wrap.c: In function 'SWIG_Python_MustGetPtr':
lash_wrap.c:2430: error: expected expression at end of input
lash_wrap.c:2430: error: expected declaration or statement at end of input
make[2]: *** [lash_wrap.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-sound/lash-0.5.4/work/lash-0.5.4/pylash'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/lash-0.5.4/work/lash-0.5.4'
make: *** [all] Error 2
 * 
 * ERROR: media-sound/lash-0.5.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2077:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * 
 * 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-sound/lash-0.5.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/lash-0.5.4/temp/environment'.
 *
Comment 1 Federico Ferri (RETIRED) gentoo-dev 2008-03-22 11:18:16 UTC
Created attachment 146866 [details]
this is the lash-0.5.4/pylash/lash_wrap.c generated by swig
Comment 2 Alexis Ballier gentoo-dev 2008-03-22 12:21:06 UTC
hmm this is weird; the file is ok but it looks like it tried to compile it before it was written.
could you please check with -j1 as MAKEOPTS ?
Comment 3 Federico Ferri (RETIRED) gentoo-dev 2008-03-22 13:53:05 UTC
thanks!

MAKEOPTS="-j1" emerge -u lash   worked for me
Comment 4 Federico Ferri (RETIRED) gentoo-dev 2008-03-22 13:55:02 UTC
btw, during the merge, lash has generate a package file collision with pylash:

 * package media-sound/lash-0.5.4 NOT merged
 * 
 * Detected file collision(s):
 * 
 *      /usr/lib/python2.4/site-packages/lash.py
 *      /usr/lib/python2.4/site-packages/_lash.so
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * media-libs/pylash-3_pre
 *      /usr/lib/python2.4/site-packages/lash.py
 *      /usr/lib/python2.4/site-packages/_lash.so

but that's another story
Comment 5 Alexis Ballier gentoo-dev 2008-03-22 13:59:18 UTC
(In reply to comment #4)
> btw, during the merge, lash has generate a package file collision with pylash:

Hu ? I have no pylash package here
Comment 6 Federico Ferri (RETIRED) gentoo-dev 2008-03-22 14:02:45 UTC
oups... pylash coming from the proaudio overlay (btw only jack_mixer was depending on it)

it was a trivial fix as unmerging pylash and re-merging lash
Comment 7 Alexis Ballier gentoo-dev 2008-03-24 10:27:20 UTC
(In reply to comment #3)
> thanks!
> 
> MAKEOPTS="-j1" emerge -u lash   worked for me
> 

hmm the problem is... I can't see what's wrong with the makefiles wrt parallel make :/
Comment 8 Federico Ferri (RETIRED) gentoo-dev 2008-03-24 10:45:16 UTC
but it is 100% reproducible. I tried also lash-0.5.4 from pro-audio overlay, but fails the same way.

just a little note: dev-lang/swig should be added to DEPEND (at least if python USE flag is set)
Comment 9 James L. Hammons 2008-09-25 01:59:34 UTC
Fails for me:
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DLASH_BUILD -DHAVE_LASH -O2 -pipe -march=athlon -c comm.c -o liblash_la-comm.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I..  -DLASH_BUILD -DHAVE_LASH -O2 -pipe -march=athlon -c -o liblash_la-socket.lo `test -f 'socket.c' || echo './'`socket.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DLASH_BUILD -DHAVE_LASH -O2 -pipe -march=athlon -c socket.c  -fPIC -DPIC -o .libs/liblash_la-socket.o
In file included from ../lash/list.h:37,
                 from socket.c:36:
../lash/xmalloc.h: In function 'lash_strdup':
../lash/xmalloc.h:51: warning: incompatible implicit declaration of built-in function 'strdup'
socket.c: In function 'lash_lookup_peer_name':
socket.c:266: error: 'NI_MAXHOST' undeclared (first use in this function)
socket.c:266: error: (Each undeclared identifier is reported only once
socket.c:266: error: for each function it appears in.)
socket.c: In function 'lash_lookup_peer_port':
socket.c:279: error: 'NI_MAXSERV' undeclared (first use in this function)
make[2]: *** [liblash_la-socket.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-sound/lash-0.5.4/work/lash-0.5.4/liblash'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/lash-0.5.4/work/lash-0.5.4'
make: *** [all] Error 2

I'm on ~x86, could this be a gcc 4.3.1 bug (as in, lash isn't written correctly)? I can post emerge --info if it will help
Comment 10 James L. Hammons 2008-10-02 20:23:47 UTC
OK, with the latest sync from the tree lash-0.5.4 finally built. :-D
Comment 11 Tim Harder gentoo-dev 2011-03-29 06:52:31 UTC
Closing old bug since the latest revision builds fine for me.