public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16588] New: H8 / SH
@ 2004-07-16 12:03 nitins2 at kpitcummins dot com
  2004-07-16 18:32 ` [Bug c/16588] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: nitins2 at kpitcummins dot com @ 2004-07-16 12:03 UTC (permalink / raw)
  To: gcc-bugs

Hi,
I have taken following source code version to build H8(COFF/ELF) and SH
(COFF/ELF) toolchain,
1. GCC(gcc-3.5.20040711).
2. binutils(binutils-040713).
3. newlib-1.12.0 (Dated 15/07/2004 from CVS).
While building toolchain for targets H8(COFF/ELF) and SH(COFF/ELF),
I am getting error as mentioned below at the stage of newlib building. 
Kindly suggest how to remove this error.

Patch from following link has already been applied to these latest snapshots.  
http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01251.html

**************************error text 
********************************************

removed `build-newlib-1.12.0/h8300-elf/h8sx/int32/newlib/libm/config.status'
removed `build-newlib-1.12.0/h8300-elf/h8sx/int32/newlib/libm/Makefile'
/home/kpit/fsfsrc/downloads/newlib-1.12.0/newlib/libc/sys/sh/syscalls.c:182: 
warning: 'struct tms' declared inside parameter list
/home/kpit/fsfsrc/downloads/newlib-1.12.0/newlib/libc/sys/sh/syscalls.c:182: 
warning: its scope is only this definition or declaration, which is probably 
not what you want
/home/kpit/fsfsrc/downloads/newlib-1.12.0/newlib/libc/sys/sh/syscalls.c: In 
function `_sbrk':
/home/kpit/fsfsrc/downloads/newlib-1.12.0/newlib/libc/sys/sh/syscalls.c:9: 
error: register name not specified for 'stack_ptr'
make[8]: *** [syscalls.o] Error 1

********************************************************************************
***

Thanks in advance.

Nitin Shah,
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools are released on June 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
           Summary: H8 / SH
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nitins2 at kpitcummins dot com
                CC: gcc-bugs at gcc dot gnu dot org,nitins2 at kpitcummins
                    dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: h8300-unknown-elf/coff , sh-unknown-elf/coff


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug c/16588] H8 / SH
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
@ 2004-07-16 18:32 ` pinskia at gcc dot gnu dot org
  2004-07-16 20:33 ` wilson at specifixinc dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-16 18:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-16 18:32 -------
Well first read http://gcc.gnu.org/bugs.html and provide the preprocessed source file.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug c/16588] H8 / SH
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
  2004-07-16 18:32 ` [Bug c/16588] " pinskia at gcc dot gnu dot org
@ 2004-07-16 20:33 ` wilson at specifixinc dot com
  2004-07-17  3:10 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: wilson at specifixinc dot com @ 2004-07-16 20:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at specifixinc dot com  2004-07-16 20:33 -------
Subject: Re:  New: H8 / SH

nitins2 at kpitcummins dot com wrote:
> removed `build-newlib-1.12.0/h8300-elf/h8sx/int32/newlib/libm/config.status'
> removed `build-newlib-1.12.0/h8300-elf/h8sx/int32/newlib/libm/Makefile'
> /home/kpit/fsfsrc/downloads/newlib-1.12.0/newlib/libc/sys/sh/syscalls.c:9: 
> error: register name not specified for 'stack_ptr'

This seems confused.  The first two lines are from an h8300 build, and 
the last two lines are from an sh build.  I am wondering if you did 
something wrong in your configure/build process.  But since you have 
given us no info about this, I can't comment further.

You mention that there are two targets, but give only one error message. 
  I'd expect different error messages for these two targets in this 
case, so this seems confused also.

This is just as likely a newlib problem as a gcc problem, and we don't 
handle newlib problems here.  You need to prove this is a gcc problem if 
you want us to do something with it.  You can't prove that without a 
testcase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug c/16588] H8 / SH
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
  2004-07-16 18:32 ` [Bug c/16588] " pinskia at gcc dot gnu dot org
  2004-07-16 20:33 ` wilson at specifixinc dot com
@ 2004-07-17  3:10 ` pinskia at gcc dot gnu dot org
  2004-08-03  5:10 ` nitins2 at kpitcummins dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-17  3:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug c/16588] H8 / SH
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
                   ` (2 preceding siblings ...)
  2004-07-17  3:10 ` pinskia at gcc dot gnu dot org
@ 2004-08-03  5:10 ` nitins2 at kpitcummins dot com
  2004-08-03  5:19 ` [Bug target/16588] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nitins2 at kpitcummins dot com @ 2004-08-03  5:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nitins2 at kpitcummins dot com  2004-08-03 05:10 -------
Hi,
I have taken following source code snapshots to build H8(COFF) toolchain,
1. GCC(gcc-3.5-20040801).
2. binutils(binutils-040802).
3. newlib-1.12.0 (Dated 15/07/2004 from CVS).
Host:i686-pc-linux-gnu
I am able to build tool chain for ELF format.
I am already adding the new cross-binutils to my path after I built and 
installed them.
While building toolchain for targets H8(COFF), I am getting error as mentioned 
below at the stage of final cross gcc building. Kindly suggest how to remove 
this error. Same kind of error comes for SH(COFF) Build.
************************************ Error 
Text******************************************************************
/home/nitins2/intmdt_build/h8300-coffbld3.5-20040801/build-gcc-3.5-
20040801/gcc/g++ -shared-libgcc -B/home/nitins2/intmdt_build/h8300-coffbld3.5-
20040801/build-gcc-3.5-20040801/gcc/ -nostdinc++ -
L/home/nitins2/intmdt_build/h8300-coffbld3.5-20040801/build-gcc-3.5-
20040801/h8300-coff/libstdc++-v3/src -L/home/nitins2/intmdt_build/h8300-
coffbld3.5-20040801/build-gcc-3.5-20040801/h8300-coff/libstdc++-v3/src/.libs -
B/home/nitins2/intmdt_share/gnuh8300_v0403_coff-1/h8300-coff/bin/ -
B/home/nitins2/intmdt_share/gnuh8300_v0403_coff-1/h8300-coff/lib/ -
isystem /home/nitins2/intmdt_share/gnuh8300_v0403_coff-1/h8300-coff/include -
isystem /home/nitins2/intmdt_share/gnuh8300_v0403_coff-1/h8300-coff/sys-
include -DHAVE_CONFIG_H -I. -I/home/kpit/fsfsrc/downloads/gcc-3.5-
20040801/libstdc++-v3/testsuite -I..  -I/home/nitins2/intmdt_build/h8300-
coffbld3.5-20040801/build-gcc-3.5-20040801/h8300-coff/libstdc++-
v3/include/h8300-coff -I/home/nitins2/intmdt_build/h8300-coffbld3.5-
20040801/build-gcc-3.5-20040801/h8300-coff/libstdc++-v3/include -
I/home/kpit/fsfsrc/downloads/gcc-3.5-20040801/libstdc++-v3/libsupc++ -O2 -O2 -
DCOFFPATCH -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0 -
DLOCALEDIR="/home/nitins2/intmdt_build/h8300-coffbld3.5-20040801/build-gcc-3.5-
20040801/h8300-coff/libstdc++-v3/po/share/locale" -O2 -c -o 
testsuite_abi.o /home/kpit/fsfsrc/downloads/gcc-3.5-20040801/libstdc++-
v3/testsuite/testsuite_abi.cc
/tmp/ccMZmwY1.s: Assembler messages:
/tmp/ccMZmwY1.s:16: Error: junk at end of line, first unrecognized character is 
`i'
/tmp/ccMZmwY1.s:20: Error: junk at end of line, first unrecognized character is 
`i'
/tmp/ccMZmwY1.s:24: Error: junk at end of line, first unrecognized character is 
`u'
/tmp/ccMZmwY1.s:28: Error: junk at end of line, first unrecognized character is 
`l'
/tmp/ccMZmwY1.s:32: Error: junk at end of line, first unrecognized character is 
`l'
/tmp/ccMZmwY1.s:36: Error: junk at end of line, first unrecognized character is 
`l'
/tmp/ccMZmwY1.s:40: Error: junk at end of line, first unrecognized character is 
`l'
/tmp/ccMZmwY1.s:44: Error: junk at end of line, first unrecognized character is 
`i'
/tmp/ccMZmwY1.s:48: Error: junk at end of line, first unrecognized character is 
`u'
/tmp/ccMZmwY1.s:52: Error: junk at end of line, first unrecognized character is 
`s'
/tmp/ccMZmwY1.s:56: Error: junk at end of line, first unrecognized character is 
`c'
/tmp/ccMZmwY1.s:60: Error: junk at end of line, first unrecognized character is 
`c'
/tmp/ccMZmwY1.s:72: Error: junk at end of line, first unrecognized character is 
`d'
************************************ Error Text Ends 
*************************************************************
*************************************testsuite_abi.s 
file*********************************************************
def	_signed
13	.scl	13
14	.type	04
15	.endef
16	.def	_long int   <- error comes from here
17	.scl	13
18	.type	05
19	.endef
20	.def	_unsigned int <- error comes from here
21	.scl	13
22	.type	016
23	.endef
24	.def	_long unsigned int <- error comes from here
25	.scl	13
26	.type	017
27	.endef
28	.def	_unsigned long <- error comes from here
29	.scl	13
30	.type	017
31	.endef
32	.def	_long long int <- error comes from here
33	.scl	13
34	.type	05
35	.endef
36	.def	_long long unsigned int <- error comes from here
37	.scl	13
38	.type	017
39	.endef
40	.def	_long long unsigned <- error comes from here
41	.scl	13
42	.type	017
43	.endef
44	.def	_short int <- error comes from here
45	.scl	13
46	.type	03
47	.endef
48	.def	_short unsigned int <- error comes from here
49	.scl	13
50	.type	015
51	.endef
52	.def	_unsigned short <- error comes from here
53	.scl	13
54	.type	015
55	.endef
56	.def	_signed char <- error comes from here
57	.scl	13
58	.type	02
59	.endef
60	.def	_unsigned char <- error comes from here
61	.scl	13
62	.type	014
63	.endef
64	.def	_float
65	.scl	13
66	.type	06
67	.endef
68	.def	_double
69	.scl	13
70	.type	06
71	.endef
72	.def	_long double <- error comes from here
73	.scl	13
74	.type	06
********************************************************************************
********************
Thanks in advance

Nitin Shah,
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools are released on June 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug target/16588] H8 / SH
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
                   ` (3 preceding siblings ...)
  2004-08-03  5:10 ` nitins2 at kpitcummins dot com
@ 2004-08-03  5:19 ` pinskia at gcc dot gnu dot org
  2004-08-03 19:05 ` wilson at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-03  5:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-03 05:19 -------
The last bug looks like a bug in binutils as the default debugging type for coff is "sdb-format".

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug target/16588] H8 / SH
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
                   ` (4 preceding siblings ...)
  2004-08-03  5:19 ` [Bug target/16588] " pinskia at gcc dot gnu dot org
@ 2004-08-03 19:05 ` wilson at gcc dot gnu dot org
  2004-08-31  5:56 ` [Bug debug/16588] sdb/coff is broken pinskia at gcc dot gnu dot org
  2004-11-30  0:47 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-08-03 19:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2004-08-03 19:05 -------
The GCC support for the sdb/coff debug info format is badly broken, and
currently unusable.  The .def pseudo-op takes one argument, a name, and we are
giving it two in some cases.  This causes assembler errors when compiling C++
code with -g.

The sdb/coff format can not describe C++, but we should not be emitting invalid
assembly for C++ input.  We should instead find someway to emit correct assembly
code, even though the end result will be useless to gdb.

Best solution is for end users to stop using the sdb/coff format, as it is
obsolete.  It can't describe C++, or even C89.  It can only fully describe K&R
C, and it is not extensible, so this can not be fixed.

Use --with-stabs when configuring, or define PREFERRED_DEBUGGING_TYPE to
DBX_DEBUG in h8300.h.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug debug/16588] sdb/coff  is broken
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
                   ` (5 preceding siblings ...)
  2004-08-03 19:05 ` wilson at gcc dot gnu dot org
@ 2004-08-31  5:56 ` pinskia at gcc dot gnu dot org
  2004-11-30  0:47 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-31  5:56 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
          Component|target                      |debug
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-31 05:56:16
               date|                            |
            Summary|H8 / SH                     |sdb/coff  is broken


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

* [Bug debug/16588] sdb/coff  is broken
  2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
                   ` (6 preceding siblings ...)
  2004-08-31  5:56 ` [Bug debug/16588] sdb/coff is broken pinskia at gcc dot gnu dot org
@ 2004-11-30  0:47 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30  0:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-30 00:47 -------
Fixed on the mainline by:
2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>

        * sdbout.c (sdbout_symbol): Do not output type .def statements
        for builtin types.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16588


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

end of thread, other threads:[~2004-11-30  0:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-16 12:03 [Bug c/16588] New: H8 / SH nitins2 at kpitcummins dot com
2004-07-16 18:32 ` [Bug c/16588] " pinskia at gcc dot gnu dot org
2004-07-16 20:33 ` wilson at specifixinc dot com
2004-07-17  3:10 ` pinskia at gcc dot gnu dot org
2004-08-03  5:10 ` nitins2 at kpitcummins dot com
2004-08-03  5:19 ` [Bug target/16588] " pinskia at gcc dot gnu dot org
2004-08-03 19:05 ` wilson at gcc dot gnu dot org
2004-08-31  5:56 ` [Bug debug/16588] sdb/coff is broken pinskia at gcc dot gnu dot org
2004-11-30  0:47 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).