Bug 38896 - lame-3.95.1 fails to compile
Bug#: 38896 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sound@gentoo.org Reported By: ehmsen@gentoo.org
Component: Applications
URL: 
Summary: lame-3.95.1 fails to compile
Keywords:  
Status Whiteboard: 
Opened: 2004-01-21 01:05 0000
Description:   Opened: 2004-01-21 01:05 0000
lame-3.95.1 fails to compile with the following message:

make[3]: Entering directory `/var/tmp/portage/lame-3.95.1/work/lame-3.95.1/libmp3lame/i386'
test -d .libs || mkdir .libs
test -d .libs || mkdir .libs
mkdir: cannot create directory `.libs': File exists
echo '# Generated by ltmain.sh - GNU libtool 1.5 (1.1220 2003/04/05 19:32:58)' >choose_table.lo
make[3]: *** [cpu_feat.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
echo "pic_object='.libs/choose_table.o'" >>choose_table.lo
make[3]: *** Waiting for unfinished jobs....
echo "non_pic_object='choose_table.o'" >>choose_table.lo
make[3]: *** Waiting for unfinished jobs....
/usr/bin/nasm -f elf -i ../../libmp3lame/i386/ choose_table.nas -o .libs/choose_
table.o -l choose_table.lo.lst
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/lame-3.95.1/work/lame-3.95.1/libmp3lame/i386'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/lame-3.95.1/work/lame-3.95.1/libmp3lame'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/lame-3.95.1/work/lame-3.95.1'
make: *** [all] Error 2

!!! ERROR: media-sound/lame-3.95.1 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:




Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Athlon(TM) XP1900+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache notitles sandbox"
GENTOO_MIRRORS="http://gentoo.linux.no/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa amd apache2 apm avi berkdb cdr crypt cups curl doc emacs
emacs-w3 encode faad fam fbcon flac foomaticdb freetype fs gdbm gif gtk gtk2
guile imagemagick imap imlib imlib2 ipv6 jabber java javascript jpeg libg++
libwww mad maildir mbox mikmod mmx motif mozilla mpeg mpeg4 ncurses nls nptl
oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline
samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype type1
unicode usb x86 xml xml2 xmms xv xvid zlib"

------- Comment #1 From Veszi Gabor 2004-01-21 02:00:56 0000 -------
Same for me too.

Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1-mm4)
=================================================================
System uname: 2.6.1-mm4 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa apm arts avi berkdb bonobo cdr crypt cups dga dvd encode esd ethereal foomaticdb gd gdbm gif gnome gpm gtk gtk2 imap imlib java jpeg kde libg++ libwww mad maildir mcal memlimit mikmod mmx motif mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"

------- Comment #2 From Gregorio Guidi (RETIRED) 2004-01-21 02:23:33 0000 -------
That's a weird issue with parallel make (make -j2)

Two make processes issue "test -d .libs || mkdir .libs" at the same time, so the test fails for both, then one mkdir succeeds and the other fails.

A lot of possible solutions:
- substitute emake with make (bad)
- mkdir ${S}/libmp3lame/i386/.libs before compiling
- s/test -d .libs || mkdir .libs/mkdir -p .libs/ in Makefile.in

------- Comment #3 From Nick Hadaway 2004-01-21 02:31:50 0000 -------
hrm... this looks to be a finicky make process which doesn't like parallel
make... 
Changed emake to make and things work like a charm... 

------- Comment #4 From Nick Hadaway 2004-01-21 02:33:35 0000 -------
man.... you guys are on top of this stuff quick... as i'm fixing it i'm seeing
posts with the same fix :)  well... since you all seem to be up, find some
solutions to some of these other sound@gentoo.org bugs and email me your
fixes.... hehe