Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40424 - emu10k1-0.20a-r5 fails to emerge with a src_compile error.
Summary: emu10k1-0.20a-r5 fails to emerge with a src_compile error.
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-04 17:25 UTC by Jim Smilanich
Modified: 2004-02-06 10:55 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 Jim Smilanich 2004-02-04 17:25:13 UTC
Here is my output from a couple of 'emerge emu10k1' attempts.  Running a brand new install with a 2.6.1 kernel:

root@sgtrock jim # emerge --deep --update emu10k1
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/emu10k1-0.20a-r5 to /
>>> md5 src_uri ;-) emu10k1-v0.20a.tar.bz2
>>> Unpacking source...
>>> Unpacking emu10k1-v0.20a.tar.bz2 to /var/tmp/portage/emu10k1-0.20a-r5/work
 * Applying emu10k1-0.20a-gcc3.3.patch.gz...                              [ ok ]
>>> Source unpacked.
make -Cscripts
make[1]: Entering directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
gcc -I/usr/src/linux/include get_version.c -o get_version
make -f /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/Makefile.get_options -C /usr/src/linux get_version_target
make[2]: Entering directory `/usr/src/linux-2.6.1-gentoo'
Makefile:405: /usr/src/linux-2.6.1-gentoo/arch/x86/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/linux-2.6.1-gentoo/arch/x86/Makefile'.  Stop.
make[2]: Leaving directory `/usr/src/linux-2.6.1-gentoo'
make[1]: *** [get_options] Error 2
make[1]: Leaving directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
make: *** [opts] Error 2

!!! ERROR: media-sound/emu10k1-0.20a-r5 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! make failed

root@sgtrock jim # slocate emu10k1-v0.20a.tar.bz2
/usr/portage/distfiles/emu10k1-v0.20a.tar.bz2
root@sgtrock jim # rm /usr/portage/distfiles/emu10k1-v0.20a.tar.bz2
root@sgtrock jim # emerge --deep --update emu10k1
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/emu10k1-0.20a-r5 to /
>>> Downloading http://cesnet.dl.sourceforge.net/sourceforge/emu10k1/emu10k1-v0.20a.tar.bz2
--06:52:15--  http://cesnet.dl.sourceforge.net/sourceforge/emu10k1/emu10k1-v0.20a.tar.bz2
           => `/usr/portage/distfiles/emu10k1-v0.20a.tar.bz2'
Resolving cesnet.dl.sourceforge.net... 195.113.161.88
Connecting to cesnet.dl.sourceforge.net[195.113.161.88]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 286,000 [application/x-bzip2]

100%[====================================>] 286,000       14.67K/s    ETA 00:00

06:52:46 (9.24 KB/s) - `/usr/portage/distfiles/emu10k1-v0.20a.tar.bz2' saved [286000/286000]

>>> md5 src_uri ;-) emu10k1-v0.20a.tar.bz2
>>> Unpacking source...
>>> Unpacking emu10k1-v0.20a.tar.bz2 to /var/tmp/portage/emu10k1-0.20a-r5/work
 * Applying emu10k1-0.20a-gcc3.3.patch.gz...                              [ ok ]
>>> Source unpacked.
make -Cscripts
make[1]: Entering directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
gcc -I/usr/src/linux/include get_version.c -o get_version
make -f /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/Makefile.get_options -C /usr/src/linux get_version_target
make[2]: Entering directory `/usr/src/linux-2.6.1-gentoo'
Makefile:405: /usr/src/linux-2.6.1-gentoo/arch/x86/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/linux-2.6.1-gentoo/arch/x86/Makefile'.  Stop.
make[2]: Leaving directory `/usr/src/linux-2.6.1-gentoo'
make[1]: *** [get_options] Error 2
make[1]: Leaving directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
make: *** [opts] Error 2

!!! ERROR: media-sound/emu10k1-0.20a-r5 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! make failed



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups curl directfb dvd dvdr emacs
encode esd ethereal evo fbcon flac foomaticdb gdbm gif gnome gphoto2 gpm gtk
gtk2 imagemagick imap imlib ipv6 java jpeg kde ldap libg++ libwww mad mikmod
motif mozilla mpeg ncurses nls oggvorbis opengl pam pdflib perl png pnp python
qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex tiff truetype
usb videos x86 xml2 xmms xv zlib"
Comment 1 Jim Smilanich 2004-02-04 17:39:14 UTC
I forgot to add that this is for a Creative Labs Audigy2 soundcard.
Comment 2 TGL 2004-02-04 23:06:51 UTC
> Makefile:405: /usr/src/linux-2.6.1-gentoo/arch/x86/Makefile

This is the same bug as bug #34807: portage have $ARCH set to "x86", but ARCH is also a Makefile variable, that should be "i386" for the path to makefile to be correct.  "env -u ARCH" in the ebuild should do the trick.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-04 23:16:20 UTC
next on my todo list...
Comment 4 Brian Harring (RETIRED) gentoo-dev 2004-02-04 23:33:29 UTC
Appears to fix compilation, although I wonder about needing a kernel version specific emu_wrapper.{c,h}
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-04 23:44:43 UTC
fixed now in portage.
Comment 6 Jim Smilanich 2004-02-05 05:03:28 UTC
Thanks for clearing that up.  However, I'm getting a new error now: 

root@sgtrock jim # rm /usr/portage/distfiles/emu10k1-v0.20a.tar.bz2
root@sgtrock jim # emerge --deep --update emu10k1
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/emu10k1-0.20a-r5 to /
>>> Downloading http://heanet.dl.sourceforge.net/sourceforge/emu10k1/emu10k1-v0.20a.tar.bz2
--18:41:49--  http://heanet.dl.sourceforge.net/sourceforge/emu10k1/emu10k1-v0.20a.tar.bz2
           => `/usr/portage/distfiles/emu10k1-v0.20a.tar.bz2'
Resolving heanet.dl.sourceforge.net... 193.1.219.87
Connecting to heanet.dl.sourceforge.net[193.1.219.87]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 286,000 [application/x-bzip2]
 
100%[====================================>] 286,000       23.56K/s    ETA 00:00
 
18:42:23 (8.51 KB/s) - `/usr/portage/distfiles/emu10k1-v0.20a.tar.bz2' saved [286000/286000]
 
>>> md5 src_uri ;-) emu10k1-v0.20a.tar.bz2
>>> Unpacking source...
>>> Unpacking emu10k1-v0.20a.tar.bz2 to /var/tmp/portage/emu10k1-0.20a-r5/work
 * Applying emu10k1-0.20a-gcc3.3.patch.gz...                              [ ok ]>>> Source unpacked.
make -Cscripts
make[1]: Entering directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
gcc -I/usr/src/linux/include get_version.c -o get_version
make -f /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/Makefile.get_options -C /usr/src/linux get_version_target
make[2]: Entering directory `/usr/src/linux-2.6.1-gentoo'
Makefile:405: /usr/src/linux-2.6.1-gentoo/arch/x86/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/linux-2.6.1-gentoo/arch/x86/Makefile'.  Stop.
make[2]: Leaving directory `/usr/src/linux-2.6.1-gentoo'
make[1]: *** [get_options] Error 2
make[1]: Leaving directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
make: *** [opts] Error 2
 
!!! ERROR: media-sound/emu10k1-0.20a-r5 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! make failed
 
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-05 10:38:01 UTC
That looks like the same error to me... Chances are the change I made wasn't on your rsync mirror yet when you last did am emerge sync.  The header of the ebuild should say:

# $Header: /home/cvsroot/gentoo-x86/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild,
v 1.4 2004/02/05 07:44:07 eradicator Exp $

Was that it?

--Jeremy
Comment 8 Jim Smilanich 2004-02-05 19:24:30 UTC
You're correct.  I tried again this evening and got the same error.  I still have the old ebuild:

 $Header: /home/cvsroot/gentoo-x86/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild,v 1.3 2003/10/28 14:14:15 mholzer Exp $

What's the safest way to delete it?  I thought all I needed to do was delete the .tar.bz2 file from /usr/portage/distfiles?
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-05 19:31:45 UTC
You need to do an 'emerge sync' to update the portage tree from your rsync mirror.  These mirrors are snapshots of the portage tree we work with and sometimes it'll take a little while for the update to get to you (usually around a day...)
Comment 10 Jim Smilanich 2004-02-05 22:15:46 UTC
(sigh) Still no go.  After manually deleting /usr/portage/media-sound/emu10k1/*, /var/portage/tmp/*, and doing an emerge sync:


===============================================
bash-2.05b# cat /usr/portage/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild | grep Header
# $Header: /home/cvsroot/gentoo-x86/media-sound/emu10k1/emu10k1-0.20a-r5.ebuild,v 1.4 2004/02/05 07:44:07 eradicator Exp $

bash-2.05b# !emerge
emerge emu10k1
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/emu10k1-0.20a-r5 to /
>>> md5 src_uri ;-) emu10k1-v0.20a.tar.bz2
>>> Unpacking source...
>>> Unpacking emu10k1-v0.20a.tar.bz2 to /var/tmp/portage/emu10k1-0.20a-r5/work
 * Applying emu10k1-0.20a-gcc3.3.patch.gz...                              [ ok ]
>>> Source unpacked.
make -Cscripts
make[1]: Entering directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
gcc -I/usr/src/linux/include get_version.c -o get_version
make -f /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/Makefile.get_options -C /usr/src/linux get_version_target
make[2]: Entering directory `/usr/src/linux-2.6.1-gentoo'
echo "KERNEL_VERSION := 2.6.1-gentoo" >> /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/../.opts
echo "CFLAGS += -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer " >> /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/../.opts
echo "CC := gcc" >> /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/../.opts
echo "MODFLAGS += -DMODULE" >> /var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts/../.opts
make[2]: Leaving directory `/usr/src/linux-2.6.1-gentoo'
make[1]: Leaving directory `/var/tmp/portage/emu10k1-0.20a-r5/work/emu10k1-v0.20a/scripts'
**
** Compilation configured for KERNEL_VERSION := 2.6.1-gentoo, now compile it with:
**   make
**
gcc  -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer  -DEMU10K1_SEQUENCER -I/usr/src/linux/drivers/sound  -DMODULE -M audio.c cardmi.c cardmo.c cardwi.c cardwo.c efxmgr.c emuadxmg.c hwaccess.c irqmgr.c main.c midi.c mixer.c recmgr.c timer.c voicemgr.c ecard.c passthrough.c  > .depend
In file included from audio.c:45:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from cardmi.c:36:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from cardmo.c:35:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from cardwi.c:33:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from cardwo.c:33:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from efxmgr.c:33:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from emuadxmg.c:33:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from hwaccess.c:35:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from irqmgr.c:32:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from main.c:97:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
main.c:112:26: sound_config.h: No such file or directory
main.c:113:24: midi_synth.h: No such file or directory
In file included from midi.c:41:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
midi.c:47:26: sound_config.h: No such file or directory
In file included from mixer.c:39:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from recmgr.h:35,
                 from recmgr.c:34:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from timer.c:31:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from voicemgr.h:35,
                 from voicemgr.c:32:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from ecard.h:30,
                 from ecard.c:32:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
In file included from passthrough.c:43:
hwaccess.h:43:25: emu_wrapper.h: No such file or directory
make: *** [.depend] Error 1

!!! ERROR: media-sound/emu10k1-0.20a-r5 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! make all failed
=====================================================

What on earth am I missing?
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-06 04:05:50 UTC
This is a problem with the emu10k1 drivers not being compatible with 2.6 at this time.  Hopefully they'll release a 2.6 compatible version in the future, but my advice is to use alsa.  Is there any particular reason you can't / don't want to use alsa?
Comment 12 Jim Smilanich 2004-02-06 07:07:06 UTC
I guess I don't understand the sound architecture well enough to have an opinion.  My longterm goal is to use alsa for all applications (I've never been happy with artsd, for example).  

I thought I needed emu10k1 in order to get the low level hardware drivers for my CL Audigy2 sound card.  I gather from what you're saying I've been going in the wrong direction all this time?
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-06 10:55:34 UTC
So the lowest level you control is the hardware (duh).  Above that is basically the driver (from OSS, ALSA, etc).  The emu10k1 driver is an OSS driver that is included in the kernels but is not always up to date in kernels and also requires an extra toolset to use (so we have a separate package for that).

After the driver, you have an interface between the drivers and programs that want to play sound.  This is provided directly by the OSS drivers and by ALSA with the alsa-lib package (and also you could access it directly through the devices in /dev).  The ALSA project also provides an OSS compatible interface.

Next you have user-land programs which play sound.  These are things like xmms, but you can also insert another level here by using a sound server (esd, arts, jack, nas, etc).  xmms, for example, has output plugins to use the sound servers or just the drivers directly.

2.4.x kernels include only OSS-compatible sound drivers, but you can emerge alsa-drivers package to get ALSA drivers instead.  2.6.x kernels include the alsa-drivers in the kernel source but also have the OSS drivers "just in case".

ALSA is far superior, so what I'd recommend is emerging alsa-utils, alsa-lib, alsa-drivers, and alsa-oss to get started...  If you need help, check the forums or IRC.