* Package: dev-ruby/serialport-1.3.2:0 * Repository: gentoo * Maintainer: ruby@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux ruby_targets_ruby27 ruby_targets_ruby31 userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... * Running unpack phase for all * Unpacking .gem file... * Uncompressing metadata * Unpacking data.tar.gz >>> Source unpacked in /var/tmp/portage/dev-ruby/serialport-1.3.2/work >>> Preparing source in /var/tmp/portage/dev-ruby/serialport-1.3.2/work ... * Running prepare phase for all * Running prepare phase for all * Running source copy phase for ruby27 * Running source copy phase for ruby31 >>> Source prepared. * Clang 16 testing: this build is using a /etc/portage/bashrc hook (2022-11-24T21:47)! * Clang 16 testing: see https://wiki.gentoo.org/wiki/Modern_C_porting for more info. >>> Configuring source in /var/tmp/portage/dev-ruby/serialport-1.3.2/work ... * Running configure phase for ruby27 checking for OS... linux checking for termios.h... yes checking for unistd.h... yes creating Makefile * Running configure phase for ruby31 checking for OS... linux checking for termios.h... yes checking for unistd.h... yes creating Makefile >>> Source configured. '/var/tmp/portage/dev-ruby/serialport-1.3.2/temp/clang16-errors.log' -> '/var/tmp/clang/dev-ruby/serialport-1.3.2/clang16-errors.log' '/var/tmp/portage/dev-ruby/serialport-1.3.2/temp/clang16-safe.log' -> '/var/tmp/clang/dev-ruby/serialport-1.3.2/clang16-safe.log' >>> Compiling source in /var/tmp/portage/dev-ruby/serialport-1.3.2/work ... * Running compile phase for ruby27 make -j4 V=1 -C ext/native make: Entering directory '/var/tmp/portage/dev-ruby/serialport-1.3.2/work/ruby27/serialport-1.3.2/ext/native' clang -I. -I/usr/include/ruby-2.7.0/x86_64-linux -I/usr/include/ruby-2.7.0/ruby/backward -I/usr/include/ruby-2.7.0 -I. -DHAVE_TERMIOS_H -DHAVE_UNISTD_H -fPIC -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DOS_LINUX -o posix_serialport_impl.o -c posix_serialport_impl.c clang -I. -I/usr/include/ruby-2.7.0/x86_64-linux -I/usr/include/ruby-2.7.0/ruby/backward -I/usr/include/ruby-2.7.0 -I. -DHAVE_TERMIOS_H -DHAVE_UNISTD_H -fPIC -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DOS_LINUX -o serialport.o -c serialport.c clang -I. -I/usr/include/ruby-2.7.0/x86_64-linux -I/usr/include/ruby-2.7.0/ruby/backward -I/usr/include/ruby-2.7.0 -I. -DHAVE_TERMIOS_H -DHAVE_UNISTD_H -fPIC -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -DOS_LINUX -o win_serialport_impl.o -c win_serialport_impl.c posix_serialport_impl.c:64:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int get_fd_helper(obj) ^ posix_serialport_impl.c:80:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_create_impl(class, _port) ^ posix_serialport_impl.c:113:13: error: incompatible pointer to integer conversion passing 'struct RFile *' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion] OBJSETUP(sp, class, T_FILE); ^~ /usr/include/ruby-2.7.0/ruby/ruby.h:786:40: note: expanded from macro 'OBJSETUP' #define OBJSETUP(obj,c,t) rb_obj_setup(obj, c, t) /* use NEWOBJ_OF inste... ^~~ /usr/include/ruby-2.7.0/ruby/ruby.h:781:26: note: passing argument to parameter 'obj' here VALUE rb_obj_setup(VALUE obj, VALUE klass, VALUE type); ^ posix_serialport_impl.c:179:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_set_modem_params_impl(argc, argv, self) ^ posix_serialport_impl.c:402:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void get_modem_params_impl(self, mp) ^ posix_serialport_impl.c:496:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_set_flow_control_impl(self, val) ^ posix_serialport_impl.c:543:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_get_flow_control_impl(self) ^ posix_serialport_impl.c:573:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_set_read_timeout_impl(self, val) ^ posix_serialport_impl.c:613:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_get_read_timeout_impl(self) ^ posix_serialport_impl.c:633:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_set_write_timeout_impl(self, val) ^ posix_serialport_impl.c:640:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_get_write_timeout_impl(self) ^ posix_serialport_impl.c:647:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_break_impl(self, time) ^ posix_serialport_impl.c:664:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void get_line_signals_helper_impl(obj, ls) ^ posix_serialport_impl.c:685:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE set_signal_impl(obj, val, sig) ^ posix_serialport_impl.c:724:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_set_rts_impl(self, val) ^ posix_serialport_impl.c:730:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_set_dtr_impl(self, val) ^ posix_serialport_impl.c:736:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_get_rts_impl(self) ^ posix_serialport_impl.c:745:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_get_dtr_impl(self) ^ posix_serialport_impl.c:755:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_flush_input_data_impl(self) ^ posix_serialport_impl.c:771:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] VALUE sp_flush_output_data_impl(self) ^ 19 warnings and 1 error generated. make: *** [Makefile:245: posix_serialport_impl.o] Error 1 make: *** Waiting for unfinished jobs.... serialport.c:29:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_create(class, _port) ^ serialport.c:62:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_modem_params(argc, argv, self) ^ serialport.c:76:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_break(self, time) ^ serialport.c:88:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_dtr(self) ^ serialport.c:100:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_flow_control(self) ^ serialport.c:112:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_read_timeout(self) ^ serialport.c:124:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_rts(self) ^ serialport.c:136:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_write_timeout(self) ^ serialport.c:148:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_dtr(self, val) ^ serialport.c:164:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_flow_control(self, val) ^ serialport.c:182:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_read_timeout(self, val) ^ serialport.c:194:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_rts(self, val) ^ serialport.c:207:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_write_timeout(self, val) ^ serialport.c:216:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void get_modem_params(self, mp) ^ serialport.c:230:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_data_rate(self, data_rate) ^ serialport.c:249:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_data_bits(self, data_bits) ^ serialport.c:268:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_stop_bits(self, stop_bits) ^ serialport.c:287:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_set_parity(self, parity) ^ serialport.c:305:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_data_rate(self) ^ serialport.c:321:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_data_bits(self) ^ serialport.c:337:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_stop_bits(self) ^ serialport.c:353:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_parity(self) ^ serialport.c:369:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_modem_params(self) ^ serialport.c:390:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void get_line_signals_helper(obj, ls) ^ serialport.c:403:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_cts(self) ^ serialport.c:419:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_dsr(self) ^ serialport.c:435:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_dcd(self) ^ serialport.c:451:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_get_ri(self) ^ serialport.c:470:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_signals(self) ^ serialport.c:497:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_flush_input_data(self) ^ serialport.c:508:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static VALUE sp_flush_output_data(self) ^ 31 warnings generated. make: Leaving directory '/var/tmp/portage/dev-ruby/serialport-1.3.2/work/ruby27/serialport-1.3.2/ext/native' * ERROR: dev-ruby/serialport-1.3.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-ruby/serialport-1.3.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-ruby/serialport-1.3.2::gentoo'`. * The complete build log is located at '/var/log/portage/dev-ruby:serialport-1.3.2:20221126-070539.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-ruby/serialport-1.3.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/serialport-1.3.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-ruby/serialport-1.3.2/work/ruby27/serialport-1.3.2' * S: '/var/tmp/portage/dev-ruby/serialport-1.3.2/work/ruby27/serialport-1.3.2'