* [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
@ 2025-04-28 19:06 lukef (Luke Freeman) via ruby-core
2025-04-29 6:34 ` [ruby-core:121763] " dennmart (Dennis Martinez) via ruby-core
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: lukef (Luke Freeman) via ruby-core @ 2025-04-28 19:06 UTC (permalink / raw)
To: ruby-core; +Cc: lukef (Luke Freeman)
Issue #21290 has been reported by lukef (Luke Freeman).
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ruby-core:121763] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
@ 2025-04-29 6:34 ` dennmart (Dennis Martinez) via ruby-core
2025-04-29 9:41 ` [ruby-core:121767] " nobu (Nobuyoshi Nakada) via ruby-core
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dennmart (Dennis Martinez) via ruby-core @ 2025-04-29 6:34 UTC (permalink / raw)
To: ruby-core; +Cc: dennmart (Dennis Martinez)
Issue #21290 has been updated by dennmart (Dennis Martinez).
For some additional context just in case it's helpful here, I've been running into this same issue on my Fedora 42 system and I noticed that the ed25519 gem is [building its extensions using the `-std=c99` flag](https://github.com/RubyCrypto/ed25519/blob/4ab46633c684576e56c8282e6235eca8bc833a32/ext/ed25519_ref10/extconf.rb#L6). When I remove that flag, the gem extensions compile correctly without any issues.
I'm not a C programmer so I'm not sure if this flag is necessary for the gem, or if it's a potential Ruby/GCC 15 issue. I've included this in the reported issue on the gem repo.
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290#change-112820
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ruby-core:121767] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
2025-04-29 6:34 ` [ruby-core:121763] " dennmart (Dennis Martinez) via ruby-core
@ 2025-04-29 9:41 ` nobu (Nobuyoshi Nakada) via ruby-core
2025-05-04 7:42 ` [ruby-core:121823] " dennmart (Dennis Martinez) via ruby-core
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2025-04-29 9:41 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #21290 has been updated by nobu (Nobuyoshi Nakada).
I can't reproduce the failure on Fedora 42 aarch64.
`gem install --user ed25519` succeeded with ruby installed by `dnf`.
Anyway, `-std=c99` flag is nonsense for other than gcc family.
Use `append_cflags` instead of adding them blindly.
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290#change-112824
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ruby-core:121823] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
2025-04-29 6:34 ` [ruby-core:121763] " dennmart (Dennis Martinez) via ruby-core
2025-04-29 9:41 ` [ruby-core:121767] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2025-05-04 7:42 ` dennmart (Dennis Martinez) via ruby-core
2025-05-04 13:17 ` [ruby-core:121826] " anykeyh (Yacine PETITPREZ) via ruby-core
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: dennmart (Dennis Martinez) via ruby-core @ 2025-05-04 7:42 UTC (permalink / raw)
To: ruby-core; +Cc: dennmart (Dennis Martinez)
Issue #21290 has been updated by dennmart (Dennis Martinez).
Thanks for the heads-up about using `append_flags`. I used it to fix the issue for the ed25519 gem and a new version was released resolving the problem. I think this issue can be closed.
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290#change-112886
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ruby-core:121826] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
` (2 preceding siblings ...)
2025-05-04 7:42 ` [ruby-core:121823] " dennmart (Dennis Martinez) via ruby-core
@ 2025-05-04 13:17 ` anykeyh (Yacine PETITPREZ) via ruby-core
2025-05-08 3:03 ` [ruby-core:121891] " hongminhee (Minhee Hong) via ruby-core
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: anykeyh (Yacine PETITPREZ) via ruby-core @ 2025-05-04 13:17 UTC (permalink / raw)
To: ruby-core; +Cc: anykeyh (Yacine PETITPREZ)
Issue #21290 has been updated by anykeyh (Yacine PETITPREZ).
I confirm I have the same problem on arch. With multiple ruby version (3.2, 3.3, 3.4). Example of gems failing are `jaro_winkler` or `ruby-prof`.
Is there any way to fix without touching gem code? Some kind of system flag to set?
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290#change-112889
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ruby-core:121891] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
` (3 preceding siblings ...)
2025-05-04 13:17 ` [ruby-core:121826] " anykeyh (Yacine PETITPREZ) via ruby-core
@ 2025-05-08 3:03 ` hongminhee (Minhee Hong) via ruby-core
2025-05-08 8:37 ` [ruby-core:121902] " AUlrich (Andreas Ulrich) via ruby-core
2025-05-08 13:30 ` [ruby-core:121906] " definiv (Jake W) via ruby-core
6 siblings, 0 replies; 8+ messages in thread
From: hongminhee (Minhee Hong) via ruby-core @ 2025-05-08 3:03 UTC (permalink / raw)
To: ruby-core; +Cc: hongminhee (Minhee Hong)
Issue #21290 has been updated by hongminhee (Minhee Hong).
File gem_make.out added
File gem_make.out added
Hi,
I am also experiencing a similar issue when trying to install a Ruby gem with C extensions (`blurhash` and `ruby-prof`) on Ruby 3.4.3. The compilation fails with errors related to `bool` and `stdbool.h`, similar to what has been described in this thread.
Here's my environment information:
* **Ruby Version:** 3.4.3 (installed via `mise`)
* **Gem causing the issue:** `blurhash` (v0.1.8), `ruby-prof` (v1.7.1)
* **Operating System:** Fedora Linux 42
* **GCC Version:** 15.1.1
The error messages I'm seeing are consistent with the “unknown type name ‘bool’” and suggestions to include `<stdbool.h>` within Ruby's internal header files. I can provide full error logs if needed, but they closely match the ones already shared.
Thank you for looking into this.
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290#change-112960
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
---Files--------------------------------
gem_make.out (32.5 KB)
gem_make.out (33.1 KB)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ruby-core:121902] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
` (4 preceding siblings ...)
2025-05-08 3:03 ` [ruby-core:121891] " hongminhee (Minhee Hong) via ruby-core
@ 2025-05-08 8:37 ` AUlrich (Andreas Ulrich) via ruby-core
2025-05-08 13:30 ` [ruby-core:121906] " definiv (Jake W) via ruby-core
6 siblings, 0 replies; 8+ messages in thread
From: AUlrich (Andreas Ulrich) via ruby-core @ 2025-05-08 8:37 UTC (permalink / raw)
To: ruby-core; +Cc: AUlrich (Andreas Ulrich)
Issue #21290 has been updated by AUlrich (Andreas Ulrich).
I also stumbled over this issue and falsely addressed it to mongodb/bson
Here is a Dockerfile which lets you reproduce the issue
https://github.com/mongodb/bson-ruby/discussions/351#discussioncomment-13059541
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290#change-112971
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
---Files--------------------------------
gem_make.out (32.5 KB)
gem_make.out (33.1 KB)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [ruby-core:121906] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
` (5 preceding siblings ...)
2025-05-08 8:37 ` [ruby-core:121902] " AUlrich (Andreas Ulrich) via ruby-core
@ 2025-05-08 13:30 ` definiv (Jake W) via ruby-core
6 siblings, 0 replies; 8+ messages in thread
From: definiv (Jake W) via ruby-core @ 2025-05-08 13:30 UTC (permalink / raw)
To: ruby-core; +Cc: definiv (Jake W)
Issue #21290 has been updated by definiv (Jake W).
Just adding that I am also experiencing this with ed25519 and ruby-prof, as well as appsignal.
* **Ruby Version:** 3.3.5 (installed via `rbenv`)
* **Gem causing the issue:** `ed25519` (v1.3.9), `ruby-prof` (v1.7.1), `appsignal` (v4.5.9)
* **Operating System:** Arch Linux 6.14.5
* **GCC Version:** 15.1.1
Also seeing the same error messages with "unknown type name `bool`" and including `<stdbool.h>` in the gem's header files does fix it. The `appsignal` gem complains about "incompatible pointer types", and using `--with-cflags="Wno-error=incompatible-pointer-types"` does allow that to install.
----------------------------------------
Misc #21290: Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues
https://bugs.ruby-lang.org/issues/21290#change-112975
* Author: lukef (Luke Freeman)
* Status: Open
----------------------------------------
At least one Ruby extension (ed25519) fails to build due to incompatibilities(?) with the core library headers on Fedora 42.
When trying to build the ed25519 extension that is required for Kamal (and I guess Rails by association) there are errors relating to `bool` types. I'm assuming this is related to the inclusion of GCC 15 by default in version 42.
For example:
```
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/core/rtypeddata.h:578:15: note: ‘bool’ is defined in
header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
In file included from <mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/ruby.h:42:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:420:5: error: unknown type name ‘bool’
420 | bool left; /**< Whether overflow happened or not. */
| ^~~~
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:65:1: note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
64 | #include "ruby/internal/stdckdint.h"
+++ |+#include <stdbool.h>
65 | #include "ruby/internal/xmalloc.h"
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h: In function ‘rbimpl_size_mul_overflow’:
<mise dir>/installs/ruby/3.4.3/include/ruby-3.4.0/ruby/internal/memory.h:574:49: error: ‘false’ undeclared (first use in
this function)
574 | struct rbimpl_size_mul_overflow_tag ret = { false, 0, };
| ^~~~~
```
I logged the relevant issue with Kamal and the ed25519 projects but figured the issue should be tracked here as anyone upgrading to Fedora 42 won't probably be able to use Rails if starting from scratch.
Those issues are:
- https://github.com/RubyCrypto/ed25519/issues/44
- https://github.com/basecamp/kamal/issues/1512
It's possible it is related to this issue also: https://bugs.ruby-lang.org/issues/21024. I have tried downgrading to Ruby 3.4.1 and even older, non-3.4 versions and the issue seems to be the same.
I'm running:
- Fedora 42
- Ruby 3.4+
Please let me know if you need additional information.
---Files--------------------------------
gem_make.out (32.5 KB)
gem_make.out (33.1 KB)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-05-08 13:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-28 19:06 [ruby-core:121755] [Ruby Misc#21290] Unable to build ruby extension on Fedora 42 due to possible GCC 15 issues lukef (Luke Freeman) via ruby-core
2025-04-29 6:34 ` [ruby-core:121763] " dennmart (Dennis Martinez) via ruby-core
2025-04-29 9:41 ` [ruby-core:121767] " nobu (Nobuyoshi Nakada) via ruby-core
2025-05-04 7:42 ` [ruby-core:121823] " dennmart (Dennis Martinez) via ruby-core
2025-05-04 13:17 ` [ruby-core:121826] " anykeyh (Yacine PETITPREZ) via ruby-core
2025-05-08 3:03 ` [ruby-core:121891] " hongminhee (Minhee Hong) via ruby-core
2025-05-08 8:37 ` [ruby-core:121902] " AUlrich (Andreas Ulrich) via ruby-core
2025-05-08 13:30 ` [ruby-core:121906] " definiv (Jake W) via ruby-core
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 NNTP newsgroup(s).