more about Who ever encounter such an so strange problem about compiling ?

Rolf Liu rolfl at sc23.sc.mcel.mot.com
Sun Apr 30 16:13:02 EST 2000


-----Original Message-----
From: Rolf Liu <rolfl at sc.mcel.mot.com>
To: linuxppc-dev at lists.linuxppc.org <linuxppc-dev at lists.linuxppc.org>
Date: Sunday, April 30, 2000 7:08 AM
Subject: Who ever encounter such an so strange problem about compiling ?


>Hi,everyone,
>I am compiling the 8xxrom,which is the start-up and initialization code for
>ppc 8xx board.And I have encountered so strange an problem:
>"I can't compile the start.S file.",when I compile this file using the
>following
>flags , there comes so man errors:
>
>powerpc-linux-gcc -g -O2 -mcpu=823 -Wall -I. -I./linux/include -I./linux/ar
c
>h/pp
>c/8xx_io -D__powerpc__ -DMHZ_50 -D__KERNEL__ -DDATA_MEM_ADDR=0x00010000 -DC
O
>NFIG
>_8xx -fsigned-char -msoft-float  -pipe -fno-builtin -ffixed-r2 -Wno-uniniti
a
>lize
>d -mmultiple -mstring -D__ASSEMBLY__ -c romsys/start.S -o romsys/start.o
>
>../usr/include/asm/fads.h: Assembler messages:
>../usr/include/asm/fads.h:14: Error: Unrecognized opcode: `typedef'
>../usr/include/asm/fads.h:15: Error: Unrecognized opcode: `unsigned'
>../usr/include/asm/fads.h:16: Error: Unrecognized opcode: `unsigned'
>../usr/include/asm/fads.h:17: Error: Unrecognized opcode: `unsigned'
>../usr/include/asm/fads.h:18: Error: Unrecognized opcode: `unsigned'
>../usr/include/asm/fads.h:19: Error: Unrecognized opcode: `unsigned'
>../usr/include/asm/fads.h:20: Error: Rest of line ignored. First ignored
>charac.
>../usr/include/asm/fads.h:22: Error: Unrecognized opcode: `extern'
>
>That seems the as(power-pc) can't recognize the `typedef`....,but why?
>the most strange thing is when I move the start.S to another directory,
>the compilation is successful.
>who can give me a good answer?
>thanks  a lot !!!!!!!
>

the problem seems the as is trying to process the C source code ,how this
can be true?
I think the gcc will first call the c compiler to translate the C source
code into assembly
code .
how this can be true ?


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list