* 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
2004-11-11 8:09 Kernel compile error Ho Tan
@ 2004-11-11 8:09 ` Ho Tan
2004-11-11 12:38 ` Ralf Baechle
1 sibling, 0 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
* Re: Kernel compile error
2004-11-11 8:09 Kernel compile error Ho Tan
2004-11-11 8:09 ` Ho Tan
@ 2004-11-11 12:38 ` Ralf Baechle
1 sibling, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2004-11-11 12:38 UTC (permalink / raw)
To: Ho Tan; +Cc: linux-mips
On Thu, Nov 11, 2004 at 04:09:48PM +0800, Ho Tan wrote:
> 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
_MIPS_SZLONG etc. are defined by the compiler. If your tree has kludgery
such as defining _MIPS_SZLONG etc. you shouldn't be surprised to see
errors like this. It also seems to indicate that mips_4KC-gcc is not a
compiler for a mips*-linux* target.
> 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)'
And that's what you get from it. See include/asm-mips/asm.h for REG_S.
Ralf
^ 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* Re: Kernel compile error.
2001-01-05 22:18 Nicu Popovici
@ 2001-01-05 20:39 ` Maciej W. Rozycki
2001-01-06 17:27 ` Ralf Baechle
0 siblings, 1 reply; 6+ messages in thread
From: Maciej W. Rozycki @ 2001-01-05 20:39 UTC (permalink / raw)
To: Nicu Popovici; +Cc: linux-mips
On Fri, 5 Jan 2001, Nicu Popovici wrote:
> /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'
You are trying to assemble i386 instructions -- probably your include/asm
symlink is incorrect. Make sure the ARCH make variable is set to "mips",
i.e. either run `make ARCH=mips <whatever>' or modify the top-level
Makefile (the one from our CVS appears to have ARCH hardcoded to "mips"
already).
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Kernel compile error.
2001-01-05 20:39 ` Maciej W. Rozycki
@ 2001-01-06 17:27 ` Ralf Baechle
0 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2001-01-06 17:27 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Nicu Popovici, linux-mips
On Fri, Jan 05, 2001 at 09:39:54PM +0100, Maciej W. Rozycki wrote:
> You are trying to assemble i386 instructions -- probably your include/asm
> symlink is incorrect. Make sure the ARCH make variable is set to "mips",
> i.e. either run `make ARCH=mips <whatever>' or modify the top-level
> Makefile (the one from our CVS appears to have ARCH hardcoded to "mips"
> already).
The MIPS sources have ARCH hardwired to mips so his problem means he's trying
to compile some other source tree - which probably will fail even with your
hints.
Ralf
^ 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