Forum: Ruby-core [ruby-trunk - Bug #7221][Open] Unable to compile kgio under 1.9.3 with error: ruby-1.9.3-<plvl>/lib/

Posted by davidderyldowney (David Deryl Downey) (Guest)
on 2012-10-27 02:42
(Received via mailing list)
Issue #7221 has been reported by davidderyldowney (David Deryl Downey).

----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221

Author: davidderyldowney (David Deryl Downey)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-10-27 13:00
(Received via mailing list)
Issue #7221 has been updated by mame (Yusuke Endoh).

Status changed from Open to Feedback

Could you show us a small example of extconf.rb to reproduce this issue?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221#change-31793

Author: davidderyldowney (David Deryl Downey)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-10-30 13:29
(Received via mailing list)
Issue #7221 has been updated by mame (Yusuke Endoh).


I checked the discussion of github.

I think the problem here is why f.gets fails.
The proposed patch is NOT acceptable; it just hides the real problem by 
returning a *bogus* result.

So, could you please tell us how to reproduce the issue?
I tried to repro by "gem install kgio" but it succeeded:

  $ ~/work/local/bin/gem install kgio
  Building native extensions.  This could take a while...
  Successfully installed kgio-2.7.4
  1 gem installed
  Installing ri documentation for kgio-2.7.4...
  Installing RDoc documentation for kgio-2.7.4...

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221#change-31984

Author: davidderyldowney (David Deryl Downey)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Posted by davidderyldowney (David Deryl Downey) (Guest)
on 2012-10-30 20:28
(Received via mailing list)
Issue #7221 has been updated by davidderyldowney (David Deryl Downey).


OK, I changed the line back to the original return Integer(f.gets) and 
attempted a reinstall of kgio under 1.9.3-p286.

The output from the build is still: 
ruby-1.9.3-p286/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

The entire contents of kgio's (v2.7.4) extconf.rb is gist here at: 
https://gist.github.com/08ae8fef33b610c44e6c  All 53 lines of it.

Anything else I can do please let me know. Sorry for the slow replies, 
IRL is a bugger hehe.
----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221#change-32041

Author: davidderyldowney (David Deryl Downey)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-10-31 00:06
(Received via mailing list)
Issue #7221 has been updated by mame (Yusuke Endoh).

Assignee set to mame (Yusuke Endoh)

Thank you.  In addition, could you show us mkmf.log?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221#change-32047

Author: davidderyldowney (David Deryl Downey)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Posted by davidderyldowney (David Deryl Downey) (Guest)
on 2012-11-07 13:46
(Received via mailing list)
Issue #7221 has been updated by davidderyldowney (David Deryl Downey).


My apologies Yusuke. I've been working hard as of late. I never noticed 
the email. Please give me another day or two to get the info to you, I 
have to intentionally break the system again in order to regenerate all 
the logs and information you want.
----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221#change-32554

Author: davidderyldowney (David Deryl Downey)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-19 18:54
(Received via mailing list)
Issue #7221 has been updated by mame (Yusuke Endoh).


David, busy?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221#change-33110

Author: davidderyldowney (David Deryl Downey)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Posted by davidderyldowney (David Deryl Downey) (Guest)
on 2012-11-21 00:10
(Received via mailing list)
Issue #7221 has been updated by davidderyldowney (David Deryl Downey).


mame sorry again for the delay. lots of stuff going on IRL.

I am back to setting L597 in ruby-1.9.3-p286/lib/ruby/1.9.1/mkmf.rb to

return Integer(f.gets)


and attempted a reinstall of kgio v2.7.4 and it works just fine. I was 
able before to consistently demonstrate the problem, however I no longer 
am able. I am running ruby-1.9.3-p286 with the falcon patch only, which 
does not touch that line of code that I can see. The suggested fix was 
to change the line to:

return Integer((f.gets) ? v : 0 )

whch I obviously do not have. So I'm unsure what the issue actually is, 
or why kgio is suddenly working. As per your request, I'm including what 
I currently have for the mkmf.rb file in question. Its currently online 
at https://gist.github.com/f687c94fc9df125bb437

Anything else I can provide, let me know.

----------------------------------------
Bug #7221: Unable to compile kgio under 1.9.3 with error: 
ruby-1.9.3-<plvl>/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)
https://bugs.ruby-lang.org/issues/7221#change-33362

Author: davidderyldowney (David Deryl Downey)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p286 (2012-10-12 revision 37165) 
[x86_64-darwin12.2.0]


The kgio gem is unable to be compiled under 1.9.3-p286. The problem is 
the same as reported here: 
https://github.com/wayneeseguin/rvm/issues/1157, specifically the same 
issue is seen under ruby-1.9.3-p194 as reported here at 
https://github.com/wayneeseguin/rvm/issues/1157#is...

The actual error is:

ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:597:in `Integer': can't convert 
nil into Integer (TypeError)

If L597 of mkmf.rb is modified to say:

return Integer((v=f.gets) ? v : 0 )

then the problem instantly goes away.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.