current directory: /home/sourav/.gem/ruby/2.6.0/gems/chipmunk-6.1.3.4/ext/chipmunk /usr/bin/ruby -I /usr/lib/ruby/2.6.0 -r ./siteconf20190515-1864-7jetc7.rb extconf.rb creating Makefile current directory: /home/sourav/.gem/ruby/2.6.0/gems/chipmunk-6.1.3.4/ext/chipmunk make "DESTDIR=" clean current directory: /home/sourav/.gem/ruby/2.6.0/gems/chipmunk-6.1.3.4/ext/chipmunk make "DESTDIR=" compiling chipmunk.c compiling cpArbiter.c compiling cpArray.c compiling cpBB.c compiling cpBBTree.c compiling cpBody.c compiling cpCollision.c compiling cpConstraint.c compiling cpDampedRotarySpring.c compiling cpDampedSpring.c compiling cpGearJoint.c compiling cpGrooveJoint.c compiling cpHashSet.c compiling cpPinJoint.c compiling cpPivotJoint.c compiling cpPolyShape.c compiling cpRatchetJoint.c compiling cpRotaryLimitJoint.c compiling cpShape.c compiling cpSimpleMotor.c compiling cpSlideJoint.c compiling cpSpace.c compiling cpSpaceComponent.c compiling cpSpaceHash.c compiling cpSpaceQuery.c compiling cpSpaceStep.c compiling cpSpatialIndex.c compiling cpSweep1D.c compiling cpVect.c compiling rb_chipmunk.c In file included from /usr/include/ruby-2.6.0/ruby/ruby.h:2111, from /usr/include/ruby-2.6.0/ruby.h:33, from rb_chipmunk.c:26: /usr/include/ruby-2.6.0/ruby/intern.h:928:29: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration void rb_timespec_now(struct timespec *); ^~~~~~~~ /usr/include/ruby-2.6.0/ruby/intern.h:931:41: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration VALUE rb_time_timespec_new(const struct timespec *, int); ^~~~~~~~ compiling rb_cpArbiter.c In file included from /usr/include/ruby-2.6.0/ruby/ruby.h:2111, from /usr/include/ruby-2.6.0/ruby.h:33, from rb_cpArbiter.c:25: /usr/include/ruby-2.6.0/ruby/intern.h:928:29: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration void rb_timespec_now(struct timespec *); ^~~~~~~~ /usr/include/ruby-2.6.0/ruby/intern.h:931:41: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration VALUE rb_time_timespec_new(const struct timespec *, int); ^~~~~~~~ compiling rb_cpBB.c In file included from /usr/include/ruby-2.6.0/ruby/ruby.h:2111, from /usr/include/ruby-2.6.0/ruby.h:33, from rb_cpBB.c:25: /usr/include/ruby-2.6.0/ruby/intern.h:928:29: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration void rb_timespec_now(struct timespec *); ^~~~~~~~ /usr/include/ruby-2.6.0/ruby/intern.h:931:41: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration VALUE rb_time_timespec_new(const struct timespec *, int); ^~~~~~~~ compiling rb_cpBody.c In file included from /usr/include/ruby-2.6.0/ruby/ruby.h:2111, from /usr/include/ruby-2.6.0/ruby.h:33, from rb_cpBody.c:25: /usr/include/ruby-2.6.0/ruby/intern.h:928:29: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration void rb_timespec_now(struct timespec *); ^~~~~~~~ /usr/include/ruby-2.6.0/ruby/intern.h:931:41: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration VALUE rb_time_timespec_new(const struct timespec *, int); ^~~~~~~~ compiling rb_cpConstraint.c In file included from /usr/include/ruby-2.6.0/ruby/ruby.h:2111, from /usr/include/ruby-2.6.0/ruby.h:33, from rb_cpConstraint.c:25: /usr/include/ruby-2.6.0/ruby/intern.h:928:29: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration void rb_timespec_now(struct timespec *); ^~~~~~~~ /usr/include/ruby-2.6.0/ruby/intern.h:931:41: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration VALUE rb_time_timespec_new(const struct timespec *, int); ^~~~~~~~ compiling rb_cpShape.c In file included from /usr/include/ruby-2.6.0/ruby/ruby.h:2111, from /usr/include/ruby-2.6.0/ruby.h:33, from rb_cpShape.c:28: /usr/include/ruby-2.6.0/ruby/intern.h:928:29: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration void rb_timespec_now(struct timespec *); ^~~~~~~~ /usr/include/ruby-2.6.0/ruby/intern.h:931:41: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration VALUE rb_time_timespec_new(const struct timespec *, int); ^~~~~~~~ compiling rb_cpSpace.c In file included from /usr/include/ruby-2.6.0/ruby/ruby.h:2111, from /usr/include/ruby-2.6.0/ruby.h:33, from rb_cpSpace.c:25: /usr/include/ruby-2.6.0/ruby/intern.h:928:29: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration void rb_timespec_now(struct timespec *); ^~~~~~~~ /usr/include/ruby-2.6.0/ruby/intern.h:931:41: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration VALUE rb_time_timespec_new(const struct timespec *, int); ^~~~~~~~ In file included from /usr/include/ruby-2.6.0/ruby.h:33, from rb_cpSpace.c:25: rb_cpSpace.c: In function ‘segmentQueryCallback’: /usr/include/ruby-2.6.0/ruby/ruby.h:1850:3: error: call to ‘rb_varargs_bad_length’ declared with attribute error: argument length doesn't match rb_varargs_bad_length(argc, vargc)), \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/ruby-2.6.0/ruby/ruby.h:2603:6: note: in expansion of macro ‘rb_varargs_argc_check’ rb_varargs_argc_check(rb_funcall_argc, rb_funcall_nargs), \ ^~~~~~~~~~~~~~~~~~~~~ rb_cpSpace.c:476:3: note: in expansion of macro ‘rb_funcall’ rb_funcall(block, id_call, 1, (VALUE)shape->data, rb_float_new(t), VNEW(n)); ^~~~~~~~~~ make: *** [Makefile:244: rb_cpSpace.o] Error 1 make failed, exit code 2