Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Kernel compile error
@ 2004-11-11  8:09 Ho Tan
  2004-11-11  8:09 ` Ho Tan
  2004-11-11 12:38 ` Ralf Baechle
  0 siblings, 2 replies; 6+ messages in thread
From: Ho Tan @ 2004-11-11  8:09 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 2401 bytes --]

Dear all,

I download the ELDK tools kit (2.1.0 eldk-mips-linux-x86) from www.denx.de website and follow the instruction to install it into the RedHat 7.3.
and I successfully installed into the Redhat 7.3 without any problem.

My target hardware platform is infineon INCAIP and i follow the below instruction to compile the kernel. The kernel source is download from www.denx.de (linux-mips)
make mrproper
make incaip_config
make oldconfig
make dep
make uImage

When compliation, everything go fine until the compiler compling entry.S which locate at arch/mips/kernel. and the Error message prompt.

make[1]: Entering directory `/usr/eldk/usr/src/linux-mips/arch/mips/kernel'
mips_4KC-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/eldk/usr/src/linux-mips/include -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32 -D_MIPS_SZINT=32  -g -G 0 -mno-abicalls -fno-pic -pipe   -c -o entry.o entry.S
entry.S: Assembler messages:
entry.S:225: Error: unrecognized opcode `reg_s $8,164($29)'
entry.S:226: Error: unrecognized opcode `reg_s $8,164($29)'
make[1]: *** [entry.o] Error 1
make[1]: Leaving directory `/usr/eldk/usr/src/linux-mips/arch/mips/kernel'
make: *** [_dir_arch/mips/kernel] Error 2

The source of the entry.S is as below:

Line 225:                BUILD_HANDLER(adel,ade,ade,silent)              /* #4  */
Line 226:                BUILD_HANDLER(ades,ade,ade,silent)             /* #5  */
Line 227:                BUILD_HANDLER(ibe,be,cli,silent)                   /* #6  */
Line 228:                BUILD_HANDLER(dbe,be,cli,silent)                  /* #7  */
Line 229:                BUILD_HANDLER(bp,bp,sti,silent)                   /* #9  */
Line 230:                BUILD_HANDLER(ri,ri,sti,silent)                      /* #10 */
Line 231:                BUILD_HANDLER(cpu,cpu,sti,silent)               /* #11 */
Line 232:                BUILD_HANDLER(ov,ov,sti,silent)                   /* #12 */
Line 233:                BUILD_HANDLER(tr,tr,sti,silent)                     /* #13 */
Line 234:                BUILD_HANDLER(fpe,fpe,fpe,silent)                /* #15 */
Line 235:                BUILD_HANDLER(watch,watch,sti,silent)        /* #23 */
Line 236:                BUILD_HANDLER(mcheck,mcheck,cli,silent)  /* #24 */
Line 237:                BUILD_HANDLER(reserved,reserved,sti,silent) /* others */

Anyone could give any suggestion on this??

Best Regards,

Hugh

[-- Attachment #2: Type: text/html, Size: 5851 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Kernel compile error.
@ 2001-01-05 22:18 Nicu Popovici
  2001-01-05 20:39 ` Maciej W. Rozycki
  0 siblings, 1 reply; 6+ messages in thread
From: Nicu Popovici @ 2001-01-05 22:18 UTC (permalink / raw)
  To: linux-mips

Hello to you all,

I have the folowing cross toolchain ( binutils-2.10.1, egcs-1.0.3a , and
glibc-2.0.6) and I can crosscompile some c c++ files on my intel machine
and run the executables on the mips. BUT I can not cross compile the
kernel for mips. I get the following error

=======================================================================
/crossdev/bin/mips-linux-gcc -D__KERNEL__
-I/home/nicu/JUNGO/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer  -mno-split-addresses -D__SMP__ -pipe  -c -o
init/main.o init/main.c
/home/nicu/JUNGO/linux/include/asm/io.h: In function `copro_timeout':
/home/nicu/JUNGO/linux/include/asm/io.h:87: `asm' operand requires
impossible reload
/home/nicu/JUNGO/linux/include/asm/io.h:87: `asm' operand requires
impossible reload
/home/nicu/JUNGO/linux/include/asm/bugs.h: In function `check_fpu':
In file included from init/main.c:34:
/home/nicu/JUNGO/linux/include/asm/bugs.h:137: internal error--insn does
not satisfy its constraints:
(insn 244 241 250 (set (reg:SI 66 accum)
        (reg:SI 6 a2)) 170 {movsi_internal2} (insn_list 241
(insn_list:REG_DEP_ANTI 98 (insn_list:REG_DEP_OUTPUT 138
(insn_list:REG_DEP_ANTI 247 (insn_list:REG_DEP_ANTI 150 (nil))))))
            (nil))
            mips-linux-gcc: Internal compiler error: program cc1 got
fatal signal 6
            make: *** [init/main.o] Error 1
            [nicu@ares linux]$ {standard input}: Assembler messages:
            {standard input}:47: Error: unrecognized opcode `movl
%cr0,$2'
            {standard input}:52: Error: unrecognized opcode `movl
$2,%cr0'
            {standard input}:100: Error: unrecognized opcode `andl
%esp,$5'
            {standard input}:108: Error: unrecognized opcode `outb
accum,$7'
            {standard input}:109: Error: unrecognized opcode `outb
%al,$0x80'
            {standard input}:114: Error: unrecognized opcode `outb
accum,$7'
=======================================================================

I have to mention that egcs and glibc are tested and I know for sure
that this one are good.

Does anyone know something related to this ?

Regards,
Octav

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-11-11 12:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-11  8:09 Kernel compile error Ho Tan
2004-11-11  8:09 ` Ho Tan
2004-11-11 12:38 ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2001-01-05 22:18 Nicu Popovici
2001-01-05 20:39 ` Maciej W. Rozycki
2001-01-06 17:27   ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox