View previous topic :: View next topic |
Author |
Message |
Deek n00b
Joined: 09 Apr 2003 Posts: 13
|
Posted: Thu Nov 06, 2003 4:05 am Post subject: Fatal compiling error when emerging ALSA |
|
|
Ok, here's how it's going: I read everything on the ALSA how-to on the site, up to every little detail, so that I was making sure that I wasn't slipping on any keys or calling any insufficient commands. So now then, I call 'emerge alsa' with the necessary attributes (I think it was something of the following: env ALSA_CARDS='trident' emerga alsa. But that call isn't what's making the compilation fail, because I removed the attributes and just decided to do 'emerge alsa' by itself and it STILL failed) and it gives me this error, and promptly cancels the installation:
>>> emerge (1 of 1) media-sound/alsa-driver-0.9.8 to /
>>> md5 src_uri alsa-driver-0.9.8.tar.bz2
>>> Unpacking source...
>>> Unpacking alsa-driver-0.9.8.tar.bz2 to /var/tmp/portage/alsa-driver-0.9.8/work
* Applying makefile.patch... [ ok ]
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
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 i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
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 gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for kernel version... 2.4.20-gentoo-r8
checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)
Fatal error: Compiler type does not match
Decoded kernel compiler: type= version=
Decoded used compiler: type=gcc version=3.3.2
Please, send ./configure output to <alsa-devel@alsa-project.org>
!!! ERROR: media-sound/alsa-driver-0.9.8 failed.
!!! Function src_compile, Line 61, Exitcode 1
!!! ./configure failed
I don't know exactly what's going on, but I'm assuming that it cannot grab the compiler for my kernel, since I didn't actually manually compile the kernel myself, I just used genkernel, which I'm afraid is what's causing the problem. And I might add, this is the first time that I've actually ran into a problem like this with ALSA. All other times that I've installed it happend to complete successfully with no noticeable problems thereafter. Can anyone help me with this? |
|
Back to top |
|
|
xkjyeah n00b
Joined: 10 May 2003 Posts: 72
|
Posted: Thu Nov 06, 2003 10:07 am Post subject: |
|
|
Check whether you have a /usr/src/linux/include/linux/compile.h
If you don't, at /usr/src/linux, make menuconfig, quit immediately and make dep. Try to install alsa again. |
|
Back to top |
|
|
Astaroth33 n00b
Joined: 19 Oct 2003 Posts: 36
|
Posted: Sat Nov 08, 2003 1:31 am Post subject: |
|
|
xkjyeah wrote: | Check whether you have a /usr/src/linux/include/linux/compile.h
If you don't, at /usr/src/linux, make menuconfig, quit immediately and make dep. Try to install alsa again. |
I am having the same problem as the original poster here, and unfortunately this solution does not work for me. Under /usr/src/linuxinclude/linux/compile.h (where /usr/src/linux is a symlink to /usr/src/linux-2.4.20-gentoo-r8/), I have the following:
#define UTS_VERSION "#1 Fri Nov 7 16:04:56 PST 2003"
#define LINUX_COMPILE_TIME "16:04:56"
#define LINUX_COMPILE_BY "root"
#define LINUX_COMPILE_HOST "linuxbox"
#define LINUX_COMPILE_DOMAIN ""
#define LINUX_COMPILER ""
Any suggestions? Any further info I can provide? |
|
Back to top |
|
|
Astaroth33 n00b
Joined: 19 Oct 2003 Posts: 36
|
Posted: Sat Nov 08, 2003 4:08 am Post subject: |
|
|
I was able to get it working tonight! Though I suppose technically I cheated..
From the original error message:
Code: | checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)
Fatal error: Compiler type does not match
Decoded kernel compiler: type= version=
Decoded used compiler: type=gcc version=3.3.2 |
I changed the line in the file /usr/src/linuxinclude/linux/compile.h from
Code: | #define LINUX_COMPILER "" |
to
Code: | #define LINUX_COMPILER "type=gcc version=3.3.2" |
The question now is why this needed to be done manually, and what ramifications may this have in the future. (i.e. when gcc is updated) |
|
Back to top |
|
|
u2mike Apprentice
Joined: 06 Nov 2003 Posts: 209
|
Posted: Sat Nov 08, 2003 5:41 am Post subject: |
|
|
You could also just compile a new kernel, the latest kernel versions have alsa built in. |
|
Back to top |
|
|
echo6 Guru
Joined: 04 Jan 2003 Posts: 587
|
Posted: Sat Nov 08, 2003 8:53 am Post subject: |
|
|
Which kernel versions have alsa built in? I'm aware of 2.6 and I have that compiled in with alsa and wokring succesfully, except I can't get my 54g wifi in my laptop to work despite using the Linuxant driverloader thingy. I was always under the impression for kernels earlier than 2.6 that the best method was to use the alsa-driver separately? |
|
Back to top |
|
|
echo6 Guru
Joined: 04 Jan 2003 Posts: 587
|
Posted: Sat Nov 08, 2003 9:36 am Post subject: |
|
|
Thanks Astaroth33
Rolling back to an earlier version of gcc didn't work but doing your suggested editing did.
Code: | #define LINUX_COMPILER "type=gcc version=3.3.1 |
Not only that but it also fixed a problem I had trying to install the Linuxant Centrino/54g driverloader wrapper |
|
Back to top |
|
|
Astaroth33 n00b
Joined: 19 Oct 2003 Posts: 36
|
Posted: Sat Nov 08, 2003 11:11 am Post subject: |
|
|
echo6 wrote: | Thanks Astaroth33
Rolling back to an earlier version of gcc didn't work but doing your suggested editing did.
Code: | #define LINUX_COMPILER "type=gcc version=3.3.1 |
Not only that but it also fixed a problem I had trying to install the Linuxant Centrino/54g driverloader wrapper |
Actually, we can both thank xkjyeah, who provided the critical piece of information.. |
|
Back to top |
|
|
Rimers n00b
Joined: 21 Mar 2003 Posts: 18 Location: Denmark
|
Posted: Sun Nov 23, 2003 9:30 am Post subject: |
|
|
Nice, Big thanks to whoever brought up this solution.
finaly i can get sound and webcam stuff to work again |
|
Back to top |
|
|
scruff Tux's lil' helper
Joined: 28 Nov 2003 Posts: 142 Location: Boston, MA
|
Posted: Sat Nov 29, 2003 10:25 pm Post subject: |
|
|
'nother big thanks from me! I just started scouring the forums for a solution and by the 10th post or so I found this one. _________________
AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ @ oc'd to 2.3ghz
DFI Lanparty UltraD nForce4 SLI
2x1gb Geil PC4000
GeForce 7800GT
Sound Blaster Audigy Platinum
200gb Maxtor DiamondMax 10
74gb WD Raptor 10k RPM
|
|
Back to top |
|
|
|