[MacRuby-devel] [MacRuby] #770: IO#gets is broken when specified limit.

2010-07-04 Thread MacRuby
#770: IO#gets is broken when specified limit.
--+-
 Reporter:  watson1...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:   
Component:  MacRuby   |Keywords:   
--+-
 Test Script:
 {{{
 $ cat test_gets.rb
 File.open("tmp.txt", "w") { |f|
   f.puts "Hello World!"
 }

 File.open("tmp.txt", "r") { |f|
   p f.gets(128)
 }

 File.open("tmp.txt", "r") { |f|
   p f.gets('!', 128)
 }
 }}}

 Ruby 1.9.1's Result:
 {{{
 $ ruby -v test_gets.rb
 ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10]
 "Hello World!\n"
 "Hello World!"
 }}}

 MacRuby Trunk's Result:
 {{{
 $ macruby -v test_gets.rb
 MacRuby 0.7 (ruby 1.9.2) [universal-darwin10.0, x86_64]
 "Hello
 
World!\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
 "Hello
 
World!\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #754: TCP socket is disconnected when used IO#gets and IO#puts.

2010-07-04 Thread MacRuby
#754: TCP socket is disconnected when used IO#gets and IO#puts.
--+-
 Reporter:  watson1...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:   
Component:  MacRuby   |Keywords:   
--+-

Comment(by watson1...@…):

 It seems this issue blocks a #696.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #770: IO#gets is broken when specified limit.

2010-07-04 Thread MacRuby
#770: IO#gets is broken when specified limit.
--+-
 Reporter:  watson1...@…  |   Owner:  lsansone...@…
 Type:  defect|  Status:  new  
 Priority:  blocker   |   Milestone:   
Component:  MacRuby   |Keywords:   
--+-

Comment(by watson1...@…):

 It seems this issue blocks a #753.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #771: Can't build trunk (revision 4317)

2010-07-04 Thread MacRuby
#771: Can't build trunk (revision 4317)
---+
 Reporter:  matt...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:   
---+
 I can't build a fresh trunk checkout (revision 4317).

 {{{
 local:MacRuby matt$ rake
 ...
 /usr/bin/g++-4.2 -I. -I./include -g -Wall -Wno-deprecated-declarations
 -Werror -arch i386 -arch x86_64 -I/usr/local/include  -D_DEBUG
 -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3   -fno-
 rtti -fno-common -Woverloaded-virtual -I./icu-1060 -c compiler.cpp -o
 .objs/compiler.o
 compiler.cpp: In member function ‘void
 RoxorCompiler::attach_current_line_metadata(llvm::Instruction*)’:
 compiler.cpp:819: error: no matching function for call to
 ‘llvm::Instruction::setMetadata(unsigned int&, llvm::DILocation&)’
 /usr/local/include/llvm/Instruction.h:154: note: candidates are: void
 llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)
 /usr/local/include/llvm/Instruction.h:155: note: void
 llvm::Instruction::setMetadata(const char*, llvm::MDNode*)
 compiler.cpp: In member function ‘void
 RoxorCompiler::inline_function_calls(llvm::Function*)’:
 compiler.cpp:2530: error: ‘InlineFunctionInfo’ was not declared in this
 scope
 compiler.cpp:2530: error: expected `;' before ‘IFI’
 compiler.cpp:2533: error: ‘IFI’ was not declared in this scope
 compiler.cpp: In member function ‘void
 RoxorCompiler::attach_current_line_metadata(llvm::Instruction*)’:
 compiler.cpp:819: error: no matching function for call to
 ‘llvm::Instruction::setMetadata(unsigned int&, llvm::DILocation&)’
 /usr/local/include/llvm/Instruction.h:154: note: candidates are: void
 llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)
 /usr/local/include/llvm/Instruction.h:155: note: void
 llvm::Instruction::setMetadata(const char*, llvm::MDNode*)
 compiler.cpp: In member function ‘void
 RoxorCompiler::inline_function_calls(llvm::Function*)’:
 compiler.cpp:2530: error: ‘InlineFunctionInfo’ was not declared in this
 scope
 compiler.cpp:2530: error: expected `;' before ‘IFI’
 compiler.cpp:2533: error: ‘IFI’ was not declared in this scope
 lipo: can't figure out the architecture type of:
 /var/folders/3C/3CBVDxtjGZKtJcnqlRTFiE+++TI/-Tmp-//ccjcQaTw.out
 rake aborted!
 Command failed with status (1): [/usr/bin/g++-4.2 -I. -I./include -g -Wall
 ...]

 (See full trace by running task with --trace)
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #771: Can't build trunk (revision 4317)

2010-07-04 Thread MacRuby
#771: Can't build trunk (revision 4317)
---+
 Reporter:  matt...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:   
---+

Comment(by martinlagarde...@…):

 Hi, thanks for the report, but we need more information:

  - What OS are you running? 10.5? 10.6?
  - What version of LLVM did you build & install?

 We recently changed the required LLVM version, you can check in the
 `README.rdoc` :-)

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #771: Can't build trunk (revision 4317)

2010-07-04 Thread MacRuby
#771: Can't build trunk (revision 4317)
---+
 Reporter:  matt...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:   
---+

Comment(by matt...@…):

 I'm running 10.6.4 with LLVM 2.7 (the latest stable version).  I see that
 you recommend building a particular revision--is this required?

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #771: Can't build trunk (revision 4317)

2010-07-04 Thread MacRuby
#771: Can't build trunk (revision 4317)
---+
 Reporter:  matt...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:   
---+

Comment(by martinlagarde...@…):

 Replying to [comment:2 matt...@…]:
 > I see that you recommend building a particular revision--is this
 required?

 Unfortunately, yes :-). LLVM APIs change so much, we can only rely on
 specific versions, and try to update from times to times.

 If you're willing to build this specific revision, can you tell us if you
 can compile MacRuby after that? :-)

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #771: Can't build trunk (revision 4317)

2010-07-04 Thread MacRuby
#771: Can't build trunk (revision 4317)
---+
 Reporter:  matt...@…  |Owner:  lsansone...@…
 Type:  defect |   Status:  closed   
 Priority:  blocker|Milestone:   
Component:  MacRuby|   Resolution:  worksforme   
 Keywords: |  
---+
Changes (by mattaimone...@…):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 Since it looks like you were not on the required LLVM version, I will
 close this ticket. Feel free to reopen it or comment if you think there is
 still a problem.

 Thanks again for taking the time to file a ticket.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel