-march=penitum-m breaks alsa-libs, when i compiled with: CFLAGS="-march=pentium-m -O3 -fomit-frame-pointer -pipe" i was unable to launch artsd in KDE without getting an "inappropriate ioctl" error , after running the artsd command from the command line, i narrows the issue down to alsa-libs. Finally after noticing the last entry on this page: https://bugtrack.alsa-project.org/wiki/wikka.php?wakka=TroubleShooting I decided to test reducing the pentium-m, because i have a friend who is running fine with almost identical flags except not pentium-m. So ran this command: CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" emerge media-libs/alsa-lib" (pentium3 is apparently closest match to pentium-m) and artsd works like a champ. clearly until gcc fixes this (or alsa?) pentium-m should be filtered from the ebuild. thanks, Evan Teran
emerge --info Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) M processor 2.00GHz Gentoo Base System version 1.12.4 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 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=pentium-m -O3 -fomit-frame-pointer -pipe" 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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=pentium-m -O3 -fomit-frame-pointer -pipe -fno-ident" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" 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/xgl-coffee" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acpi alsa apache2 arts asf avi berkdb bitmap-fonts bzip2 cardbus chroot crypt css cups cvs debugger divx4linux dlloader doc dri dvd dvdread encode esd fat fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 hal imap imlib innodb ipv6 isdnlog java jpeg kde kdeenablefinal kerberos kqemu libg++ libwww mad mikmod mmx mmxext mng motif mozsvg mp3 mpeg mysql ncurses nls no-old-linux nptl nptlonly ntfs nvidia ogg opengl oss pam pcmcia pcre pdflib perl php png pnp python qt3 qt4 quicktime readline reflection samba sasl sdl session skey smime softmmu spell spl sse sse2 ssl sysfs tcltk tcpd tiff transcode truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis wifi win32codecs wxwindows xanim xcomposite xine xinerama xml xmms xorg xpm xprint xscreensaver xv xvid zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0) > -march=penitum-m breaks alsa-libs, when i compiled with: > > CFLAGS="-march=pentium-m -O3 -fomit-frame-pointer -pipe" > > i was unable to launch artsd in KDE without getting an "inappropriate ioctl" > error , after running the artsd command from the command line, i narrows the > issue down to alsa-libs. Finally after noticing the last entry on this page: > > https://bugtrack.alsa-project.org/wiki/wikka.php?wakka=TroubleShooting > > I decided to test reducing the pentium-m, because i have a friend who is > running fine with almost identical flags except not pentium-m. > > So ran this command: > > CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" emerge > media-libs/alsa-lib" > > (pentium3 is apparently closest match to pentium-m) > > and artsd works like a champ. clearly until gcc fixes this (or alsa?) pentium-m > should be filtered from the ebuild. > I think that i have the same problem, but i can't fix doing "emerge alsa-lib" and change -march=pentium3. I also try -march=i686 and i can't hear nothing. Root can execute aumix and change the mixer, but the other users can't do it. I can't use mplayer, etc.. MPlayer error: alsa-init: using device default alsa-lib: confmisc.c:670:(snd_func_card_driver) cannot find card '0' alsa-lib: conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device alsa-lib: confmisc.c:391:(snd_func_concat) error evaluating strings alsa-lib: conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: No such device alsa-lib: confmisc.c:1070:(snd_func_refer) error evaluating name alsa-lib: conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: No such device alsa-lib: conf.c:3947:(snd_config_expand) Evaluate error: No such device alsa-lib: pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM default alsa-init: playback open error: No such device Mi emerge --info: Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-suspend2-r6 i686) ================================================================= System uname: 2.6.17-suspend2-r6 i686 Intel(R) Pentium(R) M processor 1.73GHz Gentoo Base System version 1.12.4 Last Sync: Mon, 11 Sep 2006 20:00:01 +0000 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium-m -pipe" 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 /etc/texmf/web2c" CXXFLAGS="-O3 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="es" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acpi alsa berkdb bitmap-fonts bzip2 cdparanoia cdr cli crypt dga dlloader dri dvd dvdread elibc_glibc ffmpeg firefox gdbm glut gpm gstreamer gtk2 imagemagick input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kernel_linux libg++ linguas_es mine mmx mmxext mp3 ncurses nls nptl nptlonly ogg oggvorbis pam pcre pdf perl ppds python qt3 qt4 quicktime readline reflection ruby session spl sse sse2 ssl symlink tcpd theora truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_i810 vim vorbis wifi win32codecs xorg xtruetype-fonts xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Try with -O2 rather than -O3
Can you confirm this problem with GCC 4.1?
I can not replicate since the move to 4.1, so I would consider it resolved in that regard. Are there any profiles which are locked to the 3.x series? if so, it may still be an issue for those. Evan Teran
Considering closed by UPSTREAM (gcc's) unless this is reported again then :)