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'. *
Created attachment 146866 [details] this is the lash-0.5.4/pylash/lash_wrap.c generated by swig
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 ?
thanks! MAKEOPTS="-j1" emerge -u lash worked for me
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
(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
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
(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 :/
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)
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
OK, with the latest sync from the tree lash-0.5.4 finally built. :-D
Closing old bug since the latest revision builds fine for me.