Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172274 - media-sound/alsa-driver-1.0.14_rc3: fails to install, some patches cannot be applied with non-C locale?
Summary: media-sound/alsa-driver-1.0.14_rc3: fails to install, some patches cannot be ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-26 08:39 UTC by Alexander Skwar
Modified: 2007-06-28 10:05 UTC (History)
0 users

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


Attachments
media-sound:alsa-driver-1.0.14_rc3:20070326-083514.log (media-sound:alsa-driver-1.0.14_rc3:20070326-083514.log,33.87 KB, text/plain)
2007-03-26 08:39 UTC, Alexander Skwar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2007-03-26 08:39:19 UTC
Trying to install alsa-driver with these flags:
[ebuild     U ] media-sound/alsa-driver-1.0.14_rc3 [1.0.14_rc2_p3234] USE="-debug midi -oss" ALSA_CARDS="-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) hda-intel -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 

Fails:
[...]
patching file usx2yhwdeppcm.c
make[3]: Leaving directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/usb/usx2y'
make[2]: Leaving directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/usb'
make[2]: Entering directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/pcmcia'
make[3]: Entering directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/pcmcia/pdaudiocf'
make[3]: Leaving directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/pcmcia/pdaudiocf'
make[3]: Entering directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/pcmcia/vx'
make[3]: Leaving directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/pcmcia/vx'
make[2]: Leaving directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/pcmcia'
make[2]: Entering directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/misc'
make[2]: Leaving directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/misc'
make[1]: Leaving directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3'

!!! ERROR: media-sound/alsa-driver-1.0.14_rc3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4764:   Called src_compile
  alsa-driver-1.0.14_rc3.ebuild, line 142:   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 '/Gentoo/Portage/logs/media-sound:alsa-driver-1.0.14_rc3:20070326-083514.log'.


I suppose it fails, because some patches cannot be applied:

make[3]: Entering directory `/Gentoo/Portage/build/portage/media-sound/alsa-driver-1.0.14_rc3/work/alsa-driver-1.0.14rc3/drivers/mpu401'
copying file alsa-kernel/drivers/mpu401/mpu401.c
patching file mpu401.c
Hunk #1 succeeded at 30 (offset 2 lines).
Hunk #2 FAILED at 46.
Hunk #3 FAILED at 64.
Hunk #4 FAILED at 149.
Hunk #5 succeeded at 300 (offset 53 lines).
3 out of 5 hunks FAILED -- saving rejects to file mpu401.c.rej
make[3]: *** [mpu401.c] Fehler 1

I'll attach the build log.

askwar@winnb000488 ~ $ emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.19-suspend2-r3.rtr.02b-suspend i686)
=================================================================
System uname: 2.6.19-suspend2-r3.rtr.02b-suspend i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 26 Mar 2007 06: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-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
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.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
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="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="        http://gentoo.supp.name/        http://ftp.heanet.ie/pub/gentoo/        http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/        http://ftp.gentoo.or.kr/        http://ftp.uni-erlangen.de/pub/mirrors/gentoo/      http://distfiles.gentoo.org/ "
LANG="de_CH.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/Gentoo/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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc"
SYNC="rsync://winds06:10873/gentoo-portage"
USE="X acpi alsa berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dmi dri dvd dvdr eds emboss encode fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility libg++ libnotify mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcmcia pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x86 xcb xine xinerama xml xorg xv zlib" ALSA_CARDS="dummy hda-intel intel8x0 intel8x0m usb-audio usb-usx3y" 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="evdev keyboard mouse synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="dummy none nv nvidia vga vmware"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Skwar 2007-03-26 08:39:42 UTC
Created attachment 114462 [details]
media-sound:alsa-driver-1.0.14_rc3:20070326-083514.log
Comment 2 Alexander Skwar 2007-03-26 08:46:10 UTC
(In reply to comment #1)
> Created an attachment (id=114462) [edit]
> media-sound:alsa-driver-1.0.14_rc3:20070326-083514.log

Looking through the build log, I found some german messages, as I've got my locale set like so:

laskwar@winnb000488 ~ $ locale
LANG=de_CH.UTF-8
LC_CTYPE="de_CH.UTF-8"
LC_NUMERIC="de_CH.UTF-8"
LC_TIME="de_CH.UTF-8"
LC_COLLATE="de_CH.UTF-8"
LC_MONETARY="de_CH.UTF-8"
LC_MESSAGES="de_CH.UTF-8"
LC_PAPER="de_CH.UTF-8"
LC_NAME="de_CH.UTF-8"
LC_ADDRESS="de_CH.UTF-8"
LC_TELEPHONE="de_CH.UTF-8"
LC_MEASUREMENT="de_CH.UTF-8"
LC_IDENTIFICATION="de_CH.UTF-8"
LC_ALL=

When I set LC_ALL=C, I can build the stuff just fine. That's IMO no good :(

I do not know, if it matters or not: I'm using a suspend2 kernel.

Uhm.

Strange. I'm now able to build alsa driver even with LC_ALL=de_CH.UTF-8. Strange. But the "3 out of 5 hunks FAILED -- saving rejects to file mpu401.c.rej" is still there.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2007-06-28 09:48:28 UTC
First you say it does not build, then you say it does build...
If you have a reproducable build failure, please let me reopen and attach the output of:
emerge alsa-driver &> alsa-driver.buildlog

The build log that you have attached is unfortunately incomplete.
Comment 4 Alexander Skwar 2007-06-28 09:53:47 UTC
(In reply to comment #3)
> First you say it does not build, then you say it does build...

Yep. Confusing, isn't it? How can something like this happen?

> If you have a reproducable build failure, please let me reopen and attach the
> output of:
> emerge alsa-driver &> alsa-driver.buildlog

So the file which emerge creates itself is no good? I'll see if it still fails to compile. But anyway, the main reason I'm replying now is this:

> The build log that you have attached is unfortunately incomplete.

What do you mean with that? The attached file starts with " [32;01m*[0m Determining the location of the kernel source code" and ends with "!!! A complete build log is located at '/Gentoo/Portage/logs/media-sound:alsa-driver-1.0.14_rc3:20070326-083514.log'.". This is the file I attached and it contains a complete build log. Or what's missing?

Comment 5 Tony Vroon (RETIRED) gentoo-dev 2007-06-28 10:05:34 UTC
> Yep. Confusing, isn't it? How can something like this happen?

Unknown. But unless an ebuild fails in a consistent way that I can reproduce on my own system, it is not a bug that I can fix. Sorry.
However, I will be bumping the alsa-driver ebuild to 1.0.14 final soon, and in doing so the problem (if any exists after all) may get fixed in the process. So if you can not make this fail again, please wait for the new ebuild instead.

> This is the file I attached and it contains a complete build log. Or what's
> missing?

Nothing is missing, I just needed to fully wake up first. I was looking at the error-only log in your bugzilla comment while you did attach a full usable buildlog. My apologies.