Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46901 - alsamixer: function snd_mixer_load failed: Inappropriate ioctl for device (Solution regards CFLAGS)
Summary: alsamixer: function snd_mixer_load failed: Inappropriate ioctl for device (So...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-05 16:04 UTC by Peter Clifton
Modified: 2004-04-10 08:23 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 Peter Clifton 2004-04-05 16:04:41 UTC
Using alsa version 1.0.3, and kernel version 2.6.3-gentoo-r1. (With AND without alsa-driver emerged) I encountered the error alsamixer: function snd_mixer_load failed: Inappropriate ioctl for device, when starting the alsa mixer. I encountered a very similar message when /etc/init.d/alsasound ran to load the modules.

I have found reference to the solution on the internet,

http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg09999.html

and will copy the gist, that this person, with a stock 2.4.22 kernel found:

FAULT OCCURS: CFLAGS='-O2 -pipe -march=i686 -fomit-frame-pointer -malign-double'
ALSA WORKS FINE: CFLAGS='-O2 -pipe -march=i686'

I had also recently changed my CFLAGS, and I found that

FAULT OCCURS: CFLAGS="-march=athlon-xp -O3 -ffast-math -malign-double -funroll-loops -pipe -fomit-frame-pointer -msse -mfpmath=sse,387"

ALSA WORKS: CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe"


I'm not to up on the inner workings of portage, but perhaps there is some way to lockout the problematic CFLAGS / make them compile properly / warn about them in the ebuild.

I believe I also encountered the same problem when I tried alsa-*-0.9.8 with my above dodgy CFLAGS.


Reproducible: Always
Steps to Reproduce:
1. Urm, just does it when you run alsamixer or /etc/init.d/alsasound start
2. Would have to use the dodgy CFLAGS when compiling alsa though.


Actual Results:  
See above, sorry not to be more helpful


Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -ffast-math -malign-double -funroll-loops -pipe
-fomit-frame-pointer -msse -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -ffast-math -malign-double -funroll-loops -pipe
-fomit-frame-pointer -msse -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/
http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.linux.ee/pub/gentoo/distfiles/
ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.mirror.sdv.fr
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.rhnet.is/pub/gentoo/
ftp://ftp.rhnet.is/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/
ftp://ftp.heanet.ie/pub/gentoo/
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-gnome-current"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb cdr crypt cups dvd encode esd foomaticdb
gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx
motif mozilla mpeg ncurses nls nntp oggvorbis opengl pam pdflib perl png python
qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml
xml2 xmms xv zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-06 11:04:57 UTC
ok.  I committed an updated ebuild which filters out -fomit-frame-pointer when -malign-double is used.  Please try this out.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-10 08:23:59 UTC
fixed