Bug#889848: marked as done (ruby2.5: Please include upstream patch to fix FTBFS on ia64)

2018-04-01 Thread John Paul Adrian Glaubitz
We currently have a broken binutils on ia64, so ruby2.5 most likely got 
miscompiled.

Please ignore this crash.

Adrian

On Apr 1, 2018, at 6:11 AM, Antonio Terceiro  wrote:

>> Date: Wed, 07 Feb 2018 22:09:23 +0100
>> From: John Paul Adrian Glaubitz 
>> To: Debian Bug Tracking System 
>> Subject: ruby2.5: Please include upstream patch to fix FTBFS on ia64
>> Message-ID: 
>> <151803776351.18433.12367250620839726943.report...@z6.physik.fu-berlin.de>
>> X-Mailer: reportbug 7.1.8
>> 
>> Source: ruby2.5
>> Version: 2.5.0-4
>> Severity: normal
>> Tags: patch
>> User: debian-i...@lists.debian.org
>> Usertags: ia64
>> 
>> Hello!
>> 
>> ruby2.5 currently FTBFS on ia64 with:
>> 
>> gcc -g -O2 -fdebug-prefix-map=/<>=. -Wformat 
>> -Werror=format-security -fPIC  -D_FORTIFY_SOURCE=2 -fno-strict-overflow 
>> -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -Wdate-time 
>> -D_FORTIFY_SOURCE=2   -I. -I.ext/include/ia64-linux-gnu -I./include -I. 
>> -I./enc/unicode/10.0.0 -o cont.o -c cont.c
>> cont.c: In function 'cont_save_machine_stack':
>> cont.c:478:7: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
>> member named 'machine'
>> th->machine.register_stack_end = rb_ia64_bsp();
>>   ^~
>> cont.c:502:50: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
>> member named 'machine'
>> size = cont->machine.register_stack_size = 
>> th->machine.register_stack_end - th->machine.register_stack_start;
>>  ^~
>> cont.c:502:83: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
>> member named 'machine'
>> size = cont->machine.register_stack_size = 
>> th->machine.register_stack_end - th->machine.register_stack_start;
>>  
>>  ^~
>> cont.c:503:42: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
>> member named 'machine'
>> cont->machine.register_stack_src = th->machine.register_stack_start;
>>  ^~
>> Makefile:375: recipe for target 'cont.o' failed
>> 
>> This has already been fixed upstream [1]. I am attaching the backported patch
>> for ruby2.5. It would be nice if it could be included in the next upload.
> 
> Well, it seems that the issue is deeper than getting it to build. it segfaults
> beatifully while building documentation ... unfortunately I don't have the
> cycles to go after this, but I will happily take a tested patch (which should
> also be sent upstream, of course).
> 
> Generating RDoc documentation
> ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- 
> --disable-gems "./bin/rdoc" --root "." --page-dir "./doc" --encoding=UTF-8 
> --no-force-update --all --ri --op ".ext/rdoc"  "."
> Parsing sources...
>  0% [ 1/871]  /<>/doc/NEWS-1.8.7
>  0% [ 2/871]  /<>/doc/NEWS-1.9.1
>  0% [ 3/871]  /<>/doc/NEWS-1.9.2
>  0% [ 4/871]  /<>/doc/NEWS-1.9.3
>  0% [ 5/871]  /<>/doc/NEWS-2.0.0
>  0% [ 6/871]  /<>/doc/NEWS-2.1.0
>  0% [ 7/871]  /<>/doc/NEWS-2.2.0
>  0% [ 8/871]  /<>/doc/NEWS-2.3.0
>  1% [ 9/871]  /<>/doc/NEWS-2.4.0
>  1% [10/871]  /<>/doc/contributing.rdoc
>  1% [11/871]  /<>/doc/contributors.rdoc
>  1% [12/871]  /<>/doc/dtrace_probes.rdoc
>  1% [13/871]  /<>/doc/extension.ja.rdoc
>  1% [14/871]  /<>/doc/extension.rdoc
>  1% [15/871]  /<>/doc/globals.rdoc
>  1% [16/871]  /<>/doc/keywords.rdoc
>  1% [17/871]  /<>/doc/maintainers.rdoc
>  2% [18/871]  /<>/doc/marshal.rdoc
>  2% [19/871]  /<>/doc/regexp.rdoc
>  2% [20/871]  /<>/doc/security.rdoc
>  2% [21/871]  /<>/doc/standard_library.rdoc
>  2% [22/871]  /<>/doc/syntax.rdoc
>  2% [23/871]  /<>/doc/syntax/assignment.rdoc
>  2% [24/871]  
> ...d/ruby2.5-TpDw3s/ruby2.5-2.5.1/doc/syntax/calling_methods.rdoc
>  2% [25/871]  
> ...by2.5-TpDw3s/ruby2.5-2.5.1/doc/syntax/control_expressions.rdoc
>  2% [26/871]  /<>/doc/syntax/exceptions.rdoc
>  3% [27/871]  /<>/doc/syntax/literals.rdoc
>  3% [28/871]  /<>/doc/syntax/methods.rdoc
>  3% [29/871]  /<>/doc/syntax/miscellaneous.rdoc
>  3% [30/871]  
> ...by2.5-TpDw3s/ruby2.5-2.5.1/doc/syntax/modules_and_classes.rdoc
>  3% [31/871]  /<>/doc/syntax/precedence.rdoc
>  3% [32/871]  /<>/doc/syntax/refinements.rdoc
>  3% [33/871]  NEWS
>  3% [34/871]  README.ja.md
>  4% [35/871]  README.md
>  4% [36/871]  addr2line.c
>  4% [37/871]  array.c
>  4% [38/871]  bignum.c
>  4% [39/871]  class.c
>  4% [40/871]  compar.c
>  4% [41/871]  compile.c
>  4% [42/871]  complex.c
>  4% [43/871]  cont.c
>  5% [44/871]  debug.c
>  5% [45/871]  debug_counter.c
>  5% [46/871]  dir.c
>  5% [47/871]  dln.c
>  5% [48/871]  dln_find.c
>  5% [49/871]  dmydln.c
>  5% [50/871]  dmyenc.c
>  5% [51/871]  dmyext.c
>  5% [52/871]  doc/NEWS-1.8.7
>  6% [53/871]  doc/NEWS-1.9.1
>  6% [54/871]  doc/NEWS-1.9.2
>  6% [55/871]  doc/NEWS-1.9.3
>  6% [56/871]  doc/NEWS-2.0.0
>  6% [57/871]  doc/NEWS-2.1.0
>  6% [58/871]  doc/NEWS-2.2.0
>  6% 

Bug#889848: marked as done (ruby2.5: Please include upstream patch to fix FTBFS on ia64)

2018-03-31 Thread Antonio Terceiro
> Date: Wed, 07 Feb 2018 22:09:23 +0100
> From: John Paul Adrian Glaubitz 
> To: Debian Bug Tracking System 
> Subject: ruby2.5: Please include upstream patch to fix FTBFS on ia64
> Message-ID: 
> <151803776351.18433.12367250620839726943.report...@z6.physik.fu-berlin.de>
> X-Mailer: reportbug 7.1.8
> 
> Source: ruby2.5
> Version: 2.5.0-4
> Severity: normal
> Tags: patch
> User: debian-i...@lists.debian.org
> Usertags: ia64
> 
> Hello!
> 
> ruby2.5 currently FTBFS on ia64 with:
> 
> gcc -g -O2 -fdebug-prefix-map=/<>=. -Wformat 
> -Werror=format-security -fPIC  -D_FORTIFY_SOURCE=2 -fno-strict-overflow 
> -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -Wdate-time 
> -D_FORTIFY_SOURCE=2   -I. -I.ext/include/ia64-linux-gnu -I./include -I. 
> -I./enc/unicode/10.0.0 -o cont.o -c cont.c
> cont.c: In function 'cont_save_machine_stack':
> cont.c:478:7: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
> member named 'machine'
>  th->machine.register_stack_end = rb_ia64_bsp();
>^~
> cont.c:502:50: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
> member named 'machine'
>  size = cont->machine.register_stack_size = 
> th->machine.register_stack_end - th->machine.register_stack_start;
>   ^~
> cont.c:502:83: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
> member named 'machine'
>  size = cont->machine.register_stack_size = 
> th->machine.register_stack_end - th->machine.register_stack_start;
>   
>  ^~
> cont.c:503:42: error: 'rb_thread_t {aka struct rb_thread_struct}' has no 
> member named 'machine'
>  cont->machine.register_stack_src = th->machine.register_stack_start;
>   ^~
> Makefile:375: recipe for target 'cont.o' failed
> 
> This has already been fixed upstream [1]. I am attaching the backported patch
> for ruby2.5. It would be nice if it could be included in the next upload.

Well, it seems that the issue is deeper than getting it to build. it segfaults
beatifully while building documentation ... unfortunately I don't have the
cycles to go after this, but I will happily take a tested patch (which should
also be sent upstream, of course).

Generating RDoc documentation
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- 
--disable-gems "./bin/rdoc" --root "." --page-dir "./doc" --encoding=UTF-8 
--no-force-update --all --ri --op ".ext/rdoc"  "."
Parsing sources...
  0% [ 1/871]  /<>/doc/NEWS-1.8.7
  0% [ 2/871]  /<>/doc/NEWS-1.9.1
  0% [ 3/871]  /<>/doc/NEWS-1.9.2
  0% [ 4/871]  /<>/doc/NEWS-1.9.3
  0% [ 5/871]  /<>/doc/NEWS-2.0.0
  0% [ 6/871]  /<>/doc/NEWS-2.1.0
  0% [ 7/871]  /<>/doc/NEWS-2.2.0
  0% [ 8/871]  /<>/doc/NEWS-2.3.0
  1% [ 9/871]  /<>/doc/NEWS-2.4.0
  1% [10/871]  /<>/doc/contributing.rdoc
  1% [11/871]  /<>/doc/contributors.rdoc
  1% [12/871]  /<>/doc/dtrace_probes.rdoc
  1% [13/871]  /<>/doc/extension.ja.rdoc
  1% [14/871]  /<>/doc/extension.rdoc
  1% [15/871]  /<>/doc/globals.rdoc
  1% [16/871]  /<>/doc/keywords.rdoc
  1% [17/871]  /<>/doc/maintainers.rdoc
  2% [18/871]  /<>/doc/marshal.rdoc
  2% [19/871]  /<>/doc/regexp.rdoc
  2% [20/871]  /<>/doc/security.rdoc
  2% [21/871]  /<>/doc/standard_library.rdoc
  2% [22/871]  /<>/doc/syntax.rdoc
  2% [23/871]  /<>/doc/syntax/assignment.rdoc
  2% [24/871]  ...d/ruby2.5-TpDw3s/ruby2.5-2.5.1/doc/syntax/calling_methods.rdoc
  2% [25/871]  ...by2.5-TpDw3s/ruby2.5-2.5.1/doc/syntax/control_expressions.rdoc
  2% [26/871]  /<>/doc/syntax/exceptions.rdoc
  3% [27/871]  /<>/doc/syntax/literals.rdoc
  3% [28/871]  /<>/doc/syntax/methods.rdoc
  3% [29/871]  /<>/doc/syntax/miscellaneous.rdoc
  3% [30/871]  ...by2.5-TpDw3s/ruby2.5-2.5.1/doc/syntax/modules_and_classes.rdoc
  3% [31/871]  /<>/doc/syntax/precedence.rdoc
  3% [32/871]  /<>/doc/syntax/refinements.rdoc
  3% [33/871]  NEWS
  3% [34/871]  README.ja.md
  4% [35/871]  README.md
  4% [36/871]  addr2line.c
  4% [37/871]  array.c
  4% [38/871]  bignum.c
  4% [39/871]  class.c
  4% [40/871]  compar.c
  4% [41/871]  compile.c
  4% [42/871]  complex.c
  4% [43/871]  cont.c
  5% [44/871]  debug.c
  5% [45/871]  debug_counter.c
  5% [46/871]  dir.c
  5% [47/871]  dln.c
  5% [48/871]  dln_find.c
  5% [49/871]  dmydln.c
  5% [50/871]  dmyenc.c
  5% [51/871]  dmyext.c
  5% [52/871]  doc/NEWS-1.8.7
  6% [53/871]  doc/NEWS-1.9.1
  6% [54/871]  doc/NEWS-1.9.2
  6% [55/871]  doc/NEWS-1.9.3
  6% [56/871]  doc/NEWS-2.0.0
  6% [57/871]  doc/NEWS-2.1.0
  6% [58/871]  doc/NEWS-2.2.0
  6% [59/871]  doc/NEWS-2.3.0
  6% [60/871]  doc/NEWS-2.4.0
  7% [61/871]  doc/contributing.rdoc
  7% [62/871]  doc/contributors.rdoc
  7% [63/871]  doc/dtrace_probes.rdoc
  7% [64/871]  doc/extension.ja.rdoc
  7% [65/871]  doc/extension.rdoc
  7% [66/871]  doc/globals.rdoc
  7% [67/871]  doc/keywords.rdoc
  7% [68/871]