..................................................................................................................................................................................................................error: ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Failures: 1) MemoryPointer allows writing as a size_t Failure/Error: raise TypeError, "unable to resolve type '#{name}'" TypeError: unable to resolve type 'size_t' # ./lib/ffi/types.rb:69:in `find_type' # ./lib/ffi/types.rb:177:in `type_size' # ./spec/ffi/rbx/memory_pointer_spec.rb:97:in `initialize' # ./spec/ffi/rbx/memory_pointer_spec.rb:97:in `new' # ./spec/ffi/rbx/memory_pointer_spec.rb:97:in `block (2 levels) in ' 2) MemoryPointer allows writing a custom typedef Failure/Error: raise TypeError, "unable to resolve type '#{name}'" TypeError: unable to resolve type 'size_t' # ./lib/ffi/types.rb:69:in `find_type' # ./lib/ffi/types.rb:41:in `typedef' # ./spec/ffi/rbx/memory_pointer_spec.rb:115:in `block (2 levels) in ' 3) Custom type definitions detects the correct type for size_t Failure/Error: expect do Module.new do extend FFI::Library ffi_lib "c" if FFI::Platform.windows? # _read() is a function of msvcrt.dll attach_function :_read, [:int, :pointer, :uint], :int else # read(2) is a standard UNIX function attach_function :read, [:int, :pointer, :size_t], :ssize_t expected no Exception, got # with backtrace: # ./lib/ffi/types.rb:69:in `find_type' # ./lib/ffi/library.rb:585:in `find_type' # ./lib/ffi/library.rb:239:in `block in attach_function' # ./lib/ffi/library.rb:239:in `map' # ./lib/ffi/library.rb:239:in `attach_function' # ./spec/ffi/typedef_spec.rb:86:in `block (4 levels) in ' # ./spec/ffi/typedef_spec.rb:78:in `initialize' # ./spec/ffi/typedef_spec.rb:78:in `new' # ./spec/ffi/typedef_spec.rb:78:in `block (3 levels) in ' # ./spec/ffi/typedef_spec.rb:77:in `block (2 levels) in ' # ./spec/ffi/typedef_spec.rb:77:in `block (2 levels) in ' Finished in 1 minute 2.5 seconds (files took 41.75 seconds to load) 4867 examples, 3 failures Failed examples: rspec ./spec/ffi/rbx/memory_pointer_spec.rb:96 # MemoryPointer allows writing as a size_t rspec ./spec/ffi/rbx/memory_pointer_spec.rb:113 # MemoryPointer allows writing a custom typedef rspec ./spec/ffi/typedef_spec.rb:76 # Custom type definitions detects the correct type for size_t RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.QUrYi9 (%check) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.QUrYi9 (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rubygem-ffi.spec