Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Insight build error in the gdb for mips simulator
@ 2005-05-02 14:28 neuwald
  2005-05-03 12:19 ` Dave Korn
  0 siblings, 1 reply; 2+ messages in thread
From: neuwald @ 2005-05-02 14:28 UTC (permalink / raw)
  To: gdb

> Hi,
>
> I'm building tools for run application on mips simulator. I compiled
> binutils and gcc in accordance with:
> http://ecos.sourceware.org/tools/win-mips-tx39-elf.html. I compiled
> insight 5.1a and when I used make utility, I got the following error:
>
> make[3]: Entering directory `/tmp/build/gdb/sim/igen'
> gcc -c -g -O2   -I. -I/src/gdb/insight-5.1a/sim/igen
> -I/src/gdb/insight-5.1a/sim
> /igen/../../include -O0 /src/gdb/insight-5.1a/sim/igen/lf.c
> /src/gdb/insight-5.1a/sim/igen/lf.c:261:27: missing terminating " character
> /src/gdb/insight-5.1a/sim/igen/lf.c: In function `lf_print__gnu_copyleft':
> /src/gdb/insight-5.1a/sim/igen/lf.c:264: error: parse error before
> "Copyright"
> /src/gdb/insight-5.1a/sim/igen/lf.c:264: error: syntax error at '@' token
> /src/gdb/insight-5.1a/sim/igen/lf.c:266: error: `you' undeclared (first
> use in t
> his function)
> /src/gdb/insight-5.1a/sim/igen/lf.c:266: error: (Each undeclared
> identifier is r
> eported only once
> /src/gdb/insight-5.1a/sim/igen/lf.c:266: error: for each function it
> appears in.
> )
> /src/gdb/insight-5.1a/sim/igen/lf.c:268: error: `either' undeclared (first
> use i
> n this function)
> /src/gdb/insight-5.1a/sim/igen/lf.c:272: error: `without' undeclared
> (first use
> in this function)
> /src/gdb/insight-5.1a/sim/igen/lf.c:283:1: missing terminating " character
> make[3]: *** [lf.o] Error 1
> make[3]: Leaving directory `/tmp/build/gdb/sim/igen'
> make[2]: *** [../igen/igen] Error 2
> make[2]: Leaving directory `/tmp/build/gdb/sim/mips'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/tmp/build/gdb/sim'
> make: *** [all-sim] Error 2
> make: Leaving directory `/tmp/build/gdb'
>
> Can anybody help me how to solve this error?
> Regards,
> Evandro



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

* RE: Insight build error in the gdb for mips simulator
  2005-05-02 14:28 Insight build error in the gdb for mips simulator neuwald
@ 2005-05-03 12:19 ` Dave Korn
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Korn @ 2005-05-03 12:19 UTC (permalink / raw)
  To: neuwald, gdb

----Original Message----
>From: neuwald@inf.ufsc.br
>Sent: 02 May 2005 15:28

>> Hi,
>> 
>> I'm building tools for run application on mips simulator. I compiled
>> binutils and gcc in accordance with:
>> http://ecos.sourceware.org/tools/win-mips-tx39-elf.html. I compiled
>> insight 5.1a and when I used make utility, I got the following error:

>> make[3]: Entering directory `/tmp/build/gdb/sim/igen'
>> gcc -c -g -O2   -I. -I/src/gdb/insight-5.1a/sim/igen
>> -I/src/gdb/insight-5.1a/sim /igen/../../include -O0
>> /src/gdb/insight-5.1a/sim/igen/lf.c
>> /src/gdb/insight-5.1a/sim/igen/lf.c:261:27: missing terminating "
>> character /src/gdb/insight-5.1a/sim/igen/lf.c: In function
>> `lf_print__gnu_copyleft': /src/gdb/insight-5.1a/sim/igen/lf.c:264:
>> error: parse error before "Copyright"
>> /src/gdb/insight-5.1a/sim/igen/lf.c:264: error: syntax error at '@'
>> token /src/gdb/insight-5.1a/sim/igen/lf.c:266: error: `you' undeclared

>> Can anybody help me how to solve this error?
>> Regards,
>> Evandro


  This was fixed some time ago: you're using very old versions of the
software.

Mon Jun 3 16:04:31 2002 UTC (2 years, 11 months ago) by rth 

http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/sim/igen/lf.c.diff?r1=1.1&r
2=1.2&cvsroot=src&f=h

  It's because old compilers used to allow you to write a string in C that
extended across multiple lines without requiring you to escape the line-ends
to mark it as a continuation.  That style of string has been depracated for
some time now; you need to either backslash-quote the line ends, or place
closing quotes at the end of each line and opening quotes at the start and
allow the ANSI-string-concatenation rule to take care of it.  So you're
seeing this problem only because you're using a more modern version of the
compiler to try and build old code.  Anyway, take a look at the patch as
shown above and you'll see how to fix it.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

end of thread, other threads:[~2005-05-03 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-02 14:28 Insight build error in the gdb for mips simulator neuwald
2005-05-03 12:19 ` Dave Korn

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