Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa-tools fails to compile on 2.6.3-mm1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
en_jones
n00b
n00b


Joined: 09 Feb 2004
Posts: 37
Location: California

PostPosted: Thu Feb 19, 2004 11:45 pm    Post subject: alsa-tools fails to compile on 2.6.3-mm1 Reply with quote

So today is my first venture into the realm of the 2.6 kernels. Decided to start off with the 2.6.3-mm1 kernel. All was going well, minor disutes in software RAID but got those figured out, but sounds has left me boggled. Read through the forums, though I should start by emerging alsa-libs and alsa-tools. Well, I've tried three different builds of alsa-tools and they all result in the following compilation error:

Code:
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.9.0... found.
checking for snd_ctl_open in -lasound... yes
checking for kernel header files... /lib/modules/2.6.3-mm1/build/include
checking for directory with ALSA kernel headers...  -I/lib/modules/2.6.3-mm1/build/include
configure: creating ./config.status
config.status: creating Makefile
source='sbiload.c' object='sbiload.o' libtool=no \
depfile='.deps/sbiload.Po' tmpdepfile='.deps/sbiload.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DPACKAGE=\"sbiload\" -DVERSION=\"0.3.0\" -DSTDC_HEADERS=1 -DHAVE_LIBASOUND=1  -I. -I.   -I/usr/include/fltk-1.1  -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -I/lib/modules/2.6.3-mm1/build/include  -I/lib/modules/2.6.3-mm1/build/include -c `test -f sbiload.c || echo './'`sbiload.c
In file included from /lib/modules/2.6.3-mm1/build/include/sound/ainstr_fm.h:29,
                 from sbiload.c:23:
/lib/modules/2.6.3-mm1/build/include/asm/byteorder.h:14: error: syntax error before "__u32"
/lib/modules/2.6.3-mm1/build/include/asm/byteorder.h:28: error: syntax error before "__u64"
In file included from /lib/modules/2.6.3-mm1/build/include/linux/byteorder/little_endian.h:11,
                 from /lib/modules/2.6.3-mm1/build/include/asm/byteorder.h:57,
                 from /lib/modules/2.6.3-mm1/build/include/sound/ainstr_fm.h:29,
                 from sbiload.c:23:
/lib/modules/2.6.3-mm1/build/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
/lib/modules/2.6.3-mm1/build/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
/lib/modules/2.6.3-mm1/build/include/linux/byteorder/swab.h:160: error: syntax error before "__u64"
make: *** [sbiload.o] Error 1

!!! ERROR: media-sound/alsa-tools-0.9.8 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! make failed


any ideas?
Back to top
View user's profile Send private message
_Nomad_
Guru
Guru


Joined: 11 Apr 2003
Posts: 547

PostPosted: Fri Feb 20, 2004 12:39 am    Post subject: Reply with quote

It's probably because your're using an older version of alsa-tools... try emerging alsa-tools-1.0.2

That'll probably do it...
Back to top
View user's profile Send private message
sirlethean
n00b
n00b


Joined: 20 Feb 2004
Posts: 5

PostPosted: Fri Feb 20, 2004 6:01 am    Post subject: Reply with quote

He's not alone. I get almost the same error with alsa-tools-1.0.2, so there's some other problem somewhere (you should be using 1.0.2 for the 2.6 kernel though):

Code:
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sbiload\" -DVERSION=\"0.3.0\" -DSTDC_HEADERS=1 -DHAVE_LIBASOUND=1  -I. -I.   -I/usr/include/fltk-1.1  -O3 -march=athlon-xp -funroll-loops -pipe -I/lib/modules/2.6.3-gentoo/build/include  -I/lib/modules/2.6.3-gentoo/build/include -MT sbiload.o -MD -MP -MF ".deps/sbiload.Tpo" \
  -c -o sbiload.o `test -f 'sbiload.c' || echo './'`sbiload.c; \
then mv -f ".deps/sbiload.Tpo" ".deps/sbiload.Po"; \
else rm -f ".deps/sbiload.Tpo"; exit 1; \
fi
In file included from /lib/modules/2.6.3-gentoo/build/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:65,
                 from /lib/modules/2.6.3-gentoo/build/include/sound/ainstr_fm.h:29,
                 from sbiload.c:23:
/lib/modules/2.6.3-gentoo/build/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
/lib/modules/2.6.3-gentoo/build/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
/lib/modules/2.6.3-gentoo/build/include/linux/byteorder/swab.h:160: error: syntax error before "__u64"
make: *** [sbiload.o] Error 1

!!! ERROR: media-sound/alsa-tools-1.0.2 failed.
!!! Function src_compile, Line 61, Exitcode 2
!!! make failed
Back to top
View user's profile Send private message
en_jones
n00b
n00b


Joined: 09 Feb 2004
Posts: 37
Location: California

PostPosted: Fri Feb 20, 2004 8:39 am    Post subject: Reply with quote

yeah, i tried alsa-tools-1.0.2 first, that didn't work so i tried the previous 2 versions, similar errors in all of them. No problems with alsa-utils or alsa-libs of versions 1.0.2.
Back to top
View user's profile Send private message
jourbans
n00b
n00b


Joined: 16 Jan 2004
Posts: 34
Location: Chicago, IL, USA

PostPosted: Fri Feb 20, 2004 8:47 pm    Post subject: Reply with quote

I can confirm the same behavior on gentoo-dev-sources-2.6.3.

Looks like something with the 2.6.3 kernel after all of the ALSA updates they added. I can't even get my SB Live! to work, after it was working just fine under 2.6.2. I am not pleased...

It appears a bug report has already been submitted: http://bugs.gentoo.org/show_bug.cgi?id=42087
Back to top
View user's profile Send private message
enderst
n00b
n00b


Joined: 31 Jul 2003
Posts: 10

PostPosted: Sun Feb 29, 2004 6:00 pm    Post subject: Reply with quote

i have the same problem, same errors as in the code blocks in this thread.
kernel = gentoo-dev-sources-2.6.3.r2
Back to top
View user's profile Send private message
Fissile
Guru
Guru


Joined: 23 Nov 2003
Posts: 470

PostPosted: Sun Feb 29, 2004 6:17 pm    Post subject: Reply with quote

Hey i heard somewhere that 2.6 would come with alsa fully integrated or something, was that just a myth?
_________________
The Only Thing Necessary for The Triumph of evil is for Good Men To do Nothing!...
Back to top
View user's profile Send private message
Tii
l33t
l33t


Joined: 02 Jan 2004
Posts: 733

PostPosted: Sun Feb 29, 2004 6:27 pm    Post subject: Reply with quote

Fissile wrote:
Hey i heard somewhere that 2.6 would come with alsa fully integrated or something, was that just a myth?

The driver is integrated to the kernel.
Back to top
View user's profile Send private message
Fissile
Guru
Guru


Joined: 23 Nov 2003
Posts: 470

PostPosted: Sun Feb 29, 2004 6:38 pm    Post subject: Reply with quote

What exactly does that mean? can u like choose to install it as a module when u compling your kernel manually? If that is the case, do we still need to dl the alsa ebuild from portage. And if we do why is that?
_________________
The Only Thing Necessary for The Triumph of evil is for Good Men To do Nothing!...
Back to top
View user's profile Send private message
_Nomad_
Guru
Guru


Joined: 11 Apr 2003
Posts: 547

PostPosted: Sun Feb 29, 2004 8:26 pm    Post subject: Reply with quote

Fissile wrote:
What exactly does that mean? can u like choose to install it as a module when u compling your kernel manually? If that is the case, do we still need to dl the alsa ebuild from portage. And if we do why is that?


No... you don't have to download the alsa packages manually any more, they have become an option inside the kernel configuration... Basically that means that the alsa code has been merged with the kernel code so you can't really get one without the other anymore...
Back to top
View user's profile Send private message
bigsmoke
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2003
Posts: 92
Location: The city of Groningen in The Netherlands

PostPosted: Sun Feb 29, 2004 8:44 pm    Post subject: Same here Reply with quote

jourbans wrote:
I can confirm the same behavior on gentoo-dev-sources-2.6.3.

Looks like something with the 2.6.3 kernel after all of the ALSA updates they added. I can't even get my SB Live! to work, after it was working just fine under 2.6.2. I am not pleased...


Same error compiling also-tools here, but my SB Live works quitte well without the alsa-tools package ...
_________________
Gentoo's kind community
has build up an immunity
for the kind of rash
that makes others bash(1)
the newer GNU/Linux user,
a man(1) that is inapt
to flawlessly adapt,
and therefore called a luser.
Back to top
View user's profile Send private message
Admiral LSD
Guru
Guru


Joined: 27 Jun 2003
Posts: 522
Location: Northam, W.A., Australia

PostPosted: Mon Mar 01, 2004 1:27 pm    Post subject: Reply with quote

I'm getting a similar error here with the new alsa-tools 1.0.3 package as well (on gentoo-dev-sources-2.6.3-r1), could a new set of ALSA drivers (though g-d-s already has fairly recent CVS snaphosts) be needed here too?
_________________
Wasurenaide...
...watashi ga iru koto o.
Itsudatte soba ni iru yo.

Registered Linux user #319839
Back to top
View user's profile Send private message
Eckzow
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2004
Posts: 93

PostPosted: Tue Mar 02, 2004 3:25 am    Post subject: Reply with quote

Ditto the problems as Admiral LSD`

I'll try again after getting a hold of gentoo-dev-sources-2.6.3-r2 but that's gonna be a little while...
Back to top
View user's profile Send private message
kmhanson
n00b
n00b


Joined: 09 Dec 2003
Posts: 2
Location: Olathe, KS

PostPosted: Tue Mar 02, 2004 5:04 am    Post subject: Reply with quote

Same problem with 2.6.3-gentoo-r2.
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Tue Mar 02, 2004 5:48 am    Post subject: Reply with quote

There's a bug on this. It's doing the same for me on 2.6.3-mm2 and 2.6.4-rc1-mm1.

[Edit] They've assigned it to a new bug on gentoo bugzilla and have sent it upstream to alsa.


Last edited by ronmon on Tue Mar 02, 2004 3:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
shift
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2004
Posts: 146
Location: Vancouver, Canada

PostPosted: Tue Mar 02, 2004 8:49 am    Post subject: Reply with quote

Do you really need alsa-tools? I don't have it and audio is working fine. The other alsa stuff compiled fine though (v1.0.2).
Back to top
View user's profile Send private message
Fissile
Guru
Guru


Joined: 23 Nov 2003
Posts: 470

PostPosted: Tue Mar 02, 2004 5:52 pm    Post subject: Reply with quote

I think it depends if u have 2.6 or 2.4 or wheter or not u have the alsa option selected when compilling your kernel...
_________________
The Only Thing Necessary for The Triumph of evil is for Good Men To do Nothing!...
Back to top
View user's profile Send private message
Eckzow
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2004
Posts: 93

PostPosted: Tue Mar 02, 2004 10:57 pm    Post subject: Reply with quote

I have alsa compiled in, and it also fails with it compiled as a module. alsamixer is my buddy :/
_________________
<Insert almost-funny witticism here>
Back to top
View user's profile Send private message
Qanii
n00b
n00b


Joined: 29 Aug 2003
Posts: 10

PostPosted: Wed Mar 03, 2004 8:13 am    Post subject: Reply with quote

It seems that ALSA-Tools is a package of many tools including "ac3dec", "as10k1", etc etc...

And program "sbiload" which is one of it, seems to hv some compiling problem with kernel 2.6.x.

u can emerge alsa-tools(1.0.3) without this "sbiload" program with the code below :

Code:

ALSA_TOOLS="ac3dec as10k1 envy24control hdspconf hdsploader hdspmixer \
 mixartloader rmedigicontrol sb16_csp sscape_ctl us428control usx2yloader vxloader" \
ACCEPT_KEYWORDS="~x86" emerge alsa-tools


It install all the programs included in Alsa-tools, except "sbiload"...

And for "sbiload"...

Let's wait until the bug should be fixed... :wink:
_________________
Do It!
Think After ....
Back to top
View user's profile Send private message
evilshenaniganz
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 101
Location: /dev/random

PostPosted: Sat Mar 06, 2004 2:39 am    Post subject: Reply with quote

Quote:
It seems that ALSA-Tools is a package of many tools including "ac3dec", "as10k1", etc etc...

And program "sbiload" which is one of it, seems to hv some compiling problem with kernel 2.6.x.

u can emerge alsa-tools(1.0.3) without this "sbiload" program with the code below :


Code:



ALSA_TOOLS="ac3dec as10k1 envy24control hdspconf hdsploader hdspmixer \
mixartloader rmedigicontrol sb16_csp sscape_ctl us428control usx2yloader vxloader" \
ACCEPT_KEYWORDS="~x86" emerge alsa-tools



It install all the programs included in Alsa-tools, except "sbiload"...

And for "sbiload"...

Let's wait until the bug should be fixed...


I've been having the same problems that have been mentioned in this thread and Qanii's solution worked without incident for me.:D btw, i'm running 2.6.3 (no revisions that i can see, /usr/src says linux-2.6.3 that's it)[/b]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum