Last active
July 4, 2021 13:41
-
-
Save junaruga/9235c841a649a08cc11803be1275434b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/fedora-release | |
Fedora release 34 (Thirty Four) | |
$ gcc --version | |
gcc (GCC) 11.1.1 20210531 (Red Hat 11.1.1-3) | |
Copyright (C) 2021 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
$ ruby -v | |
ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-linux] | |
$ gem env version | |
3.1.6 | |
$ bundle -v | |
Bundler version 2.1.4 | |
$ pwd | |
/home/jaruga/var/git/rubygems/bundler | |
$ bin/parallel_rspec | |
TEST_ENV_NUMBER=1 bin/rspec --seed 36178 spec/bundler/env_spec.rb spec/bundler/environment_preserver_spec.rb spec/bundler/fetcher/compact_index_spec.rb spec/bundler/settings/validator_spec.rb spec/bundler/ui/shell_spec.rb spec/bundler/vendored_persistent_spec.rb spec/commands/binstubs_spec.rb spec/commands/install_spec.rb spec/commands/newgem_spec.rb spec/install/failure_spec.rb spec/install/gemfile/platform_spec.rb spec/install/gemfile/ruby_spec.rb spec/install/gems/flex_spec.rb spec/install/gems/mirror_spec.rb spec/install/gems/sudo_spec.rb spec/install/gems/win32_spec.rb spec/realworld/double_check_spec.rb spec/resolver/platform_spec.rb spec/runtime/inline_spec.rb spec/update/gems/post_install_spec.rb | |
TEST_ENV_NUMBER=2 bin/rspec --seed 59701 spec/bundler/definition_spec.rb spec/bundler/dep_proxy_spec.rb spec/bundler/fetcher/downloader_spec.rb spec/bundler/plugin/source_list_spec.rb spec/bundler/source/git_spec.rb spec/bundler/source_list_spec.rb spec/cache/path_spec.rb spec/commands/show_spec.rb spec/commands/viz_spec.rb spec/install/gemfile/sources_spec.rb spec/install/gems/env_spec.rb spec/install/gems/native_extensions_spec.rb spec/install/security_policy_spec.rb spec/plugins/command_spec.rb spec/realworld/dependency_api_spec.rb spec/realworld/edgecases_spec.rb spec/realworld/parallel_spec.rb spec/resolver/basic_spec.rb spec/runtime/load_spec.rb spec/runtime/platform_spec.rb spec/update/git_spec.rb | |
TEST_ENV_NUMBER=3 bin/rspec --seed 28467 spec/bundler/build_metadata_spec.rb spec/bundler/fetcher/dependency_spec.rb spec/bundler/installer/parallel_installer_spec.rb spec/bundler/retry_spec.rb spec/bundler/rubygems_integration_spec.rb spec/bundler/spec_set_spec.rb spec/cache/gems_spec.rb spec/cache/git_spec.rb spec/commands/cache_spec.rb spec/commands/check_spec.rb spec/commands/config_spec.rb spec/commands/init_spec.rb spec/commands/licenses_spec.rb spec/commands/pristine_spec.rb spec/install/allow_offline_install_spec.rb spec/install/gemfile/git_spec.rb spec/install/gemfile/path_spec.rb spec/install/gems/post_install_spec.rb spec/install/process_lock_spec.rb spec/other/cli_dispatch_spec.rb spec/quality_es_spec.rb | |
TEST_ENV_NUMBER=4 bin/rspec --seed 51640 spec/bundler/bundler_spec.rb spec/bundler/fetcher_spec.rb spec/bundler/friendly_errors_spec.rb spec/bundler/index_spec.rb spec/bundler/installer/spec_installation_spec.rb spec/bundler/mirror_spec.rb spec/bundler/plugin/api_spec.rb spec/bundler/version_ranges_spec.rb spec/bundler/worker_spec.rb spec/commands/clean_spec.rb spec/commands/list_spec.rb spec/commands/lock_spec.rb spec/commands/open_spec.rb spec/commands/outdated_spec.rb spec/install/global_cache_spec.rb spec/install/path_spec.rb spec/install/yanked_spec.rb spec/lock/git_spec.rb spec/plugins/hook_spec.rb spec/runtime/executable_spec.rb spec/update/gemfile_spec.rb | |
TEST_ENV_NUMBER=5 bin/rspec --seed 1293 spec/bundler/cli_spec.rb spec/bundler/compact_index_client/updater_spec.rb spec/bundler/dsl_spec.rb spec/bundler/lockfile_parser_spec.rb spec/bundler/plugin/api/source_spec.rb spec/bundler/psyched_yaml_spec.rb spec/bundler/ruby_version_spec.rb spec/bundler/source/git/git_proxy_spec.rb spec/bundler/source/path_spec.rb spec/cache/platform_spec.rb spec/commands/fund_spec.rb spec/commands/info_spec.rb spec/install/gemfile/eval_gemfile_spec.rb spec/install/gemfile/groups_spec.rb spec/install/gems/dependency_api_spec.rb spec/install/gems/resolving_spec.rb spec/install/git_spec.rb spec/plugins/install_spec.rb spec/plugins/uninstall_spec.rb spec/realworld/gemfile_source_header_spec.rb spec/realworld/slow_perf_spec.rb spec/runtime/setup_spec.rb | |
TEST_ENV_NUMBER=6 bin/rspec --seed 5158 spec/bundler/gem_version_promoter_spec.rb spec/bundler/plugin/dsl_spec.rb spec/bundler/plugin/events_spec.rb spec/bundler/plugin/index_spec.rb spec/bundler/ruby_dsl_spec.rb spec/bundler/settings_spec.rb spec/bundler/source/rubygems_spec.rb spec/bundler/source_spec.rb spec/commands/console_spec.rb spec/commands/update_spec.rb spec/install/binstubs_spec.rb spec/install/deploy_spec.rb spec/install/gemfile/gemspec_spec.rb spec/install/gemfile_spec.rb spec/install/gems/standalone_spec.rb spec/install/gemspecs_spec.rb spec/install/prereleases_spec.rb spec/install/redownload_spec.rb spec/other/major_deprecation_spec.rb spec/runtime/with_unbundled_env_spec.rb spec/update/gems/fund_spec.rb | |
TEST_ENV_NUMBER=7 bin/rspec --seed 27452 spec/bundler/endpoint_specification_spec.rb spec/bundler/fetcher/index_spec.rb spec/bundler/gem_helper_spec.rb spec/bundler/installer/gem_installer_spec.rb spec/bundler/plugin/installer_spec.rb spec/bundler/plugin_spec.rb spec/bundler/remote_specification_spec.rb spec/bundler/source/rubygems/remote_spec.rb spec/cache/cache_path_spec.rb spec/commands/add_spec.rb spec/commands/exec_spec.rb spec/commands/help_spec.rb spec/commands/inject_spec.rb spec/commands/post_bundle_message_spec.rb spec/commands/remove_spec.rb spec/commands/version_spec.rb spec/install/bundler_spec.rb spec/lock/lockfile_spec.rb spec/plugins/list_spec.rb spec/update/path_spec.rb spec/update/redownload_spec.rb | |
TEST_ENV_NUMBER=8 bin/rspec --seed 32327 spec/bundler/fetcher/base_spec.rb spec/bundler/shared_helpers_spec.rb spec/bundler/stub_specification_spec.rb spec/bundler/ui_spec.rb spec/bundler/uri_credentials_filter_spec.rb spec/bundler/yaml_serializer_spec.rb spec/commands/doctor_spec.rb spec/commands/issue_spec.rb spec/install/gemfile/install_if_spec.rb spec/install/gemfile/lockfile_spec.rb spec/install/gemfile/specific_platform_spec.rb spec/install/gems/compact_index_spec.rb spec/install/gems/fund_spec.rb spec/other/ext_spec.rb spec/other/platform_spec.rb spec/plugins/source/example_spec.rb spec/plugins/source_spec.rb spec/quality_spec.rb spec/realworld/mirror_probe_spec.rb spec/runtime/gem_tasks_spec.rb spec/runtime/require_spec.rb | |
................................................................................................................................................................................................................................................................................................................................................................................................................................................................./home/jaruga/var/git/rubygems/bundler/spec/commands/doctor_spec.rb:82: warning: instance variable @unwritable_file not initialized | |
...................................................*...........................................................................................................................................................................................................................*.................................................................................................*........................................................................................................................................................................*...........................................................................*.......................................................................................*.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F...........................................................................................................................................................................................................................................*..................................................................................................................................................................................................................................... | |
Pending: (Failures listed here are expected and do not affect your suite's status) | |
1) Bundler.setup with gemified standard libraries default gem activation activates older versions of bundler | |
# No reason given | |
# ./spec/runtime/setup_spec.rb:1339 | |
2) Bundler.setup with gemified standard libraries default gem activation activates older versions of did_you_mean | |
# No reason given | |
# ./spec/runtime/setup_spec.rb:1339 | |
3) Bundler.setup with gemified standard libraries default gem activation activates newer versions of uri | |
# No reason given | |
# ./spec/runtime/setup_spec.rb:1324 | |
4) Bundler.setup with gemified standard libraries default gem activation activates newer versions of bundler | |
# No reason given | |
# ./spec/runtime/setup_spec.rb:1324 | |
5) Bundler.setup with gemified standard libraries default gem activation activates newer versions of did_you_mean | |
# No reason given | |
# ./spec/runtime/setup_spec.rb:1324 | |
6) Bundler.setup with gemified standard libraries default gem activation activates older versions of uri | |
# No reason given | |
# ./spec/runtime/setup_spec.rb:1339 | |
7) bundle exec `load`ing a ruby file instead of `exec`ing regarding $0 and __FILE__ when the path is relative with a leading ./ relative paths with ./ have absolute __FILE__ | |
# Not yet implemented | |
# ./spec/commands/exec_spec.rb:918 | |
Failures: | |
1) [TEST_ENV_NUMBER=1] bundler/inline#gemfile when requiring fileutils after does not show redefinition warnings | |
Failure/Error: | |
raise <<~ERROR | |
Invoking `#{cmd}` failed with output: | |
---------------------------------------------------------------------- | |
#{command_execution.stdboth} | |
---------------------------------------------------------------------- | |
ERROR | |
RuntimeError: | |
Commands: | |
$ /usr/local/ruby-2.7.3/bin/ruby -r/home/jaruga/var/git/rubygems/bundler/spec/support/hax.rb -w -e require\ \'rubygems/dependency_installer\'\;\ puts\ \$LOADED_FEATURES.grep\(/fileutils/\) | |
# $? => 0 | |
$ /usr/local/ruby-2.7.3/bin/ruby -r/home/jaruga/var/git/rubygems/bundler/spec/support/hax.rb -w -e gem\ \'fileutils\',\ \'\<\ 999999\'\;\ require\ \'fileutils\'\;\ puts\ FileUtils::VERSION | |
1.4.1 | |
# $? => 0 | |
$ gem install --no-document fileutils --version 1.4.1 | |
Successfully installed fileutils-1.4.1 | |
1 gem installed | |
# $? => 0 | |
Invoking `gem install --no-document fiddle` failed with output: | |
---------------------------------------------------------------------- | |
ERROR: Error installing fiddle: | |
ERROR: Failed to build gem native extension. | |
current directory: /home/jaruga/var/git/rubygems/bundler/tmp/1/gems/system/gems/fiddle-1.0.9/ext/fiddle | |
/usr/local/ruby-2.7.3/bin/ruby -I /home/jaruga/var/git/rubygems/bundler/tmp/rubygems/lib -r ./siteconf20210704-779850-gmkmev.rb extconf.rb | |
checking for --enable-debug-build option... no | |
checking for ffi.h... yes | |
checking for -lffi... yes | |
libffi_version: 3.1.0 | |
checking for sys/mman.h... yes | |
checking for dlfcn.h... yes | |
checking for -ldl... yes | |
checking for dlopen()... yes | |
checking for dlclose()... yes | |
checking for dlsym()... yes | |
checking for dlerror()... yes | |
checking for FFI_STDCALL in ffi.h... yes | |
checking signedness of size_t... unsigned | |
checking for ruby/memory_view.h... yes | |
checking for rb_memory_view_t in ruby/memory_view.h... no | |
creating Makefile | |
current directory: /home/jaruga/var/git/rubygems/bundler/tmp/1/gems/system/gems/fiddle-1.0.9/ext/fiddle | |
make DESTDIR\= clean | |
current directory: /home/jaruga/var/git/rubygems/bundler/tmp/1/gems/system/gems/fiddle-1.0.9/ext/fiddle | |
make DESTDIR\= | |
compiling closure.c | |
compiling conversions.c | |
compiling fiddle.c | |
compiling function.c | |
compiling handle.c | |
compiling memory_view.c | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h: In function ‘RBIMPL_ATTR_PURE’: | |
/usr/include/ruby/memory_view.h:125:1: error: expected declaration specifiers before ‘RBIMPL_ATTR_PURE’ | |
125 | RBIMPL_ATTR_PURE() | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:127:1: error: expected declaration specifiers before ‘RBIMPL_ATTR_NOALIAS’ | |
127 | RBIMPL_ATTR_NOALIAS() | |
| ^~~~~~~~~~~~~~~~~~~ | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h:129:1: error: expected declaration specifiers before ‘RBIMPL_ATTR_NOALIAS’ | |
129 | RBIMPL_ATTR_NOALIAS() | |
| ^~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:145:19: error: storage class specified for parameter ‘rb_memory_view_exported_object_registry’ | |
145 | RUBY_EXTERN VALUE rb_memory_view_exported_object_registry; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:146:34: error: storage class specified for parameter ‘rb_memory_view_exported_object_registry_data_type’ | |
146 | RUBY_EXTERN const rb_data_type_t rb_memory_view_exported_object_registry_data_type; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:148:1: error: expected declaration specifiers before ‘#pragma’ | |
148 | RBIMPL_SYMBOL_EXPORT_END() | |
| ^~~ | |
In file included from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/errno.h:37:13: error: storage class specified for parameter ‘__errno_location’ | |
37 | extern int *__errno_location (void) __THROW __attribute_const__; | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:45:14: error: storage class specified for parameter ‘program_invocation_name’ | |
45 | extern char *program_invocation_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:46:14: error: storage class specified for parameter ‘program_invocation_short_name’ | |
46 | extern char *program_invocation_short_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from /usr/include/errno.h:48, | |
from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/bits/types/error_t.h:22:13: error: storage class specified for parameter ‘error_t’ | |
22 | typedef int error_t; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:12, | |
from memory_view.c:20: | |
/usr/include/sys/mman.h:57:14: error: storage class specified for parameter ‘mmap’ | |
57 | extern void *mmap (void *__addr, size_t __len, int __prot, | |
| ^~~~ | |
/usr/include/sys/mman.h:70:14: error: storage class specified for parameter ‘mmap64’ | |
70 | extern void *mmap64 (void *__addr, size_t __len, int __prot, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:76:12: error: storage class specified for parameter ‘munmap’ | |
76 | extern int munmap (void *__addr, size_t __len) __THROW; | |
| ^~~~~~ | |
/usr/include/sys/mman.h:81:12: error: storage class specified for parameter ‘mprotect’ | |
81 | extern int mprotect (void *__addr, size_t __len, int __prot) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:89:12: error: storage class specified for parameter ‘msync’ | |
89 | extern int msync (void *__addr, size_t __len, int __flags); | |
| ^~~~~ | |
/usr/include/sys/mman.h:94:12: error: storage class specified for parameter ‘madvise’ | |
94 | extern int madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:98:12: error: storage class specified for parameter ‘posix_madvise’ | |
98 | extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:103:12: error: storage class specified for parameter ‘mlock’ | |
103 | extern int mlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~ | |
/usr/include/sys/mman.h:106:12: error: storage class specified for parameter ‘munlock’ | |
106 | extern int munlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:111:12: error: storage class specified for parameter ‘mlockall’ | |
111 | extern int mlockall (int __flags) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:115:12: error: storage class specified for parameter ‘munlockall’ | |
115 | extern int munlockall (void) __THROW; | |
| ^~~~~~~~~~ | |
/usr/include/sys/mman.h:123:12: error: storage class specified for parameter ‘mincore’ | |
123 | extern int mincore (void *__start, size_t __len, unsigned char *__vec) | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:133:14: error: storage class specified for parameter ‘mremap’ | |
133 | extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:138:12: error: storage class specified for parameter ‘remap_file_pages’ | |
138 | extern int remap_file_pages (void *__start, size_t __size, int __prot, | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:144:12: error: storage class specified for parameter ‘shm_open’ | |
144 | extern int shm_open (const char *__name, int __oflag, mode_t __mode); | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:147:12: error: storage class specified for parameter ‘shm_unlink’ | |
147 | extern int shm_unlink (const char *__name); | |
| ^~~~~~~~~~ | |
In file included from /usr/include/dlfcn.h:27, | |
from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/bits/dlfcn.h:60:13: error: storage class specified for parameter ‘_dl_mcount_wrapper_check’ | |
60 | extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/dlfcn.h:44:18: error: storage class specified for parameter ‘Lmid_t’ | |
44 | typedef long int Lmid_t; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:56:14: error: storage class specified for parameter ‘dlopen’ | |
56 | extern void *dlopen (const char *__file, int __mode) __THROWNL; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:60:12: error: storage class specified for parameter ‘dlclose’ | |
60 | extern int dlclose (void *__handle) __THROWNL __nonnull ((1)); | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:64:14: error: storage class specified for parameter ‘dlsym’ | |
64 | extern void *dlsym (void *__restrict __handle, | |
| ^~~~~ | |
/usr/include/dlfcn.h:69:23: error: expected declaration specifiers or ‘...’ before ‘Lmid_t’ | |
69 | extern void *dlmopen (Lmid_t __nsid, const char *__file, int __mode) __THROWNL; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:73:14: error: storage class specified for parameter ‘dlvsym’ | |
73 | extern void *dlvsym (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:82:14: error: storage class specified for parameter ‘dlerror’ | |
82 | extern char *dlerror (void) __THROW; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:94:3: error: storage class specified for parameter ‘Dl_info’ | |
94 | } Dl_info; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:98:43: error: expected declaration specifiers or ‘...’ before ‘Dl_info’ | |
98 | extern int dladdr (const void *__address, Dl_info *__info) | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:102:44: error: expected declaration specifiers or ‘...’ before ‘Dl_info’ | |
102 | extern int dladdr1 (const void *__address, Dl_info *__info, | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:123:12: error: storage class specified for parameter ‘dlinfo’ | |
123 | extern int dlinfo (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:175:3: error: storage class specified for parameter ‘Dl_serpath’ | |
175 | } Dl_serpath; | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:190:5: error: expected specifier-qualifier-list before ‘Dl_serpath’ | |
190 | Dl_serpath dls_serpath[0]; /* Actually longer, dls_cnt elements. */ | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:196:3: error: storage class specified for parameter ‘Dl_serinfo’ | |
196 | } Dl_serinfo; | |
| ^~~~~~~~~~ | |
In file included from /usr/include/ffitarget.h:18, | |
from /usr/include/ffi-x86_64.h:67, | |
from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffitarget-x86_64.h:70:32: error: storage class specified for parameter ‘ffi_arg’ | |
70 | typedef unsigned long ffi_arg; | |
| ^~~~~~~ | |
/usr/include/ffitarget-x86_64.h:71:32: error: storage class specified for parameter ‘ffi_sarg’ | |
71 | typedef signed long ffi_sarg; | |
| ^~~~~~~~ | |
/usr/include/ffitarget-x86_64.h:111:3: error: storage class specified for parameter ‘ffi_abi’ | |
111 | } ffi_abi; | |
| ^~~~~~~ | |
In file included from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffi-x86_64.h:118:3: error: storage class specified for parameter ‘ffi_type’ | |
118 | } ffi_type; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:184:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_void’ | |
184 | FFI_EXTERN ffi_type ffi_type_void; | |
| ^~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:185:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint8’ | |
185 | FFI_EXTERN ffi_type ffi_type_uint8; | |
| ^~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:186:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint8’ | |
186 | FFI_EXTERN ffi_type ffi_type_sint8; | |
| ^~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:187:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint16’ | |
187 | FFI_EXTERN ffi_type ffi_type_uint16; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:188:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint16’ | |
188 | FFI_EXTERN ffi_type ffi_type_sint16; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:189:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint32’ | |
189 | FFI_EXTERN ffi_type ffi_type_uint32; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:190:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint32’ | |
190 | FFI_EXTERN ffi_type ffi_type_sint32; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:191:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint64’ | |
191 | FFI_EXTERN ffi_type ffi_type_uint64; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:192:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint64’ | |
192 | FFI_EXTERN ffi_type ffi_type_sint64; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:193:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_float’ | |
193 | FFI_EXTERN ffi_type ffi_type_float; | |
| ^~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:194:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_double’ | |
194 | FFI_EXTERN ffi_type ffi_type_double; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:195:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_pointer’ | |
195 | FFI_EXTERN ffi_type ffi_type_pointer; | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:198:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_longdouble’ | |
198 | FFI_EXTERN ffi_type ffi_type_longdouble; | |
| ^~~~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:208:3: error: storage class specified for parameter ‘ffi_status’ | |
208 | } ffi_status; | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:210:18: error: storage class specified for parameter ‘FFI_TYPE’ | |
210 | typedef unsigned FFI_TYPE; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:213:3: error: expected specifier-qualifier-list before ‘ffi_abi’ | |
213 | ffi_abi abi; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:222:3: error: storage class specified for parameter ‘ffi_cif’ | |
222 | } ffi_cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:230:1: error: expected declaration specifiers before ‘ffi_status’ | |
230 | ffi_status ffi_prep_cif_core(ffi_cif *cif, | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:253:3: error: expected specifier-qualifier-list before ‘ffi_sarg’ | |
253 | ffi_sarg sint; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:258:3: error: storage class specified for parameter ‘ffi_raw’ | |
258 | } ffi_raw; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:271:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_java_raw’ | |
271 | typedef ffi_raw ffi_java_raw; | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:275:20: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
275 | void ffi_raw_call (ffi_cif *cif, | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:278:20: error: expected declaration specifiers or ‘...’ before ‘ffi_raw’ | |
278 | ffi_raw *avalue); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:280:27: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
280 | void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:280:54: error: expected declaration specifiers or ‘...’ before ‘ffi_raw’ | |
280 | void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:281:27: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
281 | void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:281:41: error: expected declaration specifiers or ‘...’ before ‘ffi_raw’ | |
281 | void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:282:22: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
282 | size_t ffi_raw_size (ffi_cif *cif); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:288:25: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
288 | void ffi_java_raw_call (ffi_cif *cif, | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:291:25: error: unknown type name ‘ffi_java_raw’ | |
291 | ffi_java_raw *avalue); | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:293:32: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
293 | void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:293:59: error: unknown type name ‘ffi_java_raw’ | |
293 | void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw); | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:294:32: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
294 | void ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:294:46: error: unknown type name ‘ffi_java_raw’ | |
294 | void ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args); | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:295:27: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
295 | size_t ffi_java_raw_size (ffi_cif *cif); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:311:3: error: expected specifier-qualifier-list before ‘ffi_cif’ | |
311 | ffi_cif *cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:315:3: error: storage class specified for parameter ‘ffi_closure’ | |
315 | } ffi_closure __attribute__((aligned (8))); | |
| ^~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:315:3: error: alignment may not be specified for ‘ffi_closure’ | |
/usr/include/ffi-x86_64.h:326:1: error: expected declaration specifiers before ‘ffi_status’ | |
326 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:332:1: error: expected declaration specifiers before ‘ffi_status’ | |
332 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:349:3: error: expected specifier-qualifier-list before ‘ffi_cif’ | |
349 | ffi_cif *cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:365:3: error: storage class specified for parameter ‘ffi_raw_closure’ | |
365 | } ffi_raw_closure; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:375:3: error: expected specifier-qualifier-list before ‘ffi_cif’ | |
375 | ffi_cif *cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:391:3: error: storage class specified for parameter ‘ffi_java_raw_closure’ | |
391 | } ffi_java_raw_closure; | |
| ^~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:393:1: error: expected declaration specifiers before ‘ffi_status’ | |
393 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:399:1: error: expected declaration specifiers before ‘ffi_status’ | |
399 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:406:1: error: expected declaration specifiers before ‘ffi_status’ | |
406 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:412:1: error: expected declaration specifiers before ‘ffi_status’ | |
412 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:423:1: error: expected declaration specifiers before ‘ffi_status’ | |
423 | ffi_status ffi_prep_cif(ffi_cif *cif, | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:429:1: error: expected declaration specifiers before ‘ffi_status’ | |
429 | ffi_status ffi_prep_cif_var(ffi_cif *cif, | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:436:15: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
436 | void ffi_call(ffi_cif *cif, | |
| ^~~~~~~ | |
In file included from ./fiddle.h:104, | |
from memory_view.c:20: | |
./conversions.h:8:5: error: expected specifier-qualifier-list before ‘ffi_arg’ | |
8 | ffi_arg fffi_arg; /* rvalue smaller than unsigned long */ | |
| ^~~~~~~ | |
./conversions.h:25:3: error: storage class specified for parameter ‘fiddle_generic’ | |
25 | } fiddle_generic; | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:28:1: error: expected declaration specifiers before ‘ffi_type’ | |
28 | ffi_type * rb_fiddle_int_to_ffi_type(int type); | |
| ^~~~~~~~ | |
./conversions.h:29:55: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
29 | void rb_fiddle_value_to_generic(int type, VALUE *src, fiddle_generic *dst); | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:30:49: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
30 | VALUE rb_fiddle_generic_to_value(VALUE rettype, fiddle_generic retval); | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:33:1: error: expected declaration specifiers before ‘ffi_type’ | |
33 | ffi_type * int_to_ffi_type(int type); | |
| ^~~~~~~~ | |
./conversions.h:34:44: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
34 | void value_to_generic(int type, VALUE src, fiddle_generic *dst); | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:35:39: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
35 | VALUE generic_to_value(VALUE rettype, fiddle_generic retval); | |
| ^~~~~~~~~~~~~~ | |
In file included from memory_view.c:20: | |
./fiddle.h:196:14: error: storage class specified for parameter ‘mFiddle’ | |
196 | extern VALUE mFiddle; | |
| ^~~~~~~ | |
./fiddle.h:197:14: error: storage class specified for parameter ‘rb_eFiddleDLError’ | |
197 | extern VALUE rb_eFiddleDLError; | |
| ^~~~~~~~~~~~~~~~~ | |
./fiddle.h:199:7: error: declaration for parameter ‘rb_fiddle_new_function’ but no such parameter | |
199 | VALUE rb_fiddle_new_function(VALUE address, VALUE arg_types, VALUE ret_type); | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
./fiddle.h:197:14: error: declaration for parameter ‘rb_eFiddleDLError’ but no such parameter | |
197 | extern VALUE rb_eFiddleDLError; | |
| ^~~~~~~~~~~~~~~~~ | |
./fiddle.h:196:14: error: declaration for parameter ‘mFiddle’ but no such parameter | |
196 | extern VALUE mFiddle; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:105, | |
from memory_view.c:20: | |
./function.h:6:6: error: declaration for parameter ‘Init_fiddle_function’ but no such parameter | |
6 | void Init_fiddle_function(void); | |
| ^~~~~~~~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:104, | |
from memory_view.c:20: | |
./conversions.h:27:7: error: declaration for parameter ‘rb_fiddle_type_ensure’ but no such parameter | |
27 | VALUE rb_fiddle_type_ensure(VALUE type); | |
| ^~~~~~~~~~~~~~~~~~~~~ | |
./conversions.h:25:3: error: declaration for parameter ‘fiddle_generic’ but no such parameter | |
25 | } fiddle_generic; | |
| ^~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:103, | |
from memory_view.c:20: | |
./closure.h:6:6: error: declaration for parameter ‘Init_fiddle_closure’ but no such parameter | |
6 | void Init_fiddle_closure(void); | |
| ^~~~~~~~~~~~~~~~~~~ | |
In file included from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffi-x86_64.h:391:3: error: declaration for parameter ‘ffi_java_raw_closure’ but no such parameter | |
391 | } ffi_java_raw_closure; | |
| ^~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:365:3: error: declaration for parameter ‘ffi_raw_closure’ but no such parameter | |
365 | } ffi_raw_closure; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:324:6: error: declaration for parameter ‘ffi_closure_free’ but no such parameter | |
324 | void ffi_closure_free (void *); | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:323:7: error: declaration for parameter ‘ffi_closure_alloc’ but no such parameter | |
323 | void *ffi_closure_alloc (size_t size, void **code); | |
| ^~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:315:3: error: declaration for parameter ‘ffi_closure’ but no such parameter | |
315 | } ffi_closure __attribute__((aligned (8))); | |
| ^~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:258:3: error: declaration for parameter ‘ffi_raw’ but no such parameter | |
258 | } ffi_raw; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:222:3: error: declaration for parameter ‘ffi_cif’ but no such parameter | |
222 | } ffi_cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:210:18: error: declaration for parameter ‘FFI_TYPE’ but no such parameter | |
210 | typedef unsigned FFI_TYPE; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:208:3: error: declaration for parameter ‘ffi_status’ but no such parameter | |
208 | } ffi_status; | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:118:3: error: declaration for parameter ‘ffi_type’ but no such parameter | |
118 | } ffi_type; | |
| ^~~~~~~~ | |
In file included from /usr/include/ffitarget.h:18, | |
from /usr/include/ffi-x86_64.h:67, | |
from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffitarget-x86_64.h:111:3: error: declaration for parameter ‘ffi_abi’ but no such parameter | |
111 | } ffi_abi; | |
| ^~~~~~~ | |
/usr/include/ffitarget-x86_64.h:71:32: error: declaration for parameter ‘ffi_sarg’ but no such parameter | |
71 | typedef signed long ffi_sarg; | |
| ^~~~~~~~ | |
/usr/include/ffitarget-x86_64.h:70:32: error: declaration for parameter ‘ffi_arg’ but no such parameter | |
70 | typedef unsigned long ffi_arg; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/dlfcn.h:196:3: error: declaration for parameter ‘Dl_serinfo’ but no such parameter | |
196 | } Dl_serinfo; | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:175:3: error: declaration for parameter ‘Dl_serpath’ but no such parameter | |
175 | } Dl_serpath; | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:123:12: error: declaration for parameter ‘dlinfo’ but no such parameter | |
123 | extern int dlinfo (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:94:3: error: declaration for parameter ‘Dl_info’ but no such parameter | |
94 | } Dl_info; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:82:14: error: declaration for parameter ‘dlerror’ but no such parameter | |
82 | extern char *dlerror (void) __THROW; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:73:14: error: declaration for parameter ‘dlvsym’ but no such parameter | |
73 | extern void *dlvsym (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:64:14: error: declaration for parameter ‘dlsym’ but no such parameter | |
64 | extern void *dlsym (void *__restrict __handle, | |
| ^~~~~ | |
/usr/include/dlfcn.h:60:12: error: declaration for parameter ‘dlclose’ but no such parameter | |
60 | extern int dlclose (void *__handle) __THROWNL __nonnull ((1)); | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:56:14: error: declaration for parameter ‘dlopen’ but no such parameter | |
56 | extern void *dlopen (const char *__file, int __mode) __THROWNL; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:44:18: error: declaration for parameter ‘Lmid_t’ but no such parameter | |
44 | typedef long int Lmid_t; | |
| ^~~~~~ | |
In file included from /usr/include/dlfcn.h:27, | |
from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/bits/dlfcn.h:60:13: error: declaration for parameter ‘_dl_mcount_wrapper_check’ but no such parameter | |
60 | extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:12, | |
from memory_view.c:20: | |
/usr/include/sys/mman.h:147:12: error: declaration for parameter ‘shm_unlink’ but no such parameter | |
147 | extern int shm_unlink (const char *__name); | |
| ^~~~~~~~~~ | |
/usr/include/sys/mman.h:144:12: error: declaration for parameter ‘shm_open’ but no such parameter | |
144 | extern int shm_open (const char *__name, int __oflag, mode_t __mode); | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:138:12: error: declaration for parameter ‘remap_file_pages’ but no such parameter | |
138 | extern int remap_file_pages (void *__start, size_t __size, int __prot, | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:133:14: error: declaration for parameter ‘mremap’ but no such parameter | |
133 | extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:123:12: error: declaration for parameter ‘mincore’ but no such parameter | |
123 | extern int mincore (void *__start, size_t __len, unsigned char *__vec) | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:115:12: error: declaration for parameter ‘munlockall’ but no such parameter | |
115 | extern int munlockall (void) __THROW; | |
| ^~~~~~~~~~ | |
/usr/include/sys/mman.h:111:12: error: declaration for parameter ‘mlockall’ but no such parameter | |
111 | extern int mlockall (int __flags) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:106:12: error: declaration for parameter ‘munlock’ but no such parameter | |
106 | extern int munlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:103:12: error: declaration for parameter ‘mlock’ but no such parameter | |
103 | extern int mlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~ | |
/usr/include/sys/mman.h:98:12: error: declaration for parameter ‘posix_madvise’ but no such parameter | |
98 | extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:94:12: error: declaration for parameter ‘madvise’ but no such parameter | |
94 | extern int madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:89:12: error: declaration for parameter ‘msync’ but no such parameter | |
89 | extern int msync (void *__addr, size_t __len, int __flags); | |
| ^~~~~ | |
/usr/include/sys/mman.h:81:12: error: declaration for parameter ‘mprotect’ but no such parameter | |
81 | extern int mprotect (void *__addr, size_t __len, int __prot) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:76:12: error: declaration for parameter ‘munmap’ but no such parameter | |
76 | extern int munmap (void *__addr, size_t __len) __THROW; | |
| ^~~~~~ | |
/usr/include/sys/mman.h:70:14: error: declaration for parameter ‘mmap64’ but no such parameter | |
70 | extern void *mmap64 (void *__addr, size_t __len, int __prot, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:57:14: error: declaration for parameter ‘mmap’ but no such parameter | |
57 | extern void *mmap (void *__addr, size_t __len, int __prot, | |
| ^~~~ | |
In file included from /usr/include/bits/mman-linux.h:113, | |
from /usr/include/bits/mman.h:34, | |
from /usr/include/sys/mman.h:41, | |
from ./fiddle.h:12, | |
from memory_view.c:20: | |
/usr/include/bits/mman-shared.h:77:5: error: declaration for parameter ‘pkey_mprotect’ but no such parameter | |
77 | int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) __THROW; | |
| ^~~~~~~~~~~~~ | |
/usr/include/bits/mman-shared.h:73:5: error: declaration for parameter ‘pkey_free’ but no such parameter | |
73 | int pkey_free (int __key) __THROW; | |
| ^~~~~~~~~ | |
/usr/include/bits/mman-shared.h:69:5: error: declaration for parameter ‘pkey_get’ but no such parameter | |
69 | int pkey_get (int __key) __THROW; | |
| ^~~~~~~~ | |
/usr/include/bits/mman-shared.h:65:5: error: declaration for parameter ‘pkey_set’ but no such parameter | |
65 | int pkey_set (int __key, unsigned int __access_rights) __THROW; | |
| ^~~~~~~~ | |
/usr/include/bits/mman-shared.h:61:5: error: declaration for parameter ‘pkey_alloc’ but no such parameter | |
61 | int pkey_alloc (unsigned int __flags, unsigned int __access_rights) __THROW; | |
| ^~~~~~~~~~ | |
/usr/include/bits/mman-shared.h:55:5: error: declaration for parameter ‘mlock2’ but no such parameter | |
55 | int mlock2 (const void *__addr, size_t __length, unsigned int __flags) __THROW; | |
| ^~~~~~ | |
/usr/include/bits/mman-shared.h:51:5: error: declaration for parameter ‘memfd_create’ but no such parameter | |
51 | int memfd_create (const char *__name, unsigned int __flags) __THROW; | |
| ^~~~~~~~~~~~ | |
In file included from /usr/include/errno.h:48, | |
from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/bits/types/error_t.h:22:13: error: declaration for parameter ‘error_t’ but no such parameter | |
22 | typedef int error_t; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/errno.h:46:14: error: declaration for parameter ‘program_invocation_short_name’ but no such parameter | |
46 | extern char *program_invocation_short_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:45:14: error: declaration for parameter ‘program_invocation_name’ but no such parameter | |
45 | extern char *program_invocation_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:37:13: error: declaration for parameter ‘__errno_location’ but no such parameter | |
37 | extern int *__errno_location (void) __THROW __attribute_const__; | |
| ^~~~~~~~~~~~~~~~ | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h:146:34: error: declaration for parameter ‘rb_memory_view_exported_object_registry_data_type’ but no such parameter | |
146 | RUBY_EXTERN const rb_data_type_t rb_memory_view_exported_object_registry_data_type; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:145:19: error: declaration for parameter ‘rb_memory_view_exported_object_registry’ but no such parameter | |
145 | RUBY_EXTERN VALUE rb_memory_view_exported_object_registry; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:142:6: error: declaration for parameter ‘rb_memory_view_release’ but no such parameter | |
142 | bool rb_memory_view_release(rb_memory_view_t* memory_view); | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:141:6: error: declaration for parameter ‘rb_memory_view_get’ but no such parameter | |
141 | bool rb_memory_view_get(VALUE obj, rb_memory_view_t* memory_view, int flags); | |
| ^~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:140:6: error: declaration for parameter ‘rb_memory_view_available_p’ but no such parameter | |
140 | bool rb_memory_view_available_p(VALUE obj); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:138:7: error: declaration for parameter ‘rb_memory_view_get_item’ but no such parameter | |
138 | VALUE rb_memory_view_get_item(rb_memory_view_t *view, const ssize_t *indices); | |
| ^~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:137:6: error: declaration for parameter ‘rb_memory_view_prepare_item_desc’ but no such parameter | |
137 | void rb_memory_view_prepare_item_desc(rb_memory_view_t *view); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:136:7: error: declaration for parameter ‘rb_memory_view_extract_item_members’ but no such parameter | |
136 | VALUE rb_memory_view_extract_item_members(const void *ptr, const rb_memory_view_item_component_t *members, const size_t n_members); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:135:7: error: declaration for parameter ‘rb_memory_view_get_item_pointer’ but no such parameter | |
135 | void *rb_memory_view_get_item_pointer(rb_memory_view_t *view, const ssize_t *indices); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:134:9: error: declaration for parameter ‘rb_memory_view_item_size_from_format’ but no such parameter | |
134 | ssize_t rb_memory_view_item_size_from_format(const char *format, const char **err); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:131:9: error: declaration for parameter ‘rb_memory_view_parse_item_format’ but no such parameter | |
131 | ssize_t rb_memory_view_parse_item_format(const char *format, | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h:124:6: error: declaration for parameter ‘rb_memory_view_is_row_major_contiguous’ but no such parameter | |
124 | bool rb_memory_view_is_row_major_contiguous(const rb_memory_view_t *view); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
memory_view.c:324: error: expected ‘{’ at end of input | |
memory_view.c:324: warning: control reaches end of non-void function [-Wreturn-type] | |
memory_view.c: At top level: | |
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics | |
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics | |
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics | |
make: *** [Makefile:246: memory_view.o] Error 1 | |
make failed, exit code 2 | |
Gem files will remain installed in /home/jaruga/var/git/rubygems/bundler/tmp/1/gems/system/gems/fiddle-1.0.9 for inspection. | |
Results logged to /home/jaruga/var/git/rubygems/bundler/tmp/1/gems/system/extensions/x86_64-linux/2.7.0/fiddle-1.0.9/gem_make.out | |
Building native extensions. This could take a while... | |
---------------------------------------------------------------------- | |
# ./spec/support/helpers.rb:208:in `sys_exec' | |
# ./spec/support/helpers.rb:171:in `gem_command' | |
# ./spec/support/helpers.rb:419:in `block (2 levels) in realworld_system_gems' | |
# ./spec/support/helpers.rb:418:in `each' | |
# ./spec/support/helpers.rb:418:in `block in realworld_system_gems' | |
# ./spec/support/helpers.rb:352:in `block in with_gem_path_as' | |
# ./spec/support/helpers.rb:366:in `without_env_side_effects' | |
# ./spec/support/helpers.rb:348:in `with_gem_path_as' | |
# ./spec/support/helpers.rb:417:in `realworld_system_gems' | |
# ./spec/runtime/inline_spec.rb:395:in `block (2 levels) in <top (required)>' | |
# ./spec/spec_helper.rb:99:in `block (4 levels) in <top (required)>' | |
# ./spec/spec_helper.rb:99:in `block (3 levels) in <top (required)>' | |
# ./spec/support/helpers.rb:352:in `block in with_gem_path_as' | |
# ./spec/support/helpers.rb:366:in `without_env_side_effects' | |
# ./spec/support/helpers.rb:348:in `with_gem_path_as' | |
# ./spec/spec_helper.rb:98:in `block (2 levels) in <top (required)>' | |
# ./spec/support/rubygems_ext.rb:99:in `load' | |
# ./spec/support/rubygems_ext.rb:99:in `gem_load_and_activate' | |
# ./spec/support/rubygems_ext.rb:18:in `gem_load' | |
Finished in 9 minutes 21 seconds (files took 0 seconds to load) | |
3129 examples, 1 failure, 7 pending | |
Failed examples: | |
rspec ./spec/runtime/inline_spec.rb:382 # [TEST_ENV_NUMBER=1] bundler/inline#gemfile when requiring fileutils after does not show redefinition warnings | |
$ gem install --no-document fiddle --user | |
Fetching fiddle-1.0.9.gem | |
Building native extensions. This could take a while... | |
ERROR: Error installing fiddle: | |
ERROR: Failed to build gem native extension. | |
current directory: /home/jaruga/.gem/ruby/2.7.0/gems/fiddle-1.0.9/ext/fiddle | |
/usr/local/ruby-2.7.3/bin/ruby -I /usr/local/ruby-2.7.3/lib/ruby/2.7.0 -r ./siteconf20210704-791519-1jr4m15.rb extconf.rb | |
checking for --enable-debug-build option... no | |
checking for ffi.h... yes | |
checking for -lffi... yes | |
libffi_version: 3.1.0 | |
checking for sys/mman.h... yes | |
checking for dlfcn.h... yes | |
checking for -ldl... yes | |
checking for dlopen()... yes | |
checking for dlclose()... yes | |
checking for dlsym()... yes | |
checking for dlerror()... yes | |
checking for FFI_STDCALL in ffi.h... yes | |
checking signedness of size_t... unsigned | |
checking for ruby/memory_view.h... yes | |
checking for rb_memory_view_t in ruby/memory_view.h... no | |
creating Makefile | |
current directory: /home/jaruga/.gem/ruby/2.7.0/gems/fiddle-1.0.9/ext/fiddle | |
make "DESTDIR=" clean | |
current directory: /home/jaruga/.gem/ruby/2.7.0/gems/fiddle-1.0.9/ext/fiddle | |
make "DESTDIR=" | |
compiling closure.c | |
compiling conversions.c | |
compiling fiddle.c | |
compiling function.c | |
compiling handle.c | |
compiling memory_view.c | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h: In function ‘RBIMPL_ATTR_PURE’: | |
/usr/include/ruby/memory_view.h:125:1: error: expected declaration specifiers before ‘RBIMPL_ATTR_PURE’ | |
125 | RBIMPL_ATTR_PURE() | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:127:1: error: expected declaration specifiers before ‘RBIMPL_ATTR_NOALIAS’ | |
127 | RBIMPL_ATTR_NOALIAS() | |
| ^~~~~~~~~~~~~~~~~~~ | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h:129:1: error: expected declaration specifiers before ‘RBIMPL_ATTR_NOALIAS’ | |
129 | RBIMPL_ATTR_NOALIAS() | |
| ^~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:145:19: error: storage class specified for parameter ‘rb_memory_view_exported_object_registry’ | |
145 | RUBY_EXTERN VALUE rb_memory_view_exported_object_registry; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:146:34: error: storage class specified for parameter ‘rb_memory_view_exported_object_registry_data_type’ | |
146 | RUBY_EXTERN const rb_data_type_t rb_memory_view_exported_object_registry_data_type; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:148:1: error: expected declaration specifiers before ‘#pragma’ | |
148 | RBIMPL_SYMBOL_EXPORT_END() | |
| ^~~ | |
In file included from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/errno.h:37:13: error: storage class specified for parameter ‘__errno_location’ | |
37 | extern int *__errno_location (void) __THROW __attribute_const__; | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:45:14: error: storage class specified for parameter ‘program_invocation_name’ | |
45 | extern char *program_invocation_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:46:14: error: storage class specified for parameter ‘program_invocation_short_name’ | |
46 | extern char *program_invocation_short_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from /usr/include/errno.h:48, | |
from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/bits/types/error_t.h:22:13: error: storage class specified for parameter ‘error_t’ | |
22 | typedef int error_t; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:12, | |
from memory_view.c:20: | |
/usr/include/sys/mman.h:57:14: error: storage class specified for parameter ‘mmap’ | |
57 | extern void *mmap (void *__addr, size_t __len, int __prot, | |
| ^~~~ | |
/usr/include/sys/mman.h:70:14: error: storage class specified for parameter ‘mmap64’ | |
70 | extern void *mmap64 (void *__addr, size_t __len, int __prot, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:76:12: error: storage class specified for parameter ‘munmap’ | |
76 | extern int munmap (void *__addr, size_t __len) __THROW; | |
| ^~~~~~ | |
/usr/include/sys/mman.h:81:12: error: storage class specified for parameter ‘mprotect’ | |
81 | extern int mprotect (void *__addr, size_t __len, int __prot) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:89:12: error: storage class specified for parameter ‘msync’ | |
89 | extern int msync (void *__addr, size_t __len, int __flags); | |
| ^~~~~ | |
/usr/include/sys/mman.h:94:12: error: storage class specified for parameter ‘madvise’ | |
94 | extern int madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:98:12: error: storage class specified for parameter ‘posix_madvise’ | |
98 | extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:103:12: error: storage class specified for parameter ‘mlock’ | |
103 | extern int mlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~ | |
/usr/include/sys/mman.h:106:12: error: storage class specified for parameter ‘munlock’ | |
106 | extern int munlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:111:12: error: storage class specified for parameter ‘mlockall’ | |
111 | extern int mlockall (int __flags) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:115:12: error: storage class specified for parameter ‘munlockall’ | |
115 | extern int munlockall (void) __THROW; | |
| ^~~~~~~~~~ | |
/usr/include/sys/mman.h:123:12: error: storage class specified for parameter ‘mincore’ | |
123 | extern int mincore (void *__start, size_t __len, unsigned char *__vec) | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:133:14: error: storage class specified for parameter ‘mremap’ | |
133 | extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:138:12: error: storage class specified for parameter ‘remap_file_pages’ | |
138 | extern int remap_file_pages (void *__start, size_t __size, int __prot, | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:144:12: error: storage class specified for parameter ‘shm_open’ | |
144 | extern int shm_open (const char *__name, int __oflag, mode_t __mode); | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:147:12: error: storage class specified for parameter ‘shm_unlink’ | |
147 | extern int shm_unlink (const char *__name); | |
| ^~~~~~~~~~ | |
In file included from /usr/include/dlfcn.h:27, | |
from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/bits/dlfcn.h:60:13: error: storage class specified for parameter ‘_dl_mcount_wrapper_check’ | |
60 | extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/dlfcn.h:44:18: error: storage class specified for parameter ‘Lmid_t’ | |
44 | typedef long int Lmid_t; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:56:14: error: storage class specified for parameter ‘dlopen’ | |
56 | extern void *dlopen (const char *__file, int __mode) __THROWNL; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:60:12: error: storage class specified for parameter ‘dlclose’ | |
60 | extern int dlclose (void *__handle) __THROWNL __nonnull ((1)); | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:64:14: error: storage class specified for parameter ‘dlsym’ | |
64 | extern void *dlsym (void *__restrict __handle, | |
| ^~~~~ | |
/usr/include/dlfcn.h:69:23: error: expected declaration specifiers or ‘...’ before ‘Lmid_t’ | |
69 | extern void *dlmopen (Lmid_t __nsid, const char *__file, int __mode) __THROWNL; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:73:14: error: storage class specified for parameter ‘dlvsym’ | |
73 | extern void *dlvsym (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:82:14: error: storage class specified for parameter ‘dlerror’ | |
82 | extern char *dlerror (void) __THROW; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:94:3: error: storage class specified for parameter ‘Dl_info’ | |
94 | } Dl_info; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:98:43: error: expected declaration specifiers or ‘...’ before ‘Dl_info’ | |
98 | extern int dladdr (const void *__address, Dl_info *__info) | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:102:44: error: expected declaration specifiers or ‘...’ before ‘Dl_info’ | |
102 | extern int dladdr1 (const void *__address, Dl_info *__info, | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:123:12: error: storage class specified for parameter ‘dlinfo’ | |
123 | extern int dlinfo (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:175:3: error: storage class specified for parameter ‘Dl_serpath’ | |
175 | } Dl_serpath; | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:190:5: error: expected specifier-qualifier-list before ‘Dl_serpath’ | |
190 | Dl_serpath dls_serpath[0]; /* Actually longer, dls_cnt elements. */ | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:196:3: error: storage class specified for parameter ‘Dl_serinfo’ | |
196 | } Dl_serinfo; | |
| ^~~~~~~~~~ | |
In file included from /usr/include/ffitarget.h:18, | |
from /usr/include/ffi-x86_64.h:67, | |
from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffitarget-x86_64.h:70:32: error: storage class specified for parameter ‘ffi_arg’ | |
70 | typedef unsigned long ffi_arg; | |
| ^~~~~~~ | |
/usr/include/ffitarget-x86_64.h:71:32: error: storage class specified for parameter ‘ffi_sarg’ | |
71 | typedef signed long ffi_sarg; | |
| ^~~~~~~~ | |
/usr/include/ffitarget-x86_64.h:111:3: error: storage class specified for parameter ‘ffi_abi’ | |
111 | } ffi_abi; | |
| ^~~~~~~ | |
In file included from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffi-x86_64.h:118:3: error: storage class specified for parameter ‘ffi_type’ | |
118 | } ffi_type; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:184:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_void’ | |
184 | FFI_EXTERN ffi_type ffi_type_void; | |
| ^~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:185:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint8’ | |
185 | FFI_EXTERN ffi_type ffi_type_uint8; | |
| ^~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:186:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint8’ | |
186 | FFI_EXTERN ffi_type ffi_type_sint8; | |
| ^~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:187:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint16’ | |
187 | FFI_EXTERN ffi_type ffi_type_uint16; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:188:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint16’ | |
188 | FFI_EXTERN ffi_type ffi_type_sint16; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:189:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint32’ | |
189 | FFI_EXTERN ffi_type ffi_type_uint32; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:190:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint32’ | |
190 | FFI_EXTERN ffi_type ffi_type_sint32; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:191:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_uint64’ | |
191 | FFI_EXTERN ffi_type ffi_type_uint64; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:192:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_sint64’ | |
192 | FFI_EXTERN ffi_type ffi_type_sint64; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:193:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_float’ | |
193 | FFI_EXTERN ffi_type ffi_type_float; | |
| ^~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:194:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_double’ | |
194 | FFI_EXTERN ffi_type ffi_type_double; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:195:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_pointer’ | |
195 | FFI_EXTERN ffi_type ffi_type_pointer; | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:198:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_type_longdouble’ | |
198 | FFI_EXTERN ffi_type ffi_type_longdouble; | |
| ^~~~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:208:3: error: storage class specified for parameter ‘ffi_status’ | |
208 | } ffi_status; | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:210:18: error: storage class specified for parameter ‘FFI_TYPE’ | |
210 | typedef unsigned FFI_TYPE; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:213:3: error: expected specifier-qualifier-list before ‘ffi_abi’ | |
213 | ffi_abi abi; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:222:3: error: storage class specified for parameter ‘ffi_cif’ | |
222 | } ffi_cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:230:1: error: expected declaration specifiers before ‘ffi_status’ | |
230 | ffi_status ffi_prep_cif_core(ffi_cif *cif, | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:253:3: error: expected specifier-qualifier-list before ‘ffi_sarg’ | |
253 | ffi_sarg sint; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:258:3: error: storage class specified for parameter ‘ffi_raw’ | |
258 | } ffi_raw; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:271:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffi_java_raw’ | |
271 | typedef ffi_raw ffi_java_raw; | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:275:20: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
275 | void ffi_raw_call (ffi_cif *cif, | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:278:20: error: expected declaration specifiers or ‘...’ before ‘ffi_raw’ | |
278 | ffi_raw *avalue); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:280:27: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
280 | void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:280:54: error: expected declaration specifiers or ‘...’ before ‘ffi_raw’ | |
280 | void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:281:27: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
281 | void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:281:41: error: expected declaration specifiers or ‘...’ before ‘ffi_raw’ | |
281 | void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:282:22: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
282 | size_t ffi_raw_size (ffi_cif *cif); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:288:25: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
288 | void ffi_java_raw_call (ffi_cif *cif, | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:291:25: error: unknown type name ‘ffi_java_raw’ | |
291 | ffi_java_raw *avalue); | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:293:32: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
293 | void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:293:59: error: unknown type name ‘ffi_java_raw’ | |
293 | void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw); | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:294:32: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
294 | void ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:294:46: error: unknown type name ‘ffi_java_raw’ | |
294 | void ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args); | |
| ^~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:295:27: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
295 | size_t ffi_java_raw_size (ffi_cif *cif); | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:311:3: error: expected specifier-qualifier-list before ‘ffi_cif’ | |
311 | ffi_cif *cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:315:3: error: storage class specified for parameter ‘ffi_closure’ | |
315 | } ffi_closure __attribute__((aligned (8))); | |
| ^~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:315:3: error: alignment may not be specified for ‘ffi_closure’ | |
/usr/include/ffi-x86_64.h:326:1: error: expected declaration specifiers before ‘ffi_status’ | |
326 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:332:1: error: expected declaration specifiers before ‘ffi_status’ | |
332 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:349:3: error: expected specifier-qualifier-list before ‘ffi_cif’ | |
349 | ffi_cif *cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:365:3: error: storage class specified for parameter ‘ffi_raw_closure’ | |
365 | } ffi_raw_closure; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:375:3: error: expected specifier-qualifier-list before ‘ffi_cif’ | |
375 | ffi_cif *cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:391:3: error: storage class specified for parameter ‘ffi_java_raw_closure’ | |
391 | } ffi_java_raw_closure; | |
| ^~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:393:1: error: expected declaration specifiers before ‘ffi_status’ | |
393 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:399:1: error: expected declaration specifiers before ‘ffi_status’ | |
399 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:406:1: error: expected declaration specifiers before ‘ffi_status’ | |
406 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:412:1: error: expected declaration specifiers before ‘ffi_status’ | |
412 | ffi_status | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:423:1: error: expected declaration specifiers before ‘ffi_status’ | |
423 | ffi_status ffi_prep_cif(ffi_cif *cif, | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:429:1: error: expected declaration specifiers before ‘ffi_status’ | |
429 | ffi_status ffi_prep_cif_var(ffi_cif *cif, | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:436:15: error: expected declaration specifiers or ‘...’ before ‘ffi_cif’ | |
436 | void ffi_call(ffi_cif *cif, | |
| ^~~~~~~ | |
In file included from ./fiddle.h:104, | |
from memory_view.c:20: | |
./conversions.h:8:5: error: expected specifier-qualifier-list before ‘ffi_arg’ | |
8 | ffi_arg fffi_arg; /* rvalue smaller than unsigned long */ | |
| ^~~~~~~ | |
./conversions.h:25:3: error: storage class specified for parameter ‘fiddle_generic’ | |
25 | } fiddle_generic; | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:28:1: error: expected declaration specifiers before ‘ffi_type’ | |
28 | ffi_type * rb_fiddle_int_to_ffi_type(int type); | |
| ^~~~~~~~ | |
./conversions.h:29:55: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
29 | void rb_fiddle_value_to_generic(int type, VALUE *src, fiddle_generic *dst); | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:30:49: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
30 | VALUE rb_fiddle_generic_to_value(VALUE rettype, fiddle_generic retval); | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:33:1: error: expected declaration specifiers before ‘ffi_type’ | |
33 | ffi_type * int_to_ffi_type(int type); | |
| ^~~~~~~~ | |
./conversions.h:34:44: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
34 | void value_to_generic(int type, VALUE src, fiddle_generic *dst); | |
| ^~~~~~~~~~~~~~ | |
./conversions.h:35:39: error: expected declaration specifiers or ‘...’ before ‘fiddle_generic’ | |
35 | VALUE generic_to_value(VALUE rettype, fiddle_generic retval); | |
| ^~~~~~~~~~~~~~ | |
In file included from memory_view.c:20: | |
./fiddle.h:196:14: error: storage class specified for parameter ‘mFiddle’ | |
196 | extern VALUE mFiddle; | |
| ^~~~~~~ | |
./fiddle.h:197:14: error: storage class specified for parameter ‘rb_eFiddleDLError’ | |
197 | extern VALUE rb_eFiddleDLError; | |
| ^~~~~~~~~~~~~~~~~ | |
./fiddle.h:199:7: error: declaration for parameter ‘rb_fiddle_new_function’ but no such parameter | |
199 | VALUE rb_fiddle_new_function(VALUE address, VALUE arg_types, VALUE ret_type); | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
./fiddle.h:197:14: error: declaration for parameter ‘rb_eFiddleDLError’ but no such parameter | |
197 | extern VALUE rb_eFiddleDLError; | |
| ^~~~~~~~~~~~~~~~~ | |
./fiddle.h:196:14: error: declaration for parameter ‘mFiddle’ but no such parameter | |
196 | extern VALUE mFiddle; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:105, | |
from memory_view.c:20: | |
./function.h:6:6: error: declaration for parameter ‘Init_fiddle_function’ but no such parameter | |
6 | void Init_fiddle_function(void); | |
| ^~~~~~~~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:104, | |
from memory_view.c:20: | |
./conversions.h:27:7: error: declaration for parameter ‘rb_fiddle_type_ensure’ but no such parameter | |
27 | VALUE rb_fiddle_type_ensure(VALUE type); | |
| ^~~~~~~~~~~~~~~~~~~~~ | |
./conversions.h:25:3: error: declaration for parameter ‘fiddle_generic’ but no such parameter | |
25 | } fiddle_generic; | |
| ^~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:103, | |
from memory_view.c:20: | |
./closure.h:6:6: error: declaration for parameter ‘Init_fiddle_closure’ but no such parameter | |
6 | void Init_fiddle_closure(void); | |
| ^~~~~~~~~~~~~~~~~~~ | |
In file included from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffi-x86_64.h:391:3: error: declaration for parameter ‘ffi_java_raw_closure’ but no such parameter | |
391 | } ffi_java_raw_closure; | |
| ^~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:365:3: error: declaration for parameter ‘ffi_raw_closure’ but no such parameter | |
365 | } ffi_raw_closure; | |
| ^~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:324:6: error: declaration for parameter ‘ffi_closure_free’ but no such parameter | |
324 | void ffi_closure_free (void *); | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:323:7: error: declaration for parameter ‘ffi_closure_alloc’ but no such parameter | |
323 | void *ffi_closure_alloc (size_t size, void **code); | |
| ^~~~~~~~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:315:3: error: declaration for parameter ‘ffi_closure’ but no such parameter | |
315 | } ffi_closure __attribute__((aligned (8))); | |
| ^~~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:258:3: error: declaration for parameter ‘ffi_raw’ but no such parameter | |
258 | } ffi_raw; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:222:3: error: declaration for parameter ‘ffi_cif’ but no such parameter | |
222 | } ffi_cif; | |
| ^~~~~~~ | |
/usr/include/ffi-x86_64.h:210:18: error: declaration for parameter ‘FFI_TYPE’ but no such parameter | |
210 | typedef unsigned FFI_TYPE; | |
| ^~~~~~~~ | |
/usr/include/ffi-x86_64.h:208:3: error: declaration for parameter ‘ffi_status’ but no such parameter | |
208 | } ffi_status; | |
| ^~~~~~~~~~ | |
/usr/include/ffi-x86_64.h:118:3: error: declaration for parameter ‘ffi_type’ but no such parameter | |
118 | } ffi_type; | |
| ^~~~~~~~ | |
In file included from /usr/include/ffitarget.h:18, | |
from /usr/include/ffi-x86_64.h:67, | |
from /usr/include/ffi.h:18, | |
from ./fiddle.h:42, | |
from memory_view.c:20: | |
/usr/include/ffitarget-x86_64.h:111:3: error: declaration for parameter ‘ffi_abi’ but no such parameter | |
111 | } ffi_abi; | |
| ^~~~~~~ | |
/usr/include/ffitarget-x86_64.h:71:32: error: declaration for parameter ‘ffi_sarg’ but no such parameter | |
71 | typedef signed long ffi_sarg; | |
| ^~~~~~~~ | |
/usr/include/ffitarget-x86_64.h:70:32: error: declaration for parameter ‘ffi_arg’ but no such parameter | |
70 | typedef unsigned long ffi_arg; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/dlfcn.h:196:3: error: declaration for parameter ‘Dl_serinfo’ but no such parameter | |
196 | } Dl_serinfo; | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:175:3: error: declaration for parameter ‘Dl_serpath’ but no such parameter | |
175 | } Dl_serpath; | |
| ^~~~~~~~~~ | |
/usr/include/dlfcn.h:123:12: error: declaration for parameter ‘dlinfo’ but no such parameter | |
123 | extern int dlinfo (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:94:3: error: declaration for parameter ‘Dl_info’ but no such parameter | |
94 | } Dl_info; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:82:14: error: declaration for parameter ‘dlerror’ but no such parameter | |
82 | extern char *dlerror (void) __THROW; | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:73:14: error: declaration for parameter ‘dlvsym’ but no such parameter | |
73 | extern void *dlvsym (void *__restrict __handle, | |
| ^~~~~~ | |
/usr/include/dlfcn.h:64:14: error: declaration for parameter ‘dlsym’ but no such parameter | |
64 | extern void *dlsym (void *__restrict __handle, | |
| ^~~~~ | |
/usr/include/dlfcn.h:60:12: error: declaration for parameter ‘dlclose’ but no such parameter | |
60 | extern int dlclose (void *__handle) __THROWNL __nonnull ((1)); | |
| ^~~~~~~ | |
/usr/include/dlfcn.h:56:14: error: declaration for parameter ‘dlopen’ but no such parameter | |
56 | extern void *dlopen (const char *__file, int __mode) __THROWNL; | |
| ^~~~~~ | |
/usr/include/dlfcn.h:44:18: error: declaration for parameter ‘Lmid_t’ but no such parameter | |
44 | typedef long int Lmid_t; | |
| ^~~~~~ | |
In file included from /usr/include/dlfcn.h:27, | |
from ./fiddle.h:16, | |
from memory_view.c:20: | |
/usr/include/bits/dlfcn.h:60:13: error: declaration for parameter ‘_dl_mcount_wrapper_check’ but no such parameter | |
60 | extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from ./fiddle.h:12, | |
from memory_view.c:20: | |
/usr/include/sys/mman.h:147:12: error: declaration for parameter ‘shm_unlink’ but no such parameter | |
147 | extern int shm_unlink (const char *__name); | |
| ^~~~~~~~~~ | |
/usr/include/sys/mman.h:144:12: error: declaration for parameter ‘shm_open’ but no such parameter | |
144 | extern int shm_open (const char *__name, int __oflag, mode_t __mode); | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:138:12: error: declaration for parameter ‘remap_file_pages’ but no such parameter | |
138 | extern int remap_file_pages (void *__start, size_t __size, int __prot, | |
| ^~~~~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:133:14: error: declaration for parameter ‘mremap’ but no such parameter | |
133 | extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:123:12: error: declaration for parameter ‘mincore’ but no such parameter | |
123 | extern int mincore (void *__start, size_t __len, unsigned char *__vec) | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:115:12: error: declaration for parameter ‘munlockall’ but no such parameter | |
115 | extern int munlockall (void) __THROW; | |
| ^~~~~~~~~~ | |
/usr/include/sys/mman.h:111:12: error: declaration for parameter ‘mlockall’ but no such parameter | |
111 | extern int mlockall (int __flags) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:106:12: error: declaration for parameter ‘munlock’ but no such parameter | |
106 | extern int munlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:103:12: error: declaration for parameter ‘mlock’ but no such parameter | |
103 | extern int mlock (const void *__addr, size_t __len) __THROW; | |
| ^~~~~ | |
/usr/include/sys/mman.h:98:12: error: declaration for parameter ‘posix_madvise’ but no such parameter | |
98 | extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~~~~~~~ | |
/usr/include/sys/mman.h:94:12: error: declaration for parameter ‘madvise’ but no such parameter | |
94 | extern int madvise (void *__addr, size_t __len, int __advice) __THROW; | |
| ^~~~~~~ | |
/usr/include/sys/mman.h:89:12: error: declaration for parameter ‘msync’ but no such parameter | |
89 | extern int msync (void *__addr, size_t __len, int __flags); | |
| ^~~~~ | |
/usr/include/sys/mman.h:81:12: error: declaration for parameter ‘mprotect’ but no such parameter | |
81 | extern int mprotect (void *__addr, size_t __len, int __prot) __THROW; | |
| ^~~~~~~~ | |
/usr/include/sys/mman.h:76:12: error: declaration for parameter ‘munmap’ but no such parameter | |
76 | extern int munmap (void *__addr, size_t __len) __THROW; | |
| ^~~~~~ | |
/usr/include/sys/mman.h:70:14: error: declaration for parameter ‘mmap64’ but no such parameter | |
70 | extern void *mmap64 (void *__addr, size_t __len, int __prot, | |
| ^~~~~~ | |
/usr/include/sys/mman.h:57:14: error: declaration for parameter ‘mmap’ but no such parameter | |
57 | extern void *mmap (void *__addr, size_t __len, int __prot, | |
| ^~~~ | |
In file included from /usr/include/bits/mman-linux.h:113, | |
from /usr/include/bits/mman.h:34, | |
from /usr/include/sys/mman.h:41, | |
from ./fiddle.h:12, | |
from memory_view.c:20: | |
/usr/include/bits/mman-shared.h:77:5: error: declaration for parameter ‘pkey_mprotect’ but no such parameter | |
77 | int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) __THROW; | |
| ^~~~~~~~~~~~~ | |
/usr/include/bits/mman-shared.h:73:5: error: declaration for parameter ‘pkey_free’ but no such parameter | |
73 | int pkey_free (int __key) __THROW; | |
| ^~~~~~~~~ | |
/usr/include/bits/mman-shared.h:69:5: error: declaration for parameter ‘pkey_get’ but no such parameter | |
69 | int pkey_get (int __key) __THROW; | |
| ^~~~~~~~ | |
/usr/include/bits/mman-shared.h:65:5: error: declaration for parameter ‘pkey_set’ but no such parameter | |
65 | int pkey_set (int __key, unsigned int __access_rights) __THROW; | |
| ^~~~~~~~ | |
/usr/include/bits/mman-shared.h:61:5: error: declaration for parameter ‘pkey_alloc’ but no such parameter | |
61 | int pkey_alloc (unsigned int __flags, unsigned int __access_rights) __THROW; | |
| ^~~~~~~~~~ | |
/usr/include/bits/mman-shared.h:55:5: error: declaration for parameter ‘mlock2’ but no such parameter | |
55 | int mlock2 (const void *__addr, size_t __length, unsigned int __flags) __THROW; | |
| ^~~~~~ | |
/usr/include/bits/mman-shared.h:51:5: error: declaration for parameter ‘memfd_create’ but no such parameter | |
51 | int memfd_create (const char *__name, unsigned int __flags) __THROW; | |
| ^~~~~~~~~~~~ | |
In file included from /usr/include/errno.h:48, | |
from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/bits/types/error_t.h:22:13: error: declaration for parameter ‘error_t’ but no such parameter | |
22 | typedef int error_t; | |
| ^~~~~~~ | |
In file included from ./fiddle.h:5, | |
from memory_view.c:20: | |
/usr/include/errno.h:46:14: error: declaration for parameter ‘program_invocation_short_name’ but no such parameter | |
46 | extern char *program_invocation_short_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:45:14: error: declaration for parameter ‘program_invocation_name’ but no such parameter | |
45 | extern char *program_invocation_name; | |
| ^~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/errno.h:37:13: error: declaration for parameter ‘__errno_location’ but no such parameter | |
37 | extern int *__errno_location (void) __THROW __attribute_const__; | |
| ^~~~~~~~~~~~~~~~ | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h:146:34: error: declaration for parameter ‘rb_memory_view_exported_object_registry_data_type’ but no such parameter | |
146 | RUBY_EXTERN const rb_data_type_t rb_memory_view_exported_object_registry_data_type; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:145:19: error: declaration for parameter ‘rb_memory_view_exported_object_registry’ but no such parameter | |
145 | RUBY_EXTERN VALUE rb_memory_view_exported_object_registry; | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:142:6: error: declaration for parameter ‘rb_memory_view_release’ but no such parameter | |
142 | bool rb_memory_view_release(rb_memory_view_t* memory_view); | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:141:6: error: declaration for parameter ‘rb_memory_view_get’ but no such parameter | |
141 | bool rb_memory_view_get(VALUE obj, rb_memory_view_t* memory_view, int flags); | |
| ^~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:140:6: error: declaration for parameter ‘rb_memory_view_available_p’ but no such parameter | |
140 | bool rb_memory_view_available_p(VALUE obj); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:138:7: error: declaration for parameter ‘rb_memory_view_get_item’ but no such parameter | |
138 | VALUE rb_memory_view_get_item(rb_memory_view_t *view, const ssize_t *indices); | |
| ^~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:137:6: error: declaration for parameter ‘rb_memory_view_prepare_item_desc’ but no such parameter | |
137 | void rb_memory_view_prepare_item_desc(rb_memory_view_t *view); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:136:7: error: declaration for parameter ‘rb_memory_view_extract_item_members’ but no such parameter | |
136 | VALUE rb_memory_view_extract_item_members(const void *ptr, const rb_memory_view_item_component_t *members, const size_t n_members); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:135:7: error: declaration for parameter ‘rb_memory_view_get_item_pointer’ but no such parameter | |
135 | void *rb_memory_view_get_item_pointer(rb_memory_view_t *view, const ssize_t *indices); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:134:9: error: declaration for parameter ‘rb_memory_view_item_size_from_format’ but no such parameter | |
134 | ssize_t rb_memory_view_item_size_from_format(const char *format, const char **err); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/usr/include/ruby/memory_view.h:131:9: error: declaration for parameter ‘rb_memory_view_parse_item_format’ but no such parameter | |
131 | ssize_t rb_memory_view_parse_item_format(const char *format, | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from memory_view.c:6: | |
/usr/include/ruby/memory_view.h:124:6: error: declaration for parameter ‘rb_memory_view_is_row_major_contiguous’ but no such parameter | |
124 | bool rb_memory_view_is_row_major_contiguous(const rb_memory_view_t *view); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
memory_view.c:324: error: expected ‘{’ at end of input | |
memory_view.c:324: warning: control reaches end of non-void function [-Wreturn-type] | |
memory_view.c: At top level: | |
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics | |
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics | |
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics | |
make: *** [Makefile:246: memory_view.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment