Linux MIPS Architecture development
 help / color / mirror / Atom feed
* C/Assembler question
@ 2000-01-07 16:23 Jeff Harrell
  2000-01-07 22:41 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Harrell @ 2000-01-07 16:23 UTC (permalink / raw)
  To: linux; +Cc: kernel

I seem to be having problems with the compiler in getting a  c/assembly
listing.  I have tried a couple sets of the tools and seem to be
getting the same error with both sets.  Is my syntax correct on the line
below?  Its the -Wa,-a=pc_keyb.lst that seems to cause the
problem.

mips-linux-gcc -D__KERNEL__ -I/home/jharrell/work/mips_linux/include -g
-Wa,-a=pc_keyb.lst -Wall -Wstrict-prototypes -Wa,-a -O2
-fomit-frame-pointer  -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips3
-pipe   -c -o pc_keyb.o pc_keyb.c


This is the error that I get when I attempt it:

pc_keyb.c: In function `kb_wait':
pc_keyb.c:103: warning: unused variable `status'
{standard input}: Assembler messages:
{standard input}:565: Fatal error: Symbol kb_wait already defined.


Is there a formatting problem with this command?  Any help would be
greatly appreciated.

Thanks,
Jeff

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell                    Work:  (801) 619-6104
Broadband Access group/TI
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

* Re: C/Assembler question
  2000-01-07 16:23 C/Assembler question Jeff Harrell
@ 2000-01-07 22:41 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2000-01-07 22:41 UTC (permalink / raw)
  To: Jeff Harrell; +Cc: linux, kernel

On Fri, Jan 07, 2000 at 09:23:13AM -0700, Jeff Harrell wrote:

> I seem to be having problems with the compiler in getting a  c/assembly
> listing.  I have tried a couple sets of the tools and seem to be
> getting the same error with both sets.  Is my syntax correct on the line
> below?  Its the -Wa,-a=pc_keyb.lst that seems to cause the
> problem.
> 
> mips-linux-gcc -D__KERNEL__ -I/home/jharrell/work/mips_linux/include -g
> -Wa,-a=pc_keyb.lst -Wall -Wstrict-prototypes -Wa,-a -O2
> -fomit-frame-pointer  -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips3
> -pipe   -c -o pc_keyb.o pc_keyb.c
> 
> 
> This is the error that I get when I attempt it:
> 
> pc_keyb.c: In function `kb_wait':
> pc_keyb.c:103: warning: unused variable `status'
> {standard input}: Assembler messages:
> {standard input}:565: Fatal error: Symbol kb_wait already defined.
> 
> 
> Is there a formatting problem with this command?  Any help would be
> greatly appreciated.

This is weird.  You pass an extra option to the assembler and the
compiler begins to spit errors?  Try adding -v as well and check gcc
actually passes down to cpp / cc1 / as, maybe that explains things.

  Ralf

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

end of thread, other threads:[~2000-01-07 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-07 16:23 C/Assembler question Jeff Harrell
2000-01-07 22:41 ` Ralf Baechle

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