Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117801

Summary: emerge alsa-driver on VIA C3-2 processor fails with compile error
Product: Gentoo Linux Reporter: Paul Estes <gentoo>
Component: [OLD] DevelopmentAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal CC: adfaber, andreas.hoehmann, check, ddickey, insania2016, kparent, petri.rokka, trivthebofh
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paul Estes 2006-01-04 16:01:42 UTC
When trying to emerge alsa-driver on a machine with a VIA Nehemiah processor (C3-2), the emerge fails with a compile error. Kernel version is 2.6.14-ck7.

make[1]: Entering directory `/usr/src/linux-2.6.14-ck7'
  CC [M]  /var/tmp/portage/alsa-driver-1.0.10/work/alsa-driver-1.0.10/acore/memalloc.o
  CC [M]  /var/tmp/portage/alsa-driver-1.0.10/work/alsa-driver-1.0.10/acore/sgbuf.o
In file included from /var/tmp/portage/alsa-driver-1.0.10/work/alsa-driver-1.0.10/include/adriver.h:770,
                 from /var/tmp/portage/alsa-driver-1.0.10/work/alsa-driver-1.0.10/acore/sgbuf.c:13:
include/linux/pci.h:392: error: parse error before numeric constant
make[4]: *** [/var/tmp/portage/alsa-driver-1.0.10/work/alsa-driver-1.0.10/acore/sgbuf.o] Error 1
make[3]: *** [/var/tmp/portage/alsa-driver-1.0.10/work/alsa-driver-1.0.10/acore] Error 2
make[2]: *** [_module_/var/tmp/portage/alsa-driver-1.0.10/work/alsa-driver-1.0.10] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.14-ck7'
make: *** [compile] Error 2

!!! ERROR: media-sound/alsa-driver-1.0.10 failed.
!!! Function src_compile, Line 95, Exitcode 2
!!! Make Failed
!!! If you need support, post the topmost build error, NOT this status message.

------------------------

# emerge --info
Gentoo Base System version 1.6.13
Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-ck7 i686)
=================================================================
System uname: 2.6.14-ck7 i686 VIA Nehemiah
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=c3-2 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
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/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=c3-2 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cdrom cle266 crypt cups dri dvd eds emboss encode expat fam fbcon foomaticdb fortran gdbm gif glut glx gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde lcms libg++ libwww lirc mad mikmod mng motif mp3 mpeg mpeg2 mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell ssl svga tcpd tiff transcode truetype truetype-fonts type1-fonts udev unichrome vorbis x86 xml2 xmms xv xvid xvmc zlib video_cards_via userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-05 00:07:32 UTC

*** This bug has been marked as a duplicate of 105519 ***
Comment 2 Paul Estes 2006-01-05 09:17:27 UTC
This is not the same bug. The error may be the same, but it is not fixed. This issue still occurs on alsa-driver 1.0.10, while the other bug was resolved by 1.0.10-rc2.

This bug is specific to the C3-2 processor type.
Comment 3 Marc Morrisette 2006-01-13 17:42:14 UTC
I can confirm this...I have 3 Gentoo systems.  One uses -march=k6-3, one uses -march=athlon-xp, one uses -march=c3-2.  The c3-2 system has this exact issue.  This has only been the case since the toolchain was compiled with -march=c3-2, when I updated gcc from 3.3.6 to 3.4.4.  gcc 3.3.6 did not support -march=c3-2, so I had to use -march=i686, alsa-driver worked then.
Comment 4 Marc Morrisette 2006-01-29 14:52:24 UTC
It looks like this bug only shows up on the c3-2 architecture with gcc-3.4.  I'm about to switch my c3-2 machine to vanilla-sources-2.6.15.1.  I'm going to try alsa-driver again after that, on the remote chance that it may resolve the issue.  I'll post results here once I get a chance (the c3-2 is my server and I probably won't be able to switch to the new kernel until Monday night).
Comment 5 Marc Morrisette 2006-02-02 13:04:51 UTC
I just confirmed that the same issue exists with vanilla-sources-2.6.15.1.  alsa-driver will not compile with gcc-3.4.4 on a c3-2 architecture.
Comment 6 Petri Rokka 2006-02-06 15:08:01 UTC
(In reply to comment #5)
> I just confirmed that the same issue exists with vanilla-sources-2.6.15.1. 
> alsa-driver will not compile with gcc-3.4.4 on a c3-2 architecture.
> 

I can confirm this bug too.

-New installation
-Gentoo 2005.1-r1 i686 & latest gentoo-sources
-Gcc 3.3.x
-Kernel is using C3-2 processor
-Latest alsa from portage

With default kernel of 2005.1-r1 (2.6.12-x) alsa-driver compiles fine. :-/
Comment 7 Dan A. Dickey 2006-03-02 14:11:01 UTC
Please excuse me for my ignorance - but isn't the alsa driver
part of the 2.6 kernel now?
I thought the actual alsa-driver ebuild was for 2.4.
BTW - I have a Nehemiah as well, and when I do an lsmod,
I see all sorts of sound modules loaded.  I just need to
dig a set of speakers out of the base to see if the sound
actually works.
Comment 8 Marc Morrisette 2006-03-11 19:19:49 UTC
The alsa-driver-1.0.10 ebuild is supposed to work with kernel 2.6.  If you use the in-kernel ones you're getting an older version.  According to the documentation, the post-1.0 alsa-driver ebuilds are supposed to work fine with 2.6.  The 2.4 ones that didn't work with 2.6 are an older version of alsa-driver pre-1.0.
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-21 07:50:14 UTC
*** Bug 127088 has been marked as a duplicate of this bug. ***
Comment 10 Kevin Parent 2006-03-25 10:34:30 UTC
I have the same compilation error message but I'm using -march=athlon-xp and kernel
2.6.16-ck1.  alsa-1.0.10-r2 compiles and works successfully with 2.6.15-ck7

# emerge info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-ck7 i686)
=================================================================
System uname: 2.6.15-ck7 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -msse2 -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/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -msse2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://tesla/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa apache2 apm audiofile avi berkdb bitmap-fonts bonobo bzip2 cdparanoia cdr cli crypt ctype cups curl dba dga dri dts dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam fame fastbuild ffmpeg flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imap imlib irda irmc ithreads java jpeg lcms ldap libg++ libwww lirc lzo mad maildir memlimit mhash mikmod mjpeg mmx mmxext mng motif mozilla mp3 mpeg mysql mythtv ncurses network nls nptl nvidia oav offensive ogg opengl oss pam pcre pdf pdflib perl php png posix ppds pthreads python qt quicktime readline recode rhythmbox samba sdl session simplexml slang sndfile soap sockets spell spl sse sse2 ssl svga tcpd tiff tokenizer transcode truetype truetype-fonts type1-fonts udev usb v4l v4l2 vcd vorbis wifi win32codecs xine xml xml2 xmms xsl xv xvid xvmc yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 11 Rasmus Faber 2006-03-29 05:53:36 UTC
I believe the problem lies in configure failing to detect the Nehemiah-chip.
I have submitted a patch upstream (https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1977).
Comment 12 Dan A. Dickey 2006-04-11 14:43:48 UTC
It looks like this problem is fixed in at least the alsa-driver-1.0.11_rc5 version.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-04-12 02:19:57 UTC
*** Bug 129667 has been marked as a duplicate of this bug. ***
Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-18 11:09:29 UTC
*** Bug 122564 has been marked as a duplicate of this bug. ***
Comment 15 Markus 2006-05-13 10:36:30 UTC
Same here on AMD64:
1.0.10-r2 and 2.6.15-r7 works
1.0.10-r2 and 2.6.16-r7 does NOT work
~1.0.11 and 2.6.16-r7 works
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2006-08-10 00:39:53 UTC
1.0.11 stable, closing.
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-08-10 00:40:04 UTC
*** Bug 143405 has been marked as a duplicate of this bug. ***