Project

General

Profile

Actions

Bug #18457

closed

ruby 2.7.5 fiddle/types.rb use uint32_t but fiddle/cparser.rb lacks uint32_t

Added by YO4 (Yoshinao Muramatsu) about 2 years ago. Updated 7 months ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x64-mingw32]
[ruby-core:106950]

Description

C:\src\git\reline>bundle exec rake test_yamatanooroti
Traceback (most recent call last):
        17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in `<main>'
        16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:6:in `select'
        15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:21:in `block in <main>'
        14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb:21:in `require'
        13: from C:/src/git/reline/test/reline/yamatanooroti/test_rendering.rb:6:in `<top (required)>'
        12: from C:/src/git/yamatanooroti/lib/yamatanooroti.rb:67:in `inherited'
        11: from C:/src/git/yamatanooroti/lib/yamatanooroti.rb:30:in `const_missing'
        10: from C:/src/git/yamatanooroti/lib/yamatanooroti.rb:15:in `load_windows'
         9: from C:/src/git/yamatanooroti/lib/yamatanooroti.rb:15:in `require'
         8: from C:/src/git/yamatanooroti/lib/yamatanooroti/windows.rb:5:in `<top (required)>'
         7: from C:/src/git/yamatanooroti/lib/yamatanooroti/windows.rb:57:in `<module:WindowsDefinition>'
         6: from C:/Ruby27-x64/lib/ruby/2.7.0/fiddle/import.rb:223:in `struct'
         5: from C:/Ruby27-x64/lib/ruby/2.7.0/fiddle/cparser.rb:41:in `parse_struct_signature'
         4: from C:/Ruby27-x64/lib/ruby/2.7.0/fiddle/cparser.rb:41:in `each'
         3: from C:/Ruby27-x64/lib/ruby/2.7.0/fiddle/cparser.rb:46:in `block in parse_struct_signature'
         2: from C:/Ruby27-x64/lib/ruby/2.7.0/fiddle/cparser.rb:178:in `parse_ctype'
         1: from C:/Ruby27-x64/lib/ruby/2.7.0/fiddle/cparser.rb:178:in `parse_ctype'
C:/Ruby27-x64/lib/ruby/2.7.0/fiddle/cparser.rb:180:in `parse_ctype': unknown type: uint32_t (Fiddle::DLError)
rake aborted!
Command failed with status (1)

Tasks: TOP => test_yamatanooroti
(See full trace by running task with --trace)

related to https://github.com/ruby/ruby/commit/6601fb5672dc4c1f4bf5ee0f9b3f97a029df06cd

Updated by jeremyevans0 (Jeremy Evans) 7 months ago

  • Status changed from Open to Closed

I tested and confirmed this was fixed in Ruby 3.0.

Actions

Also available in: Atom PDF

Like0
Like0