public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* ruby build now failing in aarch64
@ 2025-05-15 14:30 Adolf Belka
  2025-05-15 16:18 ` Adolf Belka
  0 siblings, 1 reply; 2+ messages in thread
From: Adolf Belka @ 2025-05-15 14:30 UTC (permalink / raw)
  To: IPFire: Development-List

Hi All,

The fix to udev to not fail if the linker emits warnings solved the udev build on aarch64 for me.

However now it has got to building ruby and that has now failed.

The error message is

In file included from vm_core.h:118,
                  from eval_intern.h:5,
                  from debug.c:16:
vm_callinfo.h: In function 'vm_ci_dump':
internal.h:89:72: error: 'RUBY_FUNCTION_NAME_STRING' undeclared (first use in this function)
    89 | #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
       |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
vm_callinfo.h:183:9: note: in expansion of macro 'rp'
   183 |         rp(ci);
       |         ^~
internal.h:89:72: note: each undeclared identifier is reported only once for each function it appears in
    89 | #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
       |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
vm_callinfo.h:183:9: note: in expansion of macro 'rp'
   183 |         rp(ci);
       |         ^~
vm_callinfo.h: In function 'vm_ci_new_':
internal.h:89:72: error: 'RUBY_FUNCTION_NAME_STRING' undeclared (first use in this function)
    89 | #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
       |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
vm_callinfo.h:221:16: note: in expansion of macro 'rp'
   221 |     if (debug) rp(ci);
       |                ^~

and the RUBY_FUNCTION_NAME_STRING undeclared I found a comment that it could be related to gcc15 but it seemed to be for windows systems.

The version of ruby we have is 3.4.1 but 3.4.4 has been just issued with a fix

Bug #21286: Windows - MSYS2 just updated to GCC 15.1.0, builds failing - Ruby - Ruby Issue Tracking System

The bug report does have comments that it is strongly impacting windows systems but it is also affecting other OS's.

I will try doing a build with the latest ruby and see if that solves the aarch64 build.

Regards,
Adolf.



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

* Re: ruby build now failing in aarch64
  2025-05-15 14:30 ruby build now failing in aarch64 Adolf Belka
@ 2025-05-15 16:18 ` Adolf Belka
  0 siblings, 0 replies; 2+ messages in thread
From: Adolf Belka @ 2025-05-15 16:18 UTC (permalink / raw)
  To: IPFire: Development-List

Hi All,

On 15/05/2025 16:30, Adolf Belka wrote:
> Hi All,
> 
> The fix to udev to not fail if the linker emits warnings solved the udev build on aarch64 for me.
> 
> However now it has got to building ruby and that has now failed.
> 
> The error message is
> 
> In file included from vm_core.h:118,
>                   from eval_intern.h:5,
>                   from debug.c:16:
> vm_callinfo.h: In function 'vm_ci_dump':
> internal.h:89:72: error: 'RUBY_FUNCTION_NAME_STRING' undeclared (first use in this function)
>     89 | #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
>        |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
> vm_callinfo.h:183:9: note: in expansion of macro 'rp'
>    183 |         rp(ci);
>        |         ^~
> internal.h:89:72: note: each undeclared identifier is reported only once for each function it appears in
>     89 | #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
>        |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
> vm_callinfo.h:183:9: note: in expansion of macro 'rp'
>    183 |         rp(ci);
>        |         ^~
> vm_callinfo.h: In function 'vm_ci_new_':
> internal.h:89:72: error: 'RUBY_FUNCTION_NAME_STRING' undeclared (first use in this function)
>     89 | #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
>        |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
> vm_callinfo.h:221:16: note: in expansion of macro 'rp'
>    221 |     if (debug) rp(ci);
>        |                ^~
> 
> and the RUBY_FUNCTION_NAME_STRING undeclared I found a comment that it could be related to gcc15 but it seemed to be for windows systems.
> 
> The version of ruby we have is 3.4.1 but 3.4.4 has been just issued with a fix
> 
> Bug #21286: Windows - MSYS2 just updated to GCC 15.1.0, builds failing - Ruby - Ruby Issue Tracking System
> 
> The bug report does have comments that it is strongly impacting windows systems but it is also affecting other OS's.
> 
> I will try doing a build with the latest ruby and see if that solves the aarch64 build.

Unfortunately building ruby-3.4.4 did not fix the above problem. The same errors still occurred.

Regards,
Adolf.

> 
> Regards,
> Adolf.
> 



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

end of thread, other threads:[~2025-05-15 16:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-15 14:30 ruby build now failing in aarch64 Adolf Belka
2025-05-15 16:18 ` Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox