Bug #4974
closed[ext/tk] ruby_1_9_2@32391 build failure with MinGW
Description
On Win7 Ultimate 32bit using either MinGW (TDM-1) GCC 4.5.2 or MinGW-W64 GCC 4.5.4 I get the following build failure. The baseruby used to build was ruby 1.9.3dev (2011-07-04 trunk 32395) [i386-mingw32]
with RubyGems 1.8.5 and rake, version 0.9.2.1
.
Note that trunk@32395 built without error as shown at the end.
...
compiling tk
Configure options for Ruby/Tk may be updated.
So, delete files which depend on old configs.
check functions.........
check struct members..
Use ActiveTcl libraries (if available).
Search tclConfig.sh (in C:/projects/rubyinstaller-git/sandbox/tcl/lib) and tkConfig.sh (in C:/projects/rubyinstaller-git/sandbox/tk/lib)..
WARNING: found "C:/projects/rubyinstaller-git/sandbox/tcl/lib/tclConfig.sh", but cannot find valid Tcl/Tk libraries on the same directory. So, ignore it.
WARNING: found "C:/projects/rubyinstaller-git/sandbox/tcl/lib/tclconfig.sh", but cannot find valid Tcl/Tk libraries on the same directory. So, ignore it.
Fail to find [tclConfig.sh, tkConfig.sh]
C:/Users/Jon/Documents/RubyDev/ruby-git/ext/tk/extconf.rb:1639:in <top (required)>': undefined method
[]=' for nil:NilClass (NoMethodError)
from ../../../../Users/Jon/Documents/RubyDev/ruby-git/ext/extmk.rb:156:in load' from ../../../../Users/Jon/Documents/RubyDev/ruby-git/ext/extmk.rb:156:in
extmake'
from ../../../../Users/Jon/Documents/RubyDev/ruby-git/ext/extmk.rb:445:in block in <main>' from ../../../../Users/Jon/Documents/RubyDev/ruby-git/ext/extmk.rb:441:in
each'
from ../../../../Users/Jon/Documents/RubyDev/ruby-git/ext/extmk.rb:441:in `'
make: *** [mkmain.sh] Error 1
rake aborted!
Command failed with status (2): [make...]
SUCCESSFUL BUILD EXAMPLE¶
...
check functions.........
check struct members..
Use ActiveTcl libraries (if available).
Search tclConfig.sh (in C:/projects/rubyinstaller-git/sandbox/tcl/lib) and tkConfig.sh (in C:/projects/rubyinstaller-git/sandbox/tk/lib)..
Valid [tclConfig.sh, tkConfig.sh] are found in [["C:/projects/rubyinstaller-git/sandbox/tcl/lib", "C:/projects/rubyinstaller-git/sandbox/tk/lib"]]
Use [tclConfig.sh, tkConfig.sh] == ["C:/projects/rubyinstaller-git/sandbox/tcl/lib/tclConfig.sh", "C:/projects/rubyinstaller-git/sandbox/tk/lib/tkConfig.sh"]
Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk.
...
Jon
Updated by luislavena (Luis Lavena) over 13 years ago
- Assignee set to yugui (Yuki Sonoda)
Updated by jonforums (Jon Forums) over 13 years ago
Thanks! It now works for me with MinGW (TDM-1) GCC 4.5.2. I'll check later with MinGW-W64 GCC 4.5.4 and report back if needed.
sh-3.1$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32478) [i386-mingw32]
sh-3.1$ ruby -rtk -e 'puts Tk::TK_PATCHLEVEL'
8.5.10
Updated by yugui (Yuki Sonoda) over 13 years ago
Luis and Jon,
How about r32477? It works for me with mingw32.
Updated by jonforums (Jon Forums) over 13 years ago
Yes, r32477 works for me when building with either TDM GCC 4.5.2 or mingw-w64 GCC 4.5.4 on Win7 32bit.
While I've run only toy tests like
ruby -rtk -e 'puts Tk::TK_PATCHLEVEL'
ruby -rtk -e "Tk.messageBox :message => 'Hello Ruby'"
and a couple other simple scripts, it now appears to work fine.
Updated by shyouhei (Shyouhei Urabe) over 12 years ago
- Status changed from Open to Assigned
Updated by mame (Yusuke Endoh) over 12 years ago
- Status changed from Assigned to Closed
I think this issue can be closed. Let me know if I'm wrong.
--
Yusuke Endoh mame@tsg.ne.jp