public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
       [not found] <20030407102603.10331.paras.rasmatazz@t-online.de>
@ 2003-06-04 16:32 ` dank@kegel.com
  2003-06-04 21:46 ` dkegel@ixiacom.com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: dank@kegel.com @ 2003-06-04 16:32 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dank@kegel.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkegel@ixiacom.com


------- Additional Comments From dank@kegel.com  2003-06-04 16:32 -------
I can reproduce this here, and I think I understand what's going on.
Try this after configuring a cross gcc:
   egrep "STMP_FIXPROTO =|Don't run fix" */*/build-gcc/gcc/Makefile

On architectures I can build, I see e.g.

ppc-405-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:STMP_FIXPROTO =
stmp-fixproto
ppc-405-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:# Don't run fixproto
ppc-405-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:STMP_FIXPROTO =

On sh4, which fails with the current bug, I see e.g.
sh4-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:STMP_FIXPROTO = stmp-fixproto

So, where's that "Don't run fixproto" come from?

$ find . -type f | xargs grep " 
./gcc/ChangeLog.4:      * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
./gcc/config/t-freebsd:# Don't run fixproto
./gcc/config/t-interix:# Don't run fixproto
./gcc/config/t-linux:# Don't run fixproto
./gcc/config/t-linux-aout:# Don't run fixproto
./gcc/config/t-netbsd:# Don't run fixproto
./gcc/config/t-openbsd:# Don't run fixproto
./gcc/config/cris/t-cris:# Don't run fixproto
./gcc/config/i386/t-beos:# Don't run fixproto
./gcc/config/i386/t-cygwin:# Don't run fixproto
./gcc/config/xtensa/t-xtensa:# Don't run fixproto

That's as far as I've gotten.  I don't really understand
the gcc/config files, but it seems this is where the problem may lie.





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
       [not found] <20030407102603.10331.paras.rasmatazz@t-online.de>
  2003-06-04 16:32 ` [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf dank@kegel.com
@ 2003-06-04 21:46 ` dkegel@ixiacom.com
  2003-06-05 14:26 ` dank@kegel.com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: dkegel@ixiacom.com @ 2003-06-04 21:46 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dkegel@ixiacom.com  2003-06-04 21:46 -------
OK, learned a little more.  It seems that when building a cross-compiler for ppc,
the Makefile is assembled from the following fragments:

rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-rs6000-c-rule

whereas when building a cross-compiler for sh4, the list is

sh/t-sh sh/t-elf sh/t-linux sh/t-le sh/t-monolib

(found by adding set -x to configure, and grepping for dep_tmake_file=).

t-linux contains the magic line 
# Don't run fixproto
STMP_FIXPROTO =

but sh/t-linux doesn't.  Doing the obvious stupid thing --
adding the missing line -- seems to fix the problem.  Patch attached.
Is this proper?



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
       [not found] <20030407102603.10331.paras.rasmatazz@t-online.de>
  2003-06-04 16:32 ` [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf dank@kegel.com
  2003-06-04 21:46 ` dkegel@ixiacom.com
@ 2003-06-05 14:26 ` dank@kegel.com
  2003-06-08  2:38 ` dhazeghi@yahoo.com
  2003-07-25 23:17 ` jbuck at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: dank@kegel.com @ 2003-06-05 14:26 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dank@kegel.com  2003-06-05 14:26 -------
Kaz said:

"Your change seems to be safe and 3.4 already uses gcc/config/t-linux
which nullifies STMP_FIXPROTO, so the patch is OK for 3.3 as an
regression fix on sh-linux target. Thanks."

http://gcc.gnu.org/ml/gcc-patches/2003-06/msg00423.html




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
       [not found] <20030407102603.10331.paras.rasmatazz@t-online.de>
                   ` (2 preceding siblings ...)
  2003-06-05 14:26 ` dank@kegel.com
@ 2003-06-08  2:38 ` dhazeghi@yahoo.com
  2003-07-25 23:17 ` jbuck at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: dhazeghi@yahoo.com @ 2003-06-08  2:38 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From dhazeghi@yahoo.com  2003-06-08 02:38 -------
Patch committed: http://gcc.gnu.org/ml/gcc-cvs/2003-06/msg00242.html.


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

* [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf
       [not found] <20030407102603.10331.paras.rasmatazz@t-online.de>
                   ` (3 preceding siblings ...)
  2003-06-08  2:38 ` dhazeghi@yahoo.com
@ 2003-07-25 23:17 ` jbuck at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: jbuck at gcc dot gnu dot org @ 2003-07-25 23:17 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


jbuck at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.1


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

end of thread, other threads:[~2003-07-25 23:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030407102603.10331.paras.rasmatazz@t-online.de>
2003-06-04 16:32 ` [Bug target/10331] [x86 -> SH] can't compile c++ crosscompiler part of gcc crosscompiler for sh-elf dank@kegel.com
2003-06-04 21:46 ` dkegel@ixiacom.com
2003-06-05 14:26 ` dank@kegel.com
2003-06-08  2:38 ` dhazeghi@yahoo.com
2003-07-25 23:17 ` jbuck 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).