public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* New bootstrap failure on sparc-solaris2.7, fails to define "sparc"
@ 2003-05-18 16:19 Kaveh R. Ghazi
  2003-05-18 19:34 ` Neil Booth
  2003-05-18 20:03 ` Neil Booth
  0 siblings, 2 replies; 6+ messages in thread
From: Kaveh R. Ghazi @ 2003-05-18 16:19 UTC (permalink / raw)
  To: neil; +Cc: gcc-bugs, gcc

Neil,

I'm getting a new bootstrap failure on sparc-sun-solaris2.7 within the
last day or so., probably related to recent changes you made.  It dies
in stage1 building any libgcc target file.  E.g.

 > /teal/tmpdisk/ghazi/gcc-testing/34/build/gcc/xgcc
 > -B/teal/tmpdisk/ghazi/gcc-testing/34/build/gcc/
 > -B/usr/local/sparc-sun-solaris2.7/bin/
 > -B/usr/local/sparc-sun-solaris2.7/lib/ -isystem
 > /usr/local/sparc-sun-solaris2.7/include -isystem
 > /usr/local/sparc-sun-solaris2.7/sys-include -DIN_GCC -W -Wall
 > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
 > ./include -I. -I. -I../../egcc-CVS20030518/gcc
 > -I../../egcc-CVS20030518/gcc/. -I../../egcc-CVS20030518/gcc/config
 > -I../../egcc-CVS20030518/gcc/../include \
 > -c ../../egcc-CVS20030518/gcc/config/sparc/gmon-sol2.c -o gmon.o
 > 
 > In file included from /usr/include/sys/feature_tests.h:15,
 >                  from /teal/tmpdisk/ghazi/gcc-testing/34/build/gcc/include/stdio.h:36,
 >                  from ../../egcc-CVS20030518/gcc/tsystem.h:71,
 >                  from ../../egcc-CVS20030518/gcc/config/sparc/gmon-sol2.c:36:
 > /usr/include/sys/isa_defs.h:322:2: #error "ISA not supported"
 > In file included from /teal/tmpdisk/ghazi/gcc-testing/34/build/gcc/include/limits.h:11,
 >                  from ../../egcc-CVS20030518/gcc/tsystem.h:89,
 >                  from ../../egcc-CVS20030518/gcc/config/sparc/gmon-sol2.c:36:
 > /teal/tmpdisk/ghazi/gcc-testing/34/build/gcc/include/syslimits.h:64:2: #error "chars are signed or unsigned"
 > make[2]: *** [gmon.o] Error 1

The problem appears to be that neither "sparc" nor "__sparc" gets
defined.  (If I add -Dsparc or -D__sparc to the above invocation, the
compilation succeeds.)

Would you please take a look?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu

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

* Re: New bootstrap failure on sparc-solaris2.7, fails to define "sparc"
  2003-05-18 16:19 New bootstrap failure on sparc-solaris2.7, fails to define "sparc" Kaveh R. Ghazi
@ 2003-05-18 19:34 ` Neil Booth
  2003-05-18 20:03 ` Neil Booth
  1 sibling, 0 replies; 6+ messages in thread
From: Neil Booth @ 2003-05-18 19:34 UTC (permalink / raw)
  To: Kaveh R. Ghazi; +Cc: gcc-bugs, gcc

Kaveh R. Ghazi wrote:-

> Neil,
> 
> I'm getting a new bootstrap failure on sparc-sun-solaris2.7 within the
> last day or so., probably related to recent changes you made.  It dies
> in stage1 building any libgcc target file.  E.g.

OK, sorry about that.  I'm taking a look now.

Neil.

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

* Re: New bootstrap failure on sparc-solaris2.7, fails to define "sparc"
  2003-05-18 16:19 New bootstrap failure on sparc-solaris2.7, fails to define "sparc" Kaveh R. Ghazi
  2003-05-18 19:34 ` Neil Booth
@ 2003-05-18 20:03 ` Neil Booth
  2003-05-18 20:57   ` Paolo Carlini
  2003-05-19  3:39   ` Kaveh R. Ghazi
  1 sibling, 2 replies; 6+ messages in thread
From: Neil Booth @ 2003-05-18 20:03 UTC (permalink / raw)
  To: Kaveh R. Ghazi; +Cc: gcc-bugs, gcc

Kaveh R. Ghazi wrote:-

> Neil,
> 
> I'm getting a new bootstrap failure on sparc-sun-solaris2.7 within the
> last day or so., probably related to recent changes you made.  It dies
> in stage1 building any libgcc target file.  E.g.

Fixed with this patch.  Sadly the headers are so tangled that there is
no header just for solaris, which is what we really need.  I've
attempted to preserve this information with a comment.  Hopefully
we can fix this properly later.

Neil.

	* config/sparc/sparc.h: Define sparc for now.

Index: sparc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.h,v
retrieving revision 1.224
diff -u -p -r1.224 sparc.h
--- sparc.h	17 May 2003 07:19:56 -0000	1.224
+++ sparc.h	18 May 2003 19:59:35 -0000
@@ -25,11 +25,13 @@ Boston, MA 02111-1307, USA.  */
 /* Note that some other tm.h files include this one and then override
    whatever definitions are necessary.  */
 
-/* Target CPU builtins.  */
+/* Target CPU builtins.  FIXME: Defining sparc is for the benefit of
+   Solaris only; otheriwse just define __sparc__.  Sadly the headers
+   are such a mess there is no Solaris-specific header.  */
 #define TARGET_CPU_CPP_BUILTINS()		\
   do						\
     {						\
-	builtin_define ("__sparc__");		\
+	builtin_define_std ("sparc");		\
 	if (TARGET_64BIT)			\
 	  { 					\
 	    builtin_assert ("cpu=sparc");	\

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

* Re: New bootstrap failure on sparc-solaris2.7, fails to define "sparc"
  2003-05-18 20:03 ` Neil Booth
@ 2003-05-18 20:57   ` Paolo Carlini
  2003-05-19  3:39   ` Kaveh R. Ghazi
  1 sibling, 0 replies; 6+ messages in thread
From: Paolo Carlini @ 2003-05-18 20:57 UTC (permalink / raw)
  To: Neil Booth; +Cc: gcc-bugs, gcc

Neil Booth wrote:

> + Solaris only; otheriwse just define __sparc__. Sadly the headers

                       ^^

Paolo.

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

* Re: New bootstrap failure on sparc-solaris2.7, fails to define "sparc"
  2003-05-18 20:03 ` Neil Booth
  2003-05-18 20:57   ` Paolo Carlini
@ 2003-05-19  3:39   ` Kaveh R. Ghazi
  2003-05-19  5:37     ` Neil Booth
  1 sibling, 1 reply; 6+ messages in thread
From: Kaveh R. Ghazi @ 2003-05-19  3:39 UTC (permalink / raw)
  To: neil; +Cc: gcc-bugs, gcc

 > From: Neil Booth <neil@daikokuya.co.uk>
 > 
 > Kaveh R. Ghazi wrote:-
 > 
 > > Neil,
 > > 
 > > I'm getting a new bootstrap failure on sparc-sun-solaris2.7 within the
 > > last day or so., probably related to recent changes you made.  It dies
 > > in stage1 building any libgcc target file.  E.g.
 > 
 > Fixed with this patch.  Sadly the headers are so tangled that there is
 > no header just for solaris, which is what we really need.  I've
 > attempted to preserve this information with a comment.  Hopefully
 > we can fix this properly later.
 > Neil.

Thanks, that works.  However I'm a little concerned, given this
breakage how confident are you that some other sparc platfrom wasn't
also hosed?  Or was the "tangle" only in regard to solaris?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu

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

* Re: New bootstrap failure on sparc-solaris2.7, fails to define "sparc"
  2003-05-19  3:39   ` Kaveh R. Ghazi
@ 2003-05-19  5:37     ` Neil Booth
  0 siblings, 0 replies; 6+ messages in thread
From: Neil Booth @ 2003-05-19  5:37 UTC (permalink / raw)
  To: Kaveh R. Ghazi; +Cc: gcc-bugs, gcc

Kaveh R. Ghazi wrote:-

> Thanks, that works.  However I'm a little concerned, given this
> breakage how confident are you that some other sparc platfrom wasn't
> also hosed?  Or was the "tangle" only in regard to solaris?

Just solaris and "sparc".

Neil.

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

end of thread, other threads:[~2003-05-19  5:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-18 16:19 New bootstrap failure on sparc-solaris2.7, fails to define "sparc" Kaveh R. Ghazi
2003-05-18 19:34 ` Neil Booth
2003-05-18 20:03 ` Neil Booth
2003-05-18 20:57   ` Paolo Carlini
2003-05-19  3:39   ` Kaveh R. Ghazi
2003-05-19  5:37     ` Neil Booth

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).