Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165679 - hda-intel driver from media-sound/alsa-driver-1.0.14_rc2_p3234 does not compile against gentoo-sources-2.6.20
Summary: hda-intel driver from media-sound/alsa-driver-1.0.14_rc2_p3234 does not compi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo ALSA team
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard:
Keywords:
: 167878 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-06 21:56 UTC by Petteri Räty (RETIRED)
Modified: 2007-07-22 11:04 UTC (History)
6 users (show)

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


Attachments
emerge --info (emerge.info,3.12 KB, text/plain)
2007-02-06 21:57 UTC, Petteri Räty (RETIRED)
Details
media-sound:alsa-driver-1.0.14_rc1:20070209-223435.log (media-sound:alsa-driver-1.0.14_rc1:20070209-223435.log,31.70 KB, text/plain)
2007-02-09 22:38 UTC, Ioannis Aslanidis (RETIRED)
Details
successful `emerge alsa-headers alsa-drivers` with kernel 2.6.20-gentoo (alsa-success,71.62 KB, text/plain)
2007-02-17 18:24 UTC, Ioannis Aslanidis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-02-06 21:56:38 UTC
make[1]: Entering directory `/usr/src/linux-2.6.20-gentoo'
  CC [M]  /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/acore/memalloc.o
  CC [M]  /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_codec.o
In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/acore/memalloc.inc:13,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/acore/memalloc.c:1:
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h: In function 'snd_pci_orig_save_state':
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:1161: error: too many arguments to function 'pci_save_state'
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h: In function 'snd_pci_orig_restore_state':
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:1165: error: too many arguments to function 'pci_restore_state'
make[4]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/acore/memalloc.o] Error 1
make[3]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/acore] Error 2
make[3]: *** Waiting for unfinished jobs....
  CC [M]  /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_generic.o
In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:919,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/sound/driver.h:46,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_codec.c:22:
include/linux/pci.h:531: error: expected identifier or '(' before numeric constant
In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/sound/driver.h:46,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_codec.c:22:
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h: In function 'snd_pci_orig_save_state':
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:1161: error: too many arguments to function 'pci_save_state'
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h: In function 'snd_pci_orig_restore_state':
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:1165: error: too many arguments to function 'pci_restore_state'
In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:919,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/sound/driver.h:46,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:23,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_generic.c:2:
include/linux/pci.h:531: error: expected identifier or '(' before numeric constant
In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/sound/driver.h:46,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:23,
                 from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_generic.c:2:
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h: In function 'snd_pci_orig_save_state':
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:1161: error: too many arguments to function 'pci_save_state'
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h: In function 'snd_pci_orig_restore_state':
/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/include/adriver.h:1165: error: too many arguments to function 'pci_restore_state'
make[5]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_generic.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda/hda_codec.o] Error 1
make[4]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci/hda] Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234/pci] Error 2
make[2]: *** [_module_/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/work/alsa-driver-1.0.14rc2_p3234] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20-gentoo'
make: *** [compile] Error 2

!!! ERROR: media-sound/alsa-driver-1.0.14_rc2_p3234 failed.
Call stack:
  ebuild.sh, line 1613:   Called dyn_compile
  ebuild.sh, line 970:   Called qa_call 'src_compile'
  environment, line 4368:   Called src_compile
  alsa-driver-1.0.14_rc2_p3234.ebuild, line 140:   Called die

!!! Make Failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2_p3234/temp/build.log'.


pena betelgeuse # emerge -pv alsa-driver

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-sound/alsa-driver-1.0.14_rc2_p3234 [1.0.14_rc2-r1] USE="oss -debug* -midi" ALSA_CARDS="hda-intel -ad1816a -ad1848 -ad1848-lib -ad1889 -adlib -ali5451 -als100 -als300 -als4000 (-aoa) (-aoa-fabric-layout) (-aoa-onyx) (-aoa-soundbus) (-aoa-soundbus-i2s) (-aoa-tas) (-aoa-toonie) (-armaaci) -asihpi (-at91-soc) (-at91-soc-eti-b1-wm8731) -atiixp -atiixp-modem (-au1x00) -au8810 -au8820 -au8830 -azt2320 -azt3328 -bt87x -ca0106 -cmi8330 -cmipci -cs4231 -cs4231-lib -cs4232 -cs4236 -cs4281 -cs46xx -cs5535audio -darla20 -darla24 -dt019x -dummy -echo3g -emu10k1 -emu10k1x -ens1370 -ens1371 -es1688 -es18xx -es1938 -es1968 -es968 -fm801 -fm801-tea575x -gina20 -gina24 -gusclassic -gusextreme -gusmax (-harmony) -hdsp -hdspm -ice1712 -ice1724 -indigo -indigodj -indigoio -intel8x0 -intel8x0m -interwave -interwave-stb -korg1212 -layla20 -layla24 -loopback -maestro3 -mia -miro -mixart -mona -mpu401 -msnd-pinnacle -mtpav -mts64 -nm256 -opl3sa2 -opti92x-ad1848 -opti92x-cs4231 -opti93x -pc98-cs4232 -pcsp -pcxhr -pdaudiocf -pdplus -portman2x4 (-powermac) (-pxa2xx-i2sound) (-pxa2xx-soc) (-pxa2xx-soc-corgi) (-pxa2xx-soc-poodle) (-pxa2xx-soc-spitz) (-pxa2xx-soc-tosa) -riptide -rme32 -rme96 -rme9652 -s3c2410 -sa11xx-uda1341 -sb16 -sb8 -sbawe -seq-dummy -serial-u16550 -sgalaxy -soc -sonicvibes -sscape (-sun-amd7930) (-sun-cs4231) (-sun-dbri) -trident -usb-audio -usb-usx2y -via82xx -via82xx-modem -virmidi -vx222 -vxpocket -wavefront -ymfpci" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-02-06 21:57:49 UTC
Created attachment 109377 [details]
emerge --info
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-09 22:37:24 UTC
Confirmed. Slightly different error message. I tried with FEATURES="${FEATURES} -distcc" and MAKEOPTS="-j1".

Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 AMD Turion(tm) 64 X2 Mobile Technology TL-52
Gentoo Base System version 1.12.6
Timestamp of tree: Fri, 09 Feb 2007 19:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -msse3 -m3dnow -momit-leaf-frame-pointer -ftracer -fomit-frame-pointer -fno-ident -pipe -floop-optimize2 -fweb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -msse3 -m3dnow -momit-leaf-frame-pointer -ftracer -fomit-frame-pointer -fno-ident -pipe -floop-optimize2 -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache cvs distcc distlocks fixpackages metadata-transfer sandbox sfperms sign strict usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://mirror.gentoo.no/ http://gentoo.prz.rzeszow.pl"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-z,now"
LINGUAS="en es el"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout 45"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gr.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acpi alsa amuled asf audiofile automount background bash-completion bitmap-fonts bittorrent blender-game bluetooth bootsplash browserplugin bzip2 bzlib c++ caps cddb cdinstall cdio cdparanoia cdr cdrom chroot clamav cli cracklib crypt ctype cups curl cursors dga dio directfb dlloader dri dv dvd dvdr dvdread encode erandom escreen ethereal exif fam fastcgi fbcon fbdev fbsplash ffmpeg firefox flac flash fortran ftp gd gif gimp glib gmail gmailtimestamps gmp gphoto2 gpm graphviz gstreamer gtk gtk2 hal iconv icq imagemagick imlib2 ipv6 isdnlog java javascript jikes jpeg jpeg2k junit kde lame lcms libg++ live lm_sensors mad matroska md5sum memlimit midi mmap mmx mmx2 mmxext mng mp3 mpeg mpeg2 mplayer msn music nas ncurses network nforce2 nls nocd nptl nptlonly ntfs ogg openal opengl pam pcre perl php pic png posix ppds pppd python qt4 quicktime readline recode reflection rtc samba sdl session sms speex spl sse sse2 ssl svg svga syslog szip tcpd thunderbird tiff truetype truetype-fonts ttf type1-fonts udev unicode usb userlocales v4l v4l2 vcd videos vorbis win32codecs wma wmf x86 xcomposite xine xinerama xml xorg xpm xprint xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es el" USERLAND="GNU" VIDEO_CARDS="vesa radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-09 22:38:47 UTC
Created attachment 109673 [details]
media-sound:alsa-driver-1.0.14_rc1:20070209-223435.log
Comment 4 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-09 22:40:04 UTC
Just as a side note: The kernel-provided hda-intel driver does not work with new cards, whereas the media-sound/alsa-driver provided one does.
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-09 22:44:34 UTC
FEATURES="${FEATURES} -distcc" MAKEOPTS="-j1" CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" LDFLAGS="" emerge alsa-driver

It fails on the same spot.
Comment 6 Andrea Rizzolo 2007-02-11 18:01:10 UTC
I have the same compile error if I set in kernel config processor type to core2. so, to solve turn back to your old proc type. I know that this isnt a real solution..but as far as i know it seems to be the only way
Comment 7 Jesse Van Volkinburg 2007-02-12 19:47:05 UTC
Confirmed, the problem disappears when processor type is set to the older Pentium-4 setting.

emerge --info: http://rafb.net/p/byjHav79.html
Comment 8 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-12 20:40:22 UTC
(In reply to comment #7)
> Confirmed, the problem disappears when processor type is set to the older
> Pentium-4 setting.
> emerge --info: http://rafb.net/p/byjHav79.html

I guess my setting with Turion 64 dual core is the reason of breakage as well. Is it time to report this upstream?
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2007-02-12 20:47:18 UTC
(In reply to comment #8)
> 
> I guess my setting with Turion 64 dual core is the reason of breakage as well.
> Is it time to report this upstream?
> 

Yes as their HEAD has the same problem, can you do it?

Comment 10 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-12 21:30:47 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > 
> > I guess my setting with Turion 64 dual core is the reason of breakage as well.
> > Is it time to report this upstream?
> > 
> Yes as their HEAD has the same problem, can you do it?

Yessir!
Comment 11 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-12 21:54:17 UTC
Reported to the kernel guys: http://bugzilla.kernel.org/show_bug.cgi?id=7993
Comment 12 Petteri Räty (RETIRED) gentoo-dev 2007-02-12 22:04:26 UTC
(In reply to comment #11)
> Reported to the kernel guys: http://bugzilla.kernel.org/show_bug.cgi?id=7993
> 

I would say that https://bugtrack.alsa-project.org/alsa-bug would have been a better place to report this.
Comment 13 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-12 22:19:43 UTC
Probably you are right, but it's obvious that it's a problem with the headers as you said, that was introduced in this version of the kernel.
Comment 14 Petteri Räty (RETIRED) gentoo-dev 2007-02-13 06:40:40 UTC
(In reply to comment #13)
> Probably you are right, but it's obvious that it's a problem with the headers
> as you said, that was introduced in this version of the kernel.
> 

The kernel maintainers regularly break the internal interfaces as it's their stance that drivers should be inside the kernel.
Comment 15 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-17 18:02:30 UTC
media-sound/alsa-driver-1.0.14_rc2_p3234 seems to work fine now for me with kernel 2.6.20 using media-sound/alsa-headers-1.0.14_rc2_p3234
Comment 16 Petteri Räty (RETIRED) gentoo-dev 2007-02-17 18:11:56 UTC
(In reply to comment #15)
> media-sound/alsa-driver-1.0.14_rc2_p3234 seems to work fine now for me with
> kernel 2.6.20 using media-sound/alsa-headers-1.0.14_rc2_p3234
> 

Did you recently upgrade gcc to 4.1.2 because I can't reproduce this anymore either?
Comment 17 Petteri Räty (RETIRED) gentoo-dev 2007-02-17 18:13:49 UTC
(In reply to comment #16)
> 
> Did you recently upgrade gcc to 4.1.2 because I can't reproduce this anymore
> either?
> 

Or I my kernel symlink was changed by USE="symlink" to point to 2.6.19 sources...
Comment 18 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-17 18:24:03 UTC
Created attachment 110486 [details]
successful `emerge alsa-headers alsa-drivers` with kernel 2.6.20-gentoo
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2007-02-21 17:44:12 UTC
*** Bug 167878 has been marked as a duplicate of this bug. ***
Comment 20 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-02-21 22:34:09 UTC
Upstream way seems to works fine. rc2 for kernel 2.6.20 and rc1 for 2.6.19
Comment 21 Petteri Räty (RETIRED) gentoo-dev 2007-03-17 19:09:42 UTC
Reopening because this is currently not tracked in upstream alsa bug tracker and still present in our alsa-driver package.
Comment 22 Petteri Räty (RETIRED) gentoo-dev 2007-03-17 20:40:03 UTC
I fixed this with a patch in 1.0.14_rc3. It seems that alsa-driver configure.in has harcoded values for different processors and Core 2 was not in that list. Stupid upstream.
Comment 23 Christian Fuß 2007-07-22 11:04:14 UTC
(In reply to comment #18)
> Created an attachment (id=110486) [edit]
> successful `emerge alsa-headers alsa-drivers` with kernel 2.6.20-gentoo
> 

who can i get this version? i don't find that ebuild in Portage...