Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646944 - =dev-lang/ruby-2.5.0-r1 fails to build on ia64: cont.c:478:7: error: 'rb_thread_t {aka struct rb_thread_struct}' has no member named 'machine'
Summary: =dev-lang/ruby-2.5.0-r1 fails to build on ia64: cont.c:478:7: error: 'rb_thre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-02-07 22:10 UTC by Sergei Trofimovich (RETIRED)
Modified: 2018-02-16 16:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-lang-ruby-2.5.0-r1-build.log (dev-lang-ruby-2.5.0-r1-build.log,40.76 KB, text/x-log)
2018-02-07 22:10 UTC, Sergei Trofimovich (RETIRED)
Details
0001-ia64-update-ia64-specific-code-to-use-execution-cont.patch (0001-ia64-update-ia64-specific-code-to-use-execution-cont.patch,2.44 KB, patch)
2018-02-07 22:18 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-07 22:10:02 UTC
Created attachment 518514 [details]
dev-lang-ruby-2.5.0-r1-build.log

Build failure looks like:

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;
                                          ^~
make: *** [Makefile:376: cont.o] Error 1
make: *** Waiting for unfinished jobs....

Upstream has a fix: https://github.com/ruby/ruby/commit/5af43b1ec2674e9f86090790bc61abdb96be14ff
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-07 22:18:16 UTC
Created attachment 518518 [details, diff]
0001-ia64-update-ia64-specific-code-to-use-execution-cont.patch
Comment 2 Larry the Git Cow gentoo-dev 2018-02-16 16:40:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=111160985b8efca07fa2ec52c0823ec5f060faa4

commit 111160985b8efca07fa2ec52c0823ec5f060faa4
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2018-02-16 16:33:24 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2018-02-16 16:33:55 +0000

    dev-lang/ruby: fix ia64 build issues, bug 646944
    
    Closes: https://bugs.gentoo.org/646944
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-lang/ruby/Manifest             |   1 +
 dev-lang/ruby/ruby-2.5.0-r2.ebuild | 238 +++++++++++++++++++++++++++++++++++++
 2 files changed, 239 insertions(+)