Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130577 - media-sound/mpg123-0.59s-r10 doesn't compile
Summary: media-sound/mpg123-0.59s-r10 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 03:26 UTC by Ernestas Liubarskij
Modified: 2006-06-07 00:17 UTC (History)
5 users (show)

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


Attachments
Patch removing instances of \\\n in Makefile to make build complete (Makefile_patch_bug_130577.patch,37.66 KB, patch)
2006-05-13 22:00 UTC, Jonathan Kunkee
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ernestas Liubarskij 2006-04-20 03:26:33 UTC
Here's the error:
make[2]: Leaving directory `/var/tmp/portage/mpg123-0.59s-r10/work/mpg123'
make[1]: Leaving directory `/var/tmp/portage/mpg123-0.59s-r10/work/mpg123'
rm -f *.o *core *~ mpg123 gmon.out sajberplay system mpg123m
make  LDFLAGS= \
                OBJECTS='decode_i386.o dct64_i386.o decode_i586.o \
                        decode_i486.o audio_oss.o term.o \
                        dct64_i486-a.o dct64_i486-b.o ' \
                CFLAGS='-O3 -march=pentium4 -pipe -DI386_ASSEM -DREAL_IS_FLOAT -DI486_OPT -DLINUX \
                        -DOSS -DTERM_CONTROL\
                        -Wall   \
                        -fomit-frame-pointer -funroll-all-loops \
                        -finline-functions -ffast-math' \
                mpg123-make
make[1]: Entering directory `/var/tmp/portage/mpg123-0.59s-r10/work/mpg123'
make[2]: Entering directory `/var/tmp/portage/mpg123-0.59s-r10/work/mpg123'
cc -O3 -march=pentium4 -pipe -DI386_ASSEM -DREAL_IS_FLOAT -DI486_OPT -DLINUX \
        -DOSS -DTERM_CONTROL\
        -Wall   \
        -fomit-frame-pointer -funroll-all-loops \
        -finline-functions -ffast-math   -c -o mpg123.o mpg123.c
<command line>:1:13: warning: missing whitespace after the macro name
cc -O3 -march=pentium4 -pipe -DI386_ASSEM -DREAL_IS_FLOAT -DI486_OPT -DLINUX \
        -DOSS -DTERM_CONTROL\
        -Wall   \
        -fomit-frame-pointer -funroll-all-loops \
        -finline-functions -ffast-math   -c -o common.o common.c
<command line>:1:13: warning: missing whitespace after the macro name
cc -O3 -march=pentium4 -pipe -DI386_ASSEM -DREAL_IS_FLOAT -DI486_OPT -DLINUX \
        -DOSS -DTERM_CONTROL\
        -Wall   \
        -fomit-frame-pointer -funroll-all-loops \
        -finline-functions -ffast-math   -c -o decode_i386.o decode_i386.c
<command line>:1:13: warning: missing whitespace after the macro name
cc -O3 -march=pentium4 -pipe -DI386_ASSEM -DREAL_IS_FLOAT -DI486_OPT -DLINUX \
        -DOSS -DTERM_CONTROL\
        -Wall   \
        -fomit-frame-pointer -funroll-all-loops \
        -finline-functions -ffast-math   -c -o dct64_i386.o dct64_i386.c
<command line>:1:13: warning: missing whitespace after the macro name
as   -o decode_i586.o decode_i586.s
make[2]: *** No rule to make target `\
', needed by `mpg123'.  Stop.
make[2]: Leaving directory `/var/tmp/portage/mpg123-0.59s-r10/work/mpg123'
make[1]: *** [mpg123-make] Error 2
make[1]: Leaving directory `/var/tmp/portage/mpg123-0.59s-r10/work/mpg123'
make: *** [linux-i486] Error 2

!!! ERROR: media-sound/mpg123-0.59s-r10 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  mpg123-0.59s-r10.ebuild, line 126:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

# emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-r2 i686)
=================================================================
System uname: 2.6.16-gentoo-r2 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.dtiltas.lt/mirror/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LC_ALL="lt_LT.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="lt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apache2 avi beagle berkdb bitmap-fonts bzip2 cairo caps cdr chroot cli crypt ctype cups dba dbus dlloader dri dvd eds emboss encode expat fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glx gnome gnutls gpm gstreamer gtk gtk2 hal howl imlib isdnlog jpeg libg++ libwww lm_sensors logrotate mad memlimit mikmod mmx mmxext motif mp3 mpeg ncurses new-login nls nptl nptlonly nsplugin nvidia offensive ogg opengl oss pam pcre pdf pdflib perl png posix pppd python quicktime readline reiserfs sdl session simplexml soap sockets spell spl sqlite sse sse2 ssl symlink tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs xml xsl xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_lt userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG
Comment 1 Vinícius Santos 2006-04-23 19:44:49 UTC
I have same problem in mpg123-0.59s-r10 and mpg123-0.59s-r9.

# emerge --info
Portage 2.1_pre9-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.12.0_pre18
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-tbird -pipe -fexpensive-optimizations"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-tbird -pipe -fexpensive-optimizations"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pt_BR"
LC_ALL="pt_BR"
LINGUAS="pt_BR en pt es"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts cddb cli crypt css cups directfb dri dvdr dvdread eds emboss encode esd ffmpeg foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde kdepim libg++ libwww lzo mad mikmod mjpeg mmx motif mp3 mpeg musepack musicbrainz ncurses nls nptl nptlonly ogg opengl oss pam pcre pda pdflib perl png pppd python qt quicktime readline reflection sdl session sndfile speex spell spl sse ssl tcpd truetype truetype-fonts type1-fonts udev vcd vorbis xml xmms xorg xv xvid zlib elibc_glibc kernel_linux linguas_pt_BR linguas_en linguas_pt linguas_es userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY

Comment 2 Balint Dobai-Pataky 2006-04-25 02:51:03 UTC
i got the same.

emerge --info
Portage 2.1_pre9-r3 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Mobile Intel(R) Pentium(R) 4     CPU 2.66GHz
Gentoo Base System version 1.12.0_pre18
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r3
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="no"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LC_ALL="en_US.UTF-8"
LINGUAS="en hu ro"
MAKEOPTS=" -s "
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gw/gentoo-portage"
USE="x86 X acpi alsa apm avi bash-completion beagle bitmap-fonts browserplugin bzip2 cairo cdparanoia cdr cli crypt css cups dga divx4linux dri dvd dvdr dvdread emboss encode erandom esd firefox foomaticdb fpu gd gif gimpprint gmail gnome gnutls gpm gstreamer gtk gtk2 hal howl i8x0 imagemagick imap imlib isdnlog ithreads jabber jpeg kqemu libg++ libwww live mad maildir mbox mikmod mime mmx mmxext motif mozilla mozmail moznoirc mozsvg mp3 mpeg mplayer mtrr mysql nautilus ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib perl png ppds pppd python quicktime readline rtc screen sdl session softmmu sox spl sse sse2 ssl startup-notification subtitles svg tcpd truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 vcd vorbis win32codecs xml xml2 xmms xorg xprint xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_en linguas_hu linguas_ro userland_GNU video_cards_i810"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS
Comment 3 Hans-Werner Hilse 2006-04-25 04:23:25 UTC
just hit this bug and thought I make some notes...

it seems that it is caused by "oss" USE flag on a x86 platform. Without that flag, everything is fine. I didn't check through all of this, but it seems the ebuild logic for the USE flags, which creates targets for make, is a bit broken.
Comment 4 Cymen Vig 2006-04-30 19:49:39 UTC
I'm hit by this too -- mpg321 works as an alternative.

Comment 5 Dave Liefbroer 2006-05-02 04:35:56 UTC
(In reply to comment #3)
> just hit this bug and thought I make some notes...
> 
> it seems that it is caused by "oss" USE flag on a x86 platform. Without that
> flag, everything is fine. I didn't check through all of this, but it seems the
> ebuild logic for the USE flags, which creates targets for make, is a bit
> broken.
> 

Well I disabled the oss USE flag, but that didn't fix it.
Comment 6 Dave Liefbroer 2006-05-02 04:52:25 UTC
It looks like an upstream error. The plain archive has the same problem. That probably why there is a Makefile patch. But seems to me this isn't working as it should. Did anyone change 001_all_Makefile.patch?

The problem comes from the multiline VARS in the Makefile, if you put all multilines of the Makefile on single lines it's OK (or compiles at least better)
Comment 7 Jonathan Kunkee 2006-05-13 21:54:58 UTC
As far as I can tell, this hasn't been resolved. I have the same problem, and I've worked out a little kludge that seems to work. (I'm also submitting a patch.)

Unpack:
# ebuild /usr/portage/media-sound/mpg123/mpg123-0.59s-r10.ebuild unpack

Change to the working directory (for me, /var/tmp/portage/mpg123-0.59s-r10/work/mpg123), then run this perl script...

#!/usr/bin/perl
my @text = <STDIN>;
my $str = join '',@text;
$str =~ s/\\\n//gs;
print $str


...like so:
# perl name_of_kludge_script < Makefile > Makefile.fixed

Do a bit of miscellaneous organizational stuff:
# mv Makefile Makefile.old
# mv Makefile.fixed Makefile

Then continue ebuild:
#ebuild /usr/portage/media-sound/mpg123/mpg123-0.59s-r10.ebuild compile install qmerge

That should do it!


It looks like the Makefile is almost directly from upstream, so I'll submit a patch. (diff -urN Makefile.after_unpack Makefile.fixed > Makefile_patch_bug_130577.patch)
Comment 8 Jonathan Kunkee 2006-05-13 22:00:04 UTC
Created attachment 86727 [details, diff]
Patch removing instances of \\\n in Makefile to make build complete

This is my first patch ever; hopefully it works well enough to help.

My post on the bug page describes how I made this.
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2006-06-07 00:17:30 UTC
committed a fix to -r11.  Thanks.