Problem booting compiled kernel

I have on my asus laptop newly installed 11.0, but this problem occured also on my workplace machine running ubuntu.
Similarity is: Core duo processor

On both machines, I have set and recompiled kernel.
compile parameters was -O2 -pipe
aditionally, on ubuntu (gcc 4.1) I have added -march=prescott
here, I added -mtune=core2

What happens on both:
Same entries in GRUB, absolutely the same, except one kernel has suffix -default and my compiled has -beli

On both machines, default kernel loads with no problem and my own compiled writes:
error 23: error while parsing number

I suspect there is some problem with compiling on core duo processors, since distros are different and facing same problem.

Anyone knows how to handle this?

Comment:
I use 10.3 on my home desktop, with Athlon and I havent had ANY problems with compiling and booting kernel

Thanks!

Post the contents of your /boot/grub/menu.lst please. Seems that parsing that file gives errors

I cant due to technical and political problems.

however, as I said, booting lines are absolutely the same for my compiled and working default kernel, only difference is vmlinuz-2.6…-default (working one) and vmlinuz-2.6…-beli

so, only difference is a vmlinuz filename (initrd and sysmap…)

Also, as I mentioned, same problems occurs at my work, with ubuntu. I am suspecting on a compiler and/or compilation flags.
If you or anyone knows what flags should I use for core-duo or where problem lies, I would be very much obliged.

ah yes…
I did

make
make modules_install
make install

don’t mess with -march and -mtune when compiling a kernel! if you choose the right CPU in the kernel configuration, it will pick the right options for your CPU during compilation

Political reasons prevent you from posting your grub configuration? Are you keeping state secrets in it? :wink:

however, as I said, booting lines are absolutely the same for my compiled and working default kernel, only difference is vmlinuz-2.6…-default (working one) and vmlinuz-2.6…-beli

so, only difference is a vmlinuz filename (initrd and sysmap…)

Also, as I mentioned, same problems occurs at my work, with ubuntu. I am suspecting on a compiler and/or compilation flags.
If you or anyone knows what flags should I use for core-duo or where problem lies, I would be very much obliged.

The “error 23: error while parsing number” does suggest that the problem is with grub, which can’t find the correct bootdisk though. I guess your GCC flags have nothing to do with that. Although you could just compile the kernel again without any of the extra compiler flags if you think that is the problem.

been there, done that…

OK, I will try messing with the flags and kernel processor setup… this thing happened only on core duo… ****…

thanks