public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bootstrap broken on i386-pc-solaris2.10
@ 2008-05-22 17:49 Art Haas
  2008-05-22 18:17 ` Kai Tietz
  0 siblings, 1 reply; 5+ messages in thread
From: Art Haas @ 2008-05-22 17:49 UTC (permalink / raw)
  To: gcc; +Cc: Kai Tietz

Hi.

I've been unable to successfully bootstrap on my i386-pc-solaris2.10 
system since this set of changes made it into the repository:

2008-05-20  Kai Tietz  <kai.tietz@onevision.com>

        * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
        (ix86_i386elf_return_in_memory): Likewise.
        (ix86_i386interix_return_in_memory): Likewise.
        * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
        (SUBTARGET_RETURN_IN_MEMORY): New.
        * config/i386/i386elf.h: Likewise.
        * config/i386/ptx4-i.h: Likewise.
        * config/i386/sol2-10.h: Likewise.
        * config/i386/sysv4.h: Likewise.
        * config/i386/vx-common.h: Likewise.
        * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
        * config/i386/i386.c (ix86_return_in_memory): Made static and
        make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
        (ix86_i386elf_return_in_memory): Removed.
        (ix86_i386interix_return_in_memory): Removed.
        (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
        * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection
#ifdef.

Lots of warnings during the stage1 portion of the build, and once things
get into stage2 the '-Werror' flag kills the build:

{ ... snip build log ... }
/export/home/arth/gnu/gcc-0522/./prev-gcc/xgcc
-B/export/home/arth/gnu/gcc-0522/./prev-gcc/
-B/usr/local/i386-pc-solaris2.10/bin/ -c  -O2 -march=pentium4 -DIN_GCC  
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros                              
-Wno-overlength-strings -Werror   -DHAVE_CONFIG_H -DGENERATOR_FILE -I.
-Ibuild -I/export/home/arth/gnu/gcc.git/gcc
-I/export/home/arth/gnu/gcc.git/gcc/build
-I/export/home/arth/gnu/gcc.git/gcc/../include
-I/export/home/arth/gnu/gcc.git/gcc/../libcpp/include
-I/usr/local/include -I/usr/local/include
-I/export/home/arth/gnu/gcc.git/gcc/../libdecnumber
-I/export/home/arth/gnu/gcc.git/gcc/../libdecnumber/dpd
-I../libdecnumber  -o build/gensupport.o
/export/home/arth/gnu/gcc.git/gcc/gensupport.c
In file included from ./tm.h:24,
                 from /export/home/arth/gnu/gcc.git/gcc/gensupport.c:24:
/export/home/arth/gnu/gcc.git/gcc/config/i386/sol2-10.h:113:1: error:
"SUBTARGET_RETURN_IN_MEMORY" redefined
In file included from ./tm.h:18,
                 from /export/home/arth/gnu/gcc.git/gcc/gensupport.c:24:
/export/home/arth/gnu/gcc.git/gcc/config/i386/sysv4.h:28:1: error: this
is the location of the previous definition
make[3]: *** [build/gensupport.o] Error 1
make[3]: *** Waiting for unfinished jobs....
{ ... snip ...}

Art Haas

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

* Re: Bootstrap broken on i386-pc-solaris2.10
  2008-05-22 17:49 Bootstrap broken on i386-pc-solaris2.10 Art Haas
@ 2008-05-22 18:17 ` Kai Tietz
       [not found]   ` <90baa01f0805221241h19a2a842ne672cfe82c466670@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Tietz @ 2008-05-22 18:17 UTC (permalink / raw)
  To: Art Haas; +Cc: gcc, Kai Tietz

Art,

2008/5/22 Art Haas <ahaas@impactweather.com>:
> Hi.
>
> I've been unable to successfully bootstrap on my i386-pc-solaris2.10
> system since this set of changes made it into the repository:
>
> 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
>
>        * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
>        (ix86_i386elf_return_in_memory): Likewise.
>        (ix86_i386interix_return_in_memory): Likewise.
>        * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
>        (SUBTARGET_RETURN_IN_MEMORY): New.
>        * config/i386/i386elf.h: Likewise.
>        * config/i386/ptx4-i.h: Likewise.
>        * config/i386/sol2-10.h: Likewise.
>        * config/i386/sysv4.h: Likewise.
>        * config/i386/vx-common.h: Likewise.
>        * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
>        * config/i386/i386.c (ix86_return_in_memory): Made static and
>        make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
>        (ix86_i386elf_return_in_memory): Removed.
>        (ix86_i386interix_return_in_memory): Removed.
>        (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
>        * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection
> #ifdef.
>
> Lots of warnings during the stage1 portion of the build, and once things
> get into stage2 the '-Werror' flag kills the build:
>
> { ... snip build log ... }
> /export/home/arth/gnu/gcc-0522/./prev-gcc/xgcc
> -B/export/home/arth/gnu/gcc-0522/./prev-gcc/
> -B/usr/local/i386-pc-solaris2.10/bin/ -c  -O2 -march=pentium4 -DIN_GCC
> -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition -Wmissing-format-attribute -pedantic
> -Wno-long-long -Wno-variadic-macros
> -Wno-overlength-strings -Werror   -DHAVE_CONFIG_H -DGENERATOR_FILE -I.
> -Ibuild -I/export/home/arth/gnu/gcc.git/gcc
> -I/export/home/arth/gnu/gcc.git/gcc/build
> -I/export/home/arth/gnu/gcc.git/gcc/../include
> -I/export/home/arth/gnu/gcc.git/gcc/../libcpp/include
> -I/usr/local/include -I/usr/local/include
> -I/export/home/arth/gnu/gcc.git/gcc/../libdecnumber
> -I/export/home/arth/gnu/gcc.git/gcc/../libdecnumber/dpd
> -I../libdecnumber  -o build/gensupport.o
> /export/home/arth/gnu/gcc.git/gcc/gensupport.c
> In file included from ./tm.h:24,
>                 from /export/home/arth/gnu/gcc.git/gcc/gensupport.c:24:
> /export/home/arth/gnu/gcc.git/gcc/config/i386/sol2-10.h:113:1: error:
> "SUBTARGET_RETURN_IN_MEMORY" redefined
> In file included from ./tm.h:18,
>                 from /export/home/arth/gnu/gcc.git/gcc/gensupport.c:24:
> /export/home/arth/gnu/gcc.git/gcc/config/i386/sysv4.h:28:1: error: this
> is the location of the previous definition
> make[3]: *** [build/gensupport.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> { ... snip ...}
>
> Art Haas
>

I sent the following patch to patch-gcc for this.

Index: gcc/gcc/config/i386/sol2-10.h
===================================================================
--- gcc.orig/gcc/config/i386/sol2-10.h
+++ gcc/gcc/config/i386/sol2-10.h
@@ -110,5 +110,6 @@ along with GCC; see the file COPYING3.
 #undef TARGET_ASM_NAMED_SECTION
 #define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section

+#undef SUBTARGET_RETURN_IN_MEMORY
 #define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \
 	ix86_sol10_return_in_memory (TYPE, FNTYPE)

Thanks for reporting,
  Kai


-- 
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

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

* Re: Bootstrap broken on i386-pc-solaris2.10
       [not found]   ` <90baa01f0805221241h19a2a842ne672cfe82c466670@mail.gmail.com>
@ 2008-05-22 20:20     ` Art Haas
       [not found]       ` <90baa01f0805221412t5c67df50w279ae3bcb31daadd@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Art Haas @ 2008-05-22 20:20 UTC (permalink / raw)
  To: Kai Tietz; +Cc: gcc


On Thu, 2008-05-22 at 19:41, Kai Tietz wrote:
> Ok, fixed on gcc trunk revision 135776.

The patch fixed the warning error, but the bootstrap is still broken:

{ ... snip ... }
cc1: warnings being treated as errors
/export/home/arth/gnu/gcc.git/gcc/config/i386/i386.c:4845: error:
'return_in_memory_32' defined but not used
/export/home/arth/gnu/gcc.git/gcc/config/i386/i386.c:4892: error:
'return_in_memory_ms_64' defined but not used
make[3]: *** [i386.o] Error 1
make[3]: *** Waiting for unfinished jobs....
{ ... snip end of log ... }

Art Haas

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

* Re: Bootstrap broken on i386-pc-solaris2.10
       [not found]       ` <90baa01f0805221412t5c67df50w279ae3bcb31daadd@mail.gmail.com>
@ 2008-05-22 22:47         ` Art Haas
  2008-05-23  6:06           ` Kai Tietz
  0 siblings, 1 reply; 5+ messages in thread
From: Art Haas @ 2008-05-22 22:47 UTC (permalink / raw)
  To: Kai Tietz; +Cc: gcc

On Thu, 2008-05-22 at 21:12, Kai Tietz wrote:
> Art,
> 
> 2008/5/22 Art Haas <ahaas@impactweather.com>:
> >
> > On Thu, 2008-05-22 at 19:41, Kai Tietz wrote:
> >> Ok, fixed on gcc trunk revision 135776.
> >
> > The patch fixed the warning error, but the bootstrap is still
> broken:
> >
> > { ... snip ... }
> > cc1: warnings being treated as errors
> > /export/home/arth/gnu/gcc.git/gcc/config/i386/i386.c:4845: error:
> > 'return_in_memory_32' defined but not used
> > /export/home/arth/gnu/gcc.git/gcc/config/i386/i386.c:4892: error:
> > 'return_in_memory_ms_64' defined but not used
> > make[3]: *** [i386.o] Error 1
> > make[3]: *** Waiting for unfinished jobs....
> > { ... snip end of log ... }
> 
> Could you please test the attached patch. I have no solaris2 box. If
> everything works for you please let me know.

The patch worked - I've successfully built the current GCC.

Thanks!

Art Haas

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

* Re: Bootstrap broken on i386-pc-solaris2.10
  2008-05-22 22:47         ` Art Haas
@ 2008-05-23  6:06           ` Kai Tietz
  0 siblings, 0 replies; 5+ messages in thread
From: Kai Tietz @ 2008-05-23  6:06 UTC (permalink / raw)
  To: Art Haas; +Cc: gcc

2008/5/23 Art Haas <ahaas@impactweather.com>:
> On Thu, 2008-05-22 at 21:12, Kai Tietz wrote:
>> Art,
>>
>> 2008/5/22 Art Haas <ahaas@impactweather.com>:
>> >
>> > On Thu, 2008-05-22 at 19:41, Kai Tietz wrote:
>> >> Ok, fixed on gcc trunk revision 135776.
>> >
>> > The patch fixed the warning error, but the bootstrap is still
>> broken:
>> >
>> > { ... snip ... }
>> > cc1: warnings being treated as errors
>> > /export/home/arth/gnu/gcc.git/gcc/config/i386/i386.c:4845: error:
>> > 'return_in_memory_32' defined but not used
>> > /export/home/arth/gnu/gcc.git/gcc/config/i386/i386.c:4892: error:
>> > 'return_in_memory_ms_64' defined but not used
>> > make[3]: *** [i386.o] Error 1
>> > make[3]: *** Waiting for unfinished jobs....
>> > { ... snip end of log ... }
>>
>> Could you please test the attached patch. I have no solaris2 box. If
>> everything works for you please let me know.
>
> The patch worked - I've successfully built the current GCC.
>
> Thanks!
>
> Art Haas
>

The patch is applyed on trunk.

Thanks,
  Kai

-- 
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

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

end of thread, other threads:[~2008-05-23  6:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-22 17:49 Bootstrap broken on i386-pc-solaris2.10 Art Haas
2008-05-22 18:17 ` Kai Tietz
     [not found]   ` <90baa01f0805221241h19a2a842ne672cfe82c466670@mail.gmail.com>
2008-05-22 20:20     ` Art Haas
     [not found]       ` <90baa01f0805221412t5c67df50w279ae3bcb31daadd@mail.gmail.com>
2008-05-22 22:47         ` Art Haas
2008-05-23  6:06           ` Kai Tietz

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