* [ruby-core:111450] [Ruby master Bug#19268] Mingw64 Build Failure
@ 2022-12-27 9:42 cfis (Charlie Savage) via ruby-core
2023-09-26 2:48 ` [ruby-core:114896] " cfis (Charlie Savage) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: cfis (Charlie Savage) via ruby-core @ 2022-12-27 9:42 UTC (permalink / raw)
To: ruby-core; +Cc: cfis (Charlie Savage)
Issue #19268 has been reported by cfis (Charlie Savage).
----------------------------------------
Bug #19268: Mingw64 Build Failure
https://bugs.ruby-lang.org/issues/19268
* Author: cfis (Charlie Savage)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
For both Ruby 3.1.3 and Ruby 3.2.0, building on msys2/ucrt64 fails:
``` c
linking miniruby.exe
/usr/bin/sh: -c: line 1: syntax error near unexpected token `('
/usr/bin/sh: -c: line 1: `/usr/local/ruby/bin/ruby --disable=gems -n -e BEGIN{version=ARGV.shift;mis=ARGV.dup} -e END{abort "UNICODE version mismatch: #{mis}" unless mis.empty?} -e (mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o 15.0.0 ./enc/unicode/15.0.0/casefold.h ./enc/unicode/15.0.0/name2ctype.h'
make: *** [uncommon.mk:878: .rbconfig.time] Error 2
```
The fix that works for me is changing:
``` c
-e '(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \
```
To
``` c
-e "(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +\"#{Regexp.quote(version)}\"/o" \
```
```
--
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/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:114896] [Ruby master Bug#19268] Mingw64 Build Failure
2022-12-27 9:42 [ruby-core:111450] [Ruby master Bug#19268] Mingw64 Build Failure cfis (Charlie Savage) via ruby-core
@ 2023-09-26 2:48 ` cfis (Charlie Savage) via ruby-core
2024-10-21 8:50 ` [ruby-core:119552] " cfis (Charlie Savage) via ruby-core
2024-10-21 8:50 ` [ruby-core:119553] " cfis (Charlie Savage) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: cfis (Charlie Savage) via ruby-core @ 2023-09-26 2:48 UTC (permalink / raw)
To: ruby-core; +Cc: cfis (Charlie Savage)
Issue #19268 has been updated by cfis (Charlie Savage).
This is still happening in Ruby 3.2.2.
I suspect I see this because I use mingw64 make versus msys make.
----------------------------------------
Bug #19268: Mingw64 Build Failure
https://bugs.ruby-lang.org/issues/19268#change-104755
* Author: cfis (Charlie Savage)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
For both Ruby 3.1.3 and Ruby 3.2.0, building on msys2/ucrt64 fails:
``` c
linking miniruby.exe
/usr/bin/sh: -c: line 1: syntax error near unexpected token `('
/usr/bin/sh: -c: line 1: `/usr/local/ruby/bin/ruby --disable=gems -n -e BEGIN{version=ARGV.shift;mis=ARGV.dup} -e END{abort "UNICODE version mismatch: #{mis}" unless mis.empty?} -e (mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o 15.0.0 ./enc/unicode/15.0.0/casefold.h ./enc/unicode/15.0.0/name2ctype.h'
make: *** [uncommon.mk:878: .rbconfig.time] Error 2
```
The fix that works for me is changing:
``` c
-e '(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \
```
To
``` c
-e "(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +\"#{Regexp.quote(version)}\"/o" \
```
```
--
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/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:119552] [Ruby master Bug#19268] Mingw64 Build Failure
2022-12-27 9:42 [ruby-core:111450] [Ruby master Bug#19268] Mingw64 Build Failure cfis (Charlie Savage) via ruby-core
2023-09-26 2:48 ` [ruby-core:114896] " cfis (Charlie Savage) via ruby-core
@ 2024-10-21 8:50 ` cfis (Charlie Savage) via ruby-core
2024-10-21 8:50 ` [ruby-core:119553] " cfis (Charlie Savage) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: cfis (Charlie Savage) via ruby-core @ 2024-10-21 8:50 UTC (permalink / raw)
To: ruby-core; +Cc: cfis (Charlie Savage)
Issue #19268 has been updated by cfis (Charlie Savage).
Still a issue in Ruby 3.3.x
One thing I forgot to mention in the original report, the file with the issue is:
ruby-3.3.5/common.mk
----------------------------------------
Bug #19268: Mingw64 Build Failure
https://bugs.ruby-lang.org/issues/19268#change-110169
* Author: cfis (Charlie Savage)
* Status: Open
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
For both Ruby 3.1.3 and Ruby 3.2.0, building on msys2/ucrt64 fails:
``` c
linking miniruby.exe
/usr/bin/sh: -c: line 1: syntax error near unexpected token `('
/usr/bin/sh: -c: line 1: `/usr/local/ruby/bin/ruby --disable=gems -n -e BEGIN{version=ARGV.shift;mis=ARGV.dup} -e END{abort "UNICODE version mismatch: #{mis}" unless mis.empty?} -e (mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o 15.0.0 ./enc/unicode/15.0.0/casefold.h ./enc/unicode/15.0.0/name2ctype.h'
make: *** [uncommon.mk:878: .rbconfig.time] Error 2
```
The fix that works for me is changing:
``` c
-e '(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \
```
To
``` c
-e "(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +\"#{Regexp.quote(version)}\"/o" \
```
```
--
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] 4+ messages in thread
* [ruby-core:119553] [Ruby master Bug#19268] Mingw64 Build Failure
2022-12-27 9:42 [ruby-core:111450] [Ruby master Bug#19268] Mingw64 Build Failure cfis (Charlie Savage) via ruby-core
2023-09-26 2:48 ` [ruby-core:114896] " cfis (Charlie Savage) via ruby-core
2024-10-21 8:50 ` [ruby-core:119552] " cfis (Charlie Savage) via ruby-core
@ 2024-10-21 8:50 ` cfis (Charlie Savage) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: cfis (Charlie Savage) via ruby-core @ 2024-10-21 8:50 UTC (permalink / raw)
To: ruby-core; +Cc: cfis (Charlie Savage)
Issue #19268 has been updated by cfis (Charlie Savage).
Actually this now works without change on latest version of mingw64 make. This issue can be closed.
----------------------------------------
Bug #19268: Mingw64 Build Failure
https://bugs.ruby-lang.org/issues/19268#change-110170
* Author: cfis (Charlie Savage)
* Status: Open
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
For both Ruby 3.1.3 and Ruby 3.2.0, building on msys2/ucrt64 fails:
``` c
linking miniruby.exe
/usr/bin/sh: -c: line 1: syntax error near unexpected token `('
/usr/bin/sh: -c: line 1: `/usr/local/ruby/bin/ruby --disable=gems -n -e BEGIN{version=ARGV.shift;mis=ARGV.dup} -e END{abort "UNICODE version mismatch: #{mis}" unless mis.empty?} -e (mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o 15.0.0 ./enc/unicode/15.0.0/casefold.h ./enc/unicode/15.0.0/name2ctype.h'
make: *** [uncommon.mk:878: .rbconfig.time] Error 2
```
The fix that works for me is changing:
``` c
-e '(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \
```
To
``` c
-e "(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +\"#{Regexp.quote(version)}\"/o" \
```
```
--
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] 4+ messages in thread
end of thread, other threads:[~2024-10-21 9:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27 9:42 [ruby-core:111450] [Ruby master Bug#19268] Mingw64 Build Failure cfis (Charlie Savage) via ruby-core
2023-09-26 2:48 ` [ruby-core:114896] " cfis (Charlie Savage) via ruby-core
2024-10-21 8:50 ` [ruby-core:119552] " cfis (Charlie Savage) via ruby-core
2024-10-21 8:50 ` [ruby-core:119553] " cfis (Charlie Savage) 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).