How to compile an older kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

   I am using lfs which runs kernel 2.6.34, gcc 4.1.2 and ld 2.17. For
some purposes, I want to compile the 2.6.11 kernel source. After doing
some configuration, I did make which issues many warnings or error
messages. For some of them:

... ... ...

In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from arch/i386/kernel/asm-offsets.c:7:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for
field of type 'unsigned char[6]'
  CHK     include/asm-i386/asm_offsets.h
  UPD     include/asm-i386/asm_offsets.h
  CC      init/main.o

... ... ...

In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from arch/i386/kernel/process.c:17:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for
field of type 'unsigned char[6]'
{standard input}: Assembler messages:
{standard input}:909: Error: suffix or operands invalid for `mov'
{standard input}:910: Error: suffix or operands invalid for `mov'
{standard input}:1121: Error: suffix or operands invalid for `mov'
{standard input}:1122: Error: suffix or operands invalid for `mov'
{standard input}:1199: Error: suffix or operands invalid for `mov'
{standard input}:1200: Error: suffix or operands invalid for `mov'
{standard input}:1275: Error: suffix or operands invalid for `mov'
{standard input}:1276: Error: suffix or operands invalid for `mov'
{standard input}:1366: Error: suffix or operands invalid for `mov'
{standard input}:1378: Error: suffix or operands invalid for `mov'
make[1]: *** [arch/i386/kernel/process.o] Error 1
make: *** [arch/i386/kernel] Error 2

I think it is no problem to use newer compiler to compile older
kernels. But, it seems that this is not really the case. To compile
the 2.6.11 kernel, what do I need to adjust my system?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux