Re: PROBLEM: __buggy_fxsr_alignment error 2.4.1 and 2.4.2

From: Marc D. Williams (
Date: Mon Feb 26 2001 - 01:49:17 EST

In fa.linux.kernel, you wrote:
>init/main.o(.text.init+0x63): undefined reference to `__buggy_fxsr_alignment'
>I don't recall this error in 2.4.0, but it is present in 2.4.1 and was not
>fixed in 2.4.2.
>Gnu C pgcc-
>Fix: Comment out line 217 in include/asm-i386/bugs.h
>/* __buggy_fxsr_alignment(); */
>It compiles after this change.
[I'm not on the mailing list but do read it via usenet, can't post though]

As pointed out by Doug Ledford your kernel will surely oops when you
reboot. I have an Athlon and use AthlonGCC (pgcc-2.95.3 with patches).
I didn't want to go back to regular gcc but I fixed my problem anyway
and so far kernels from 2.4.1 to 2.4.2 run just fine.

The first fix was uncommenting in bugs.h as you did.
Not sure if it was proper but I did the whole section. :-)
I may retry it with just the last part commented out.

            /* if (offsetof(struct task_struct, thread.i387.fxsave) & 15) {
                extern void __buggy_fxsr_alignment(void);
        } */
The problem is this fxsr thing. I found the following in
arch/i386/kernel/setup.c (line 150):

static int disable_x86_fxsr __initdata = 0;

I changed the 0 to 1 (to disable x86_fxsr) and so far the kernels
have given me no problems.

Since apparently we're using buggy compilers no doubt this workaround
may be frowned upon. At least for me it works.


Marc D. Williams -- DOS Internet & Tandy 1000 -- Win3.x Makeover - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:10 EST