public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [libgo] Fix IRIX bootstrap failure
@ 2012-05-23 10:24 Rainer Orth
  2012-05-24 20:48 ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Rainer Orth @ 2012-05-23 10:24 UTC (permalink / raw)
  To: gcc-patches; +Cc: Ian Lance Taylor

[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]

The current 4.7 branch fails to build on IRIX 6.5:

/vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/go-caller.c:51:1: error: conflicting types for '__go_file_line'
In file included from /vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/go-caller.c:11:0:
/vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/runtime.h:481:14: note: previous declaration of '__go_file_line' was here 

The following patch fixes the inconsistency between runtime.h and
go-caller.c and lets the bootstrap finish.  Testsuite results are still
terrible since many tests timeout (with timeout doubled to 600s to
account for the slow 250 MHz MIPS R10k CPUs on my test machine), and
others not even hitting the timeout at all:

     PID USERNAME  PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
35782082 ro         20    0  784M 3696K ready 357:50 29.59% 59.18% goprint.ex
33666480 ro         20    0  784M 5568K ready 437:14 29.56% 59.11% select5.ex
35957493 ro         20    0  784M 5264K run/2 206:40 29.43% 58.86% 64bit.exe
35654428 ro         20    0  784M 5072K ready 432:59 29.41% 58.82% index.exe

They all seem to loop in a SIGSEGV handling loop.

	Rainer



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: libgo-uintptr.patch --]
[-- Type: text/x-patch, Size: 453 bytes --]

diff --git a/libgo/runtime/go-caller.c b/libgo/runtime/go-caller.c
--- a/libgo/runtime/go-caller.c
+++ b/libgo/runtime/go-caller.c
@@ -48,7 +48,7 @@ RegisterDebugLookup (infofn_type pi, sym
 /* Return function/file/line information for PC.  */
 
 _Bool
-__go_file_line (uintptr_t pc, struct __go_string *fn, struct __go_string *file,
+__go_file_line (uintptr pc, struct __go_string *fn, struct __go_string *file,
 		int *line)
 {
   if (infofn == NULL)

[-- Attachment #3: Type: text/plain, Size: 144 bytes --]



-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

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

* Re: [libgo] Fix IRIX bootstrap failure
  2012-05-23 10:24 [libgo] Fix IRIX bootstrap failure Rainer Orth
@ 2012-05-24 20:48 ` Ian Lance Taylor
  2012-05-25 11:38   ` Rainer Orth
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2012-05-24 20:48 UTC (permalink / raw)
  To: Rainer Orth; +Cc: gcc-patches

Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:

> The current 4.7 branch fails to build on IRIX 6.5:
>
> /vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/go-caller.c:51:1: error: conflicting types for '__go_file_line'
> In file included from /vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/go-caller.c:11:0:
> /vol/gcc/src/hg/gcc-4.7-branch/local/libgo/runtime/runtime.h:481:14: note: previous declaration of '__go_file_line' was here 
>
> The following patch fixes the inconsistency between runtime.h and
> go-caller.c and lets the bootstrap finish.

Thanks.  I committed the patch to mainline and 4.7 branch.


> Testsuite results are still
> terrible since many tests timeout (with timeout doubled to 600s to
> account for the slow 250 MHz MIPS R10k CPUs on my test machine), and
> others not even hitting the timeout at all:
>
>      PID USERNAME  PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
> 35782082 ro         20    0  784M 3696K ready 357:50 29.59% 59.18% goprint.ex
> 33666480 ro         20    0  784M 5568K ready 437:14 29.56% 59.11% select5.ex
> 35957493 ro         20    0  784M 5264K run/2 206:40 29.43% 58.86% 64bit.exe
> 35654428 ro         20    0  784M 5072K ready 432:59 29.41% 58.82% index.exe
>
> They all seem to loop in a SIGSEGV handling loop.

I don't know what is happening here.

Ian

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

* Re: [libgo] Fix IRIX bootstrap failure
  2012-05-24 20:48 ` Ian Lance Taylor
@ 2012-05-25 11:38   ` Rainer Orth
  0 siblings, 0 replies; 3+ messages in thread
From: Rainer Orth @ 2012-05-25 11:38 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-patches

Hi Ian,

> Thanks.  I committed the patch to mainline and 4.7 branch.

Thanks.

>> Testsuite results are still
>> terrible since many tests timeout (with timeout doubled to 600s to
>> account for the slow 250 MHz MIPS R10k CPUs on my test machine), and
>> others not even hitting the timeout at all:
>>
>>      PID USERNAME  PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
>> 35782082 ro         20    0  784M 3696K ready 357:50 29.59% 59.18% goprint.ex
>> 33666480 ro         20    0  784M 5568K ready 437:14 29.56% 59.11% select5.ex
>> 35957493 ro         20    0  784M 5264K run/2 206:40 29.43% 58.86% 64bit.exe
>> 35654428 ro         20    0  784M 5072K ready 432:59 29.41% 58.82% index.exe
>>
>> They all seem to loop in a SIGSEGV handling loop.
>
> I don't know what is happening here.

I plan to have a look sometime, but unfortunately I don't have much time
for GCC work these days.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

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

end of thread, other threads:[~2012-05-25 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23 10:24 [libgo] Fix IRIX bootstrap failure Rainer Orth
2012-05-24 20:48 ` Ian Lance Taylor
2012-05-25 11:38   ` Rainer Orth

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