gcc-4.1 emits .arch ev5 directives when using -mcpu less than ev56 which in turn breaks compiling of generic system type alpha kernels. See http://lists.debian.org/debian-alpha/2006/11/msg00014.html and http://gcc.gnu.org/ml/gcc/2005-07/msg00371.html threads for lots of details on this problem. I suggest simply changing mcpu=ev5 to mcpu=ev56 in arch/alpha/Makefile for generic system type to solve this.
Created attachment 116756 [details, diff] Suggested patch changing mcpu for generic system type
Hi, I've been working with kloeri on this as I'm soon to be an AT for alpha. I read through the posts mentioned in kloeri's comments. It seems that gcc4+ ignores the compile as (-Wa,m(arch)) when -mcpu=(arch) is used. Many times this would not be an issue due to greater than or equal arches. Alpha Kernel is done differently and compiles for a lesser arch than the assembler is looking for. As such, propose 2 diffs to fix this issue. One for linux-headers and another for sources.
Created attachment 116790 [details, diff] Alpha linux-headers diff to fix asm
Created attachment 116791 [details, diff] Alpha kernel sources asm patch
Comment on attachment 116756 [details, diff] Suggested patch changing mcpu for generic system type First patch obsoleted by new patches from Brian Evans.
vanilla-sources 2.6.21 fixes this issue
I searched at the Linus' tree and found the commit that probably fix this problem: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=88ed39b064575b4f42ecb737ec2daa66717de173;hp=7fc1a1abc1eca1278d6d37ec54b72005d15b5c1e I download it and the patch was successfully applied on 2.6.20.
alpha marked 2.6.21 stable so I assume we can close this now