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

Compiling kernel 2.4.21 on Testing



        Hi again,

        I'm trying to compile kernel 2.4.21. Here is the the output:

make[1]: Leaving directory `/usr/src/kernel-source-2.4.21'
/usr/bin/make -f ./debian/rules dummy_do_dep
make[1]: Entering directory `/usr/src/kernel-source-2.4.21'
/usr/bin/make    \
                                 ARCH=sparc  dep
make[2]: Entering directory `/usr/src/kernel-source-2.4.21'
/usr/bin/make -C arch/sparc64/kernel check_asm
make[3]: Entering directory 
`/usr/src/kernel-source-2.4.21/arch/sparc64/kernel'
gcc -E -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -P tmp.c -o 
tmp.i
/bin/sh ./check_asm.sh -data task tmp.i check_asm_data.c
/bin/sh ./check_asm.sh -data mm tmp.i check_asm_data.c
/bin/sh ./check_asm.sh -data thread tmp.i check_asm_data.c
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -m64 
-mcmodel=medlow -ffixed-g4 -S -o check_asm_data.s check_asm_data.c
/bin/sh ./check_asm.sh -ints check_asm_data.s check_asm.c
/bin/sh ./check_asm.sh -printf task tmp.i check_asm.c
/bin/sh ./check_asm.sh -printf mm tmp.i check_asm.c
/bin/sh ./check_asm.sh -printf thread tmp.i check_asm.c
gcc -o check_asm check_asm.c
check_asm.c:312: error: field name not in record or union initializer
check_asm.c:312: error: (near initialization for `check_asm_data')
check_asm.c:313: warning: initialization makes integer from pointer 
without a cast
make[3]: *** [check_asm] Error 1
make[3]: Leaving directory 
`/usr/src/kernel-source-2.4.21/arch/sparc64/kernel'
make[2]: *** [check_asm] Error 2
make[2]: Leaving directory `/usr/src/kernel-source-2.4.21'
make[1]: *** [dummy_do_dep] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.21'
make: *** [stamp-kernel-configure] Error 2


        The check_asm.c content between 300 and 320 lines:

    300         56,
    301         1112,
    302         8,
    303         1120,
    304         8,
    305         1128,
    306         8,
    307         1136,
    308         8,
    309         1144,
    310         8,
    311         1152,
    312         .section        ".note.GNU-stack"
    313 };
    314 int main(void) {
    315 int i = 0;
    316 printf ("#define AOFF_task_state        0x%08x\n", 
check_asm_data[i++]);         printf("#define ASIZ_task_state 0x%08x\n", 
check_asm_data[i++]);
    317 printf ("#define AOFF_task_flags        0x%08x\n", 
check_asm_data[i++]);         printf("#define ASIZ_task_flags 0x%08x\n", 
check_asm_data[i++]);
    318 printf ("#define AOFF_task_sigpending   0x%08x\n", 
check_asm_data[i++]);         printf("#define ASIZ_task_sigpending 
0x%08x\n", check_asm_data[i++]);
    319 printf ("#define AOFF_task_addr_limit   0x%08x\n", 
check_asm_data[i++]);         printf("#define ASIZ_task_addr_limit 
0x%08x\n", check_asm_data[i++]);
    320 printf ("#define AOFF_task_exec_domain  0x%08x\n", 
check_asm_data[i++]);         printf("#define ASIZ_task_exec_domain 
0x%08x\n", check_asm_data[i++]);


        I don´t have a clue what I can do to compile this kernel. Could 
someone help me?

        Very thanks.

=============================
Carlos Emir Mantovani Macedo
Suporte Técnico
Tecnologia Bancária S.A.
+55 11 3244-8400 R. 8817
cmacedo@tecban.com.br
http://www.tecban.com.br
=============================

As informações existentes nessa mensagem são para uso restrito, sendo seu 
sigilo protegido por lei. Caso não seja destinatário, saiba que leitura, 
divulgação ou cópia são proibidas.
Favor apagar as informações e notificar o remetente. O uso impróprio será 
tratado conforme as normas da empresa e a legislação em vigor.

The informations contained in this message are restricted, and its 
confidentiality protected by law. In case you are not theaddressee, be 
aware that the reading, spreading and copy of this message is 
unauthorized.
Please, delete this message and notify the sender. The improper use of 
this information will be treated according the company's internal rules 
and legal laws.



Reply to: