compiling alsa on a k6-2

compiling alsa on a k6-2

Post by rolf deen » Thu, 08 May 2003 16:09:17



Hi there,

I've done a linuxfromscratch installation and now i'm trying to
install some packages from the "beyond-linuxfromscratch" book. At the
moment it's alsa's turn. However, it's not cooperating. When compiling
alsa-driver-0.9.1 i get the following:
../../alsa-kernel/pci/trident/trident_memory.c:468: Internal
compilation error in extract_insn, at recog.c:2148

I've been checking the web and the problem seems to be my compiler
(gcc 3.2) in combination with my compiler-flags (CFLAGS=-O3
-march=k6-2, CXXFLAGS=-O3 -march=k6-2).
So i've tried to alter them. First "-O2 -march=k6-2" then "-O2
-march=i586 -mcpu=i686 (looks weird but should work). But when
compiling i still see strings of  "-O2 -march=k6"
How come alsa doesn't use my "new" compiler-flags?

Thanks,

Rolf Deenen

 
 
 

compiling alsa on a k6-2

Post by rolf deen » Thu, 08 May 2003 23:44:36


Sorry, found it allready. This one is for people who got simular
problems and stumble on this thread.

Using "grep" i searched for "k6" in the alsa-driver directory en found
"configure" end "configure.in". In "configure" i found then the
following:

k6)
  if $CC -march=k6 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then
    c_opts="march=k6"
  else
    c_opts="march=i586"
  fi

There i simply changed "-march=k6" in "-march=i586" so it will allways
optimize for an i586 (which is appearently 100% compatible with a amd
k6-2"

Good luck!


> Hi there,

> I've done a linuxfromscratch installation and now i'm trying to
> install some packages from the "beyond-linuxfromscratch" book. At the
> moment it's alsa's turn. However, it's not cooperating. When compiling
> alsa-driver-0.9.1 i get the following:
> ../../alsa-kernel/pci/trident/trident_memory.c:468: Internal
> compilation error in extract_insn, at recog.c:2148

> I've been checking the web and the problem seems to be my compiler
> (gcc 3.2) in combination with my compiler-flags (CFLAGS=-O3
> -march=k6-2, CXXFLAGS=-O3 -march=k6-2).
> So i've tried to alter them. First "-O2 -march=k6-2" then "-O2
> -march=i586 -mcpu=i686 (looks weird but should work). But when
> compiling i still see strings of  "-O2 -march=k6"
> How come alsa doesn't use my "new" compiler-flags?

> Thanks,

> Rolf Deenen