Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24323 - alsa-driver-0.9.5 emerge failure with SMP kernel
Summary: alsa-driver-0.9.5 emerge failure with SMP kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-11 19:30 UTC by Roger Hawley
Modified: 2003-07-14 12:42 UTC (History)
3 users (show)

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


Attachments
I found this patch for the problem on the alsa-user list. (ak4117-fix.dif,571 bytes, patch)
2003-07-14 10:20 UTC, verytepid
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Hawley 2003-07-11 19:30:08 UTC
Doing emerge -vu world. Alsa-lib-0.9.5 compiled and then this error.

make  -C other modules
make[2]: Entering directory
`/home/tmp/portage/portage/alsa-driver-0.9.5/work/alsa-driver-0.9.5/i2c/other'
gcc -D__KERNEL__ -DMODULE=1
-I/home/tmp/portage/portage/alsa-driver-0.9.5/work/alsa-driver-0.9.5/include 
-I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__
-DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  
-DEXPORT_SYMTAB -c ak4117.c
rm -f snd-cs8427.o
ld  -r -o snd-cs8427.o cs8427.o
gcc -D__KERNEL__ -DMODULE=1
-I/home/tmp/portage/portage/alsa-driver-0.9.5/work/alsa-driver-0.9.5/include 
-I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=i686 -D__SMP__
-DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD  
-DEXPORT_SYMTAB -c ak4xxx-adda.c
ak4117.c: In function `snd_ak4117_create_Rsmp_210f24ef':
ak4117.c:91: incompatible types in assignment
ak4117.c: In function `snd_ak4117_in_error_get':
ak4117.c:178: warning: passing arg 1 of `_raw_spin_lock' from incompatible
pointer type
ak4117.c:182: warning: passing arg 1 of `_raw_spin_unlock' from incompatible
pointer type
ak4117.c: In function `snd_ak4117_rx_put':
ak4117.c:234: warning: passing arg 1 of `_raw_spin_lock' from incompatible
pointer type
ak4117.c:239: warning: passing arg 1 of `_raw_spin_unlock' from incompatible
pointer type
ak4117.c: In function `snd_ak4117_check_rate_and_errors_Rsmp_0747321d':
ak4117.c:483: warning: passing arg 1 of `_raw_spin_lock' from incompatible
pointer type
ak4117.c:499: warning: passing arg 1 of `_raw_spin_unlock' from incompatible
pointer type
make[2]: *** [ak4117.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm -f snd-i2c.o
ld  -r -o snd-i2c.o i2c.o
make[2]: Leaving directory
`/home/tmp/portage/portage/alsa-driver-0.9.5/work/alsa-driver-0.9.5/i2c/other'
make[1]: *** [_modsubdir_other] Error 2
make[1]: Leaving directory
`/home/tmp/portage/portage/alsa-driver-0.9.5/work/alsa-driver-0.9.5/i2c'
make: *** [compile] Error 1

!!! ERROR: media-sound/alsa-driver-0.9.5 failed.
!!! Function src_compile, Line 66, Exitcode 2
!!! Parallel Make Failed


Reproducible: Always
Steps to Reproduce:
1.emerge -vu alsa-driver
2.
3.

Actual Results:  
see above

Expected Results:  
compiled successfully

I use SB Live 5.1 and the only USB component is a webcam.

porc2 root # emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r4 i686 Pentium III (Katmai)
GENTOO_MIRRORS="http://gentoo.linux.no http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/tmp/portage"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mad mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa
gdbm berkdb slang readline arts tetex aalib nas bonobo svga ggi tcltk java guile
X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde
motif opengl mozilla ldap cdr cjk clamav dga doc dvb dvd fbcon gd ipv6 jikes
lcms moznocompose moznoirc moznomail mozp3p rage128 ruby samba sse usb xface xml"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 1 Roger Hawley 2003-07-12 17:10:59 UTC
Instead of running emerge -vu alsa-driver I ran
env ALSA_CARDS='emu10k1' emerge -vu alsa-driver
and it compiled fine.
So,I guess, you can mark this resolved.
Comment 2 verytepid 2003-07-13 17:54:08 UTC
Hey,
    I was getting this error too. I was using kernel 2.4.20-ck6 ck-sources When I upgraded my kernel to 2.4.22_pre2-gss (gs-sources) the error did not occur.
Comment 3 verytepid 2003-07-14 10:20:29 UTC
Created attachment 14469 [details, diff]
I found this patch for the problem on the alsa-user list.
Comment 4 Arcady Genkin (RETIRED) gentoo-dev 2003-07-14 11:41:53 UTC
Yep, the patch was also posted by Takashi Iwai, but was not confirmed by the poster.  Has it helped anyone?
Comment 5 Jay Pfeifer (RETIRED) gentoo-dev 2003-07-14 12:09:14 UTC
this patch solves the compile problem with alsa-driver-0.9.5 and an SMP kernel. it does not cause issues not non-SMP systems.

I suppose alsa-driver-0.9.5-r1 is around the corner.

Jay
Comment 6 Arcady Genkin (RETIRED) gentoo-dev 2003-07-14 12:42:30 UTC
Yep, 0.9.5-r1 is in the CVS.  Please test.