[MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2009-10-10 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-
 Hi,
 I've installed the latest daily build of MacRuby (09.10.09), I used to use
 MacRuby few months ago without any problems. I've upgraded to Snow Leopard
 and Xcode 3.2 so I needed the newest build.
 There is a problem while installing any gem (dm-core, haml, sinatra...)
 eg.
 {{{
 bash-3.2# macruby -v
 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]

 bash-3.2# macgem install dm-core
 ERROR:  While executing gem ... (ArgumentError)
 Illformed requirement [nil]
 }}}

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-10 Thread hiroshi saito
Hi Laurent,

Thanks for pointing out possibility about llvm-gcc somewhere in the
PATH. That's right. I found llvm-gcc in /Developer/usr/bin.
After removing /Developer/usr/bin from the PATH, I could successfully
build llvm as an universal binary.

However, as for MacRuby itself, libmacruby.dylib and macruby is OK
with allow_build_warnings=true option, but aot_compile_stdlib is
failed.
I used MacRuby trunk r2779 this time.


$ PATH=$PATH:~/Desktop/wc/MacRuby/llvm-trunk/Release/bin rake
allow_build_warnings=true -t
...
** Invoke macruby:dylib
** Execute aot_compile_stdlib
./miniruby -I. -I./lib bin/rubyc --internal -C "rbconfig.rb" -o "./rbconfig.rbo"
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c:2: error:
expected initializer before ‘-’ token
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c: In function
‘void __init__()’:
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c:5: error:
‘MREP_’ was not declared in this scope
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c:5: error:
‘107041289’ cannot be used as a function
Error when executing `/usr/bin/g++
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c -dynamic
-bundle -undefined suppress -flat_namespace -arch x86_64 -L. -lmacruby
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/rbconfig.o -o
./rbconfig.rbo'
rake aborted!


The content of /var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c is:
extern "C" {
  void *MREP_-107041289(void *, void *);
  void *rb_vm_top_self(void);
  __attribute__((constructor)) static void __init__(void) {
MREP_-107041289(rb_vm_top_self(), 0);
  }
}


FYI, the warnings I forced to ignore with allow_build_warnings=true
are those below. I wonder this is happened by not installing llvm, but
specifying it's location with "PATH".


/usr/bin/g++ -I/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include
-I/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include  -D_DEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3
-fno-common -Woverloaded-virtual -I. -I./include -g -Wall -arch i386
-arch x86_64 -Winline --param inline-unit-growth=1 --param
large-function-growth=1 -x objective-c++ -c dispatcher.cpp -o
dispatcher.o
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:417:
warning: ‘void llvm::PATypeHandle::addUser()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:95:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:422:
warning: ‘void llvm::PATypeHandle::removeUser()’ was used before it
was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:96:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:434:
warning: ‘llvm::Type* llvm::PATypeHolder::get() const’ was used before
it was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:159:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:440:
warning: ‘void llvm::PATypeHolder::addRef()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:182:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:446:
warning: ‘void llvm::PATypeHolder::dropRef()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:183:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:417:
warning: ‘void llvm::PATypeHandle::addUser()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:95:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:422:
warning: ‘void llvm::PATypeHandle::removeUser()’ was used before it
was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:96:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:434:
warning: ‘llvm::Type* llvm::PATypeHolder::get() const’ was used before
it was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:159:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:440:
warning: ‘void llvm::PATypeHolder::addRef()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:182:
warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:446:
warning: ‘void llvm::PATypeHolder::dropRef()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/AbstractTypeUser.h:183:
warnin

Re: [MacRuby-devel] [MacRuby] #94: Bug with non-ASCII in the regular expressions

2009-10-10 Thread MacRuby
#94: Bug with non-ASCII in the regular expressions
+---
 Reporter:  vincent.isamb...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.4  
Component:  MacRuby |Keywords:   
+---

Comment(by hiroshi3...@…):

 This doesn't seem to resolved even in MacRuby 0.5 (trunk r82747).

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #371: Module methods included in the class Module are not visible to other classes.

2009-10-10 Thread MacRuby
#371: Module methods included in the class Module are not visible to other
classes.
-+--
 Reporter:  m...@…   |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by keith.gautre...@…):

 I'm sorry Laurent.  I will open a separate ticket for the second bug.
 Thanks.

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] Flash on the iPhone via LLVM

2009-10-10 Thread B . Ohr

Hi,

I found this interesting article http://www.appleinsider.com/articles/09/10/06/html5_assault_on_adobe_flash_heats_up_with_clicktoflash.html&page=2 
 , describing how Adobe plans to port it's Flash to the iPhone via  
LLVM.


I have never programmed for Flash (I hate Flash), but I know, that  
they are using garbage collection for their ActionScript. They are  
planning a first release for end of the year, so I think they are  
running already gc-Code on the iPhone.


That means: it is time for the first port of MacRuby for the iPhone!

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


[MacRuby-devel] [MacRuby] #378: Macruby 0.5 allows instantiation of a Module instance

2009-10-10 Thread MacRuby
#378: Macruby 0.5 allows instantiation of a Module instance
---+
 Reporter:  keith.gautre...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  minor  |   Milestone:  MacRuby 0.5  
Component:  MacRuby|Keywords:   
---+
 It seems that MacRuby treats modules differently than Ruby 1.9. You
 shouldn't be able to instantiate a named module using the new method, i.e.

 {{{
 A = Module.new do
   def meth1
 "hello"
   end
 end
 }}}

 YARV:
 {{{
 a = A.new => NoMethodError: undefined method `new' for A:Module
 }}}

 but it does in MacRuby returning an instance of A:Module which responds to
 the meth1 call:

 {{{
   a.meth1 =>"hello"
 }}}

 I believe the proper behavior (based on the 1.9 pickaxe documentation) is
 to allow extending of an object with A's methods but not instantiation.

 {{{
 a = NSObject.new
 a.extend(A)
 a.meth1 => "hello"
 }}}

 Once I figure out how to write specs I'll see if I can submit a failing
 one.

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #378: Macruby 0.5 allows instantiation of a Module instance

2009-10-10 Thread MacRuby
#378: Macruby 0.5 allows instantiation of a Module instance
---+
 Reporter:  keith.gautre...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  minor  |   Milestone:  MacRuby 0.5  
Component:  MacRuby|Keywords:   
---+

Comment(by keith.gautre...@…):

 Note: The above is a new ticket copied from a comment on Ticket #371.

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-10 Thread Martin Hess

Congratulations! Truly an amazing effort.

Just curious, is there a webpage to view the daily rubyspec results in  
detail?


On Oct 7, 2009, at 9:13 PM, Laurent Sansonetti wrote:


Hi,

The first beta release of MacRuby 0.5 is out! I prepared some notes  
here:


http://www.macruby.org/blog/2009/10/07/macruby05b1.html

The goal is to go through a few beta releases before releasing the  
final 0.5.


Please give it a try and report us bugs & feedback :)

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


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


Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2009-10-10 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-

Comment(by amadeusz.jasak+macr...@…):

 Adding to [ticket:377 amadeusz.jasak+macr...@…]:
 > Hi,
 > I've installed the latest daily build of MacRuby (09.10.09), I used to
 use MacRuby few months ago without any problems. I've upgraded to Snow
 Leopard and Xcode 3.2 so I needed the newest build.
 > There is a problem while installing any gem (dm-core, haml, sinatra...)
 eg.
 > {{{
 > bash-3.2# macruby -v
 > MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
 >
 > bash-3.2# macgem install dm-core
 > ERROR:  While executing gem ... (ArgumentError)
 > Illformed requirement [nil]
 > }}}
 Not working on Macruby 0.5 beta 1 too... :(

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-10 Thread Matt Aimonetti
Wayne, did you try Ernie's script?

Martin, we actually do, if you check the nightly builds page, and click on
details, you can see the logs and the spec results.

- Matt

On Sat, Oct 10, 2009 at 10:13 AM, Martin Hess  wrote:

> Congratulations! Truly an amazing effort.
>
> Just curious, is there a webpage to view the daily rubyspec results in
> detail?
>
>
> On Oct 7, 2009, at 9:13 PM, Laurent Sansonetti wrote:
>
>  Hi,
>>
>> The first beta release of MacRuby 0.5 is out! I prepared some notes here:
>>
>> http://www.macruby.org/blog/2009/10/07/macruby05b1.html
>>
>> The goal is to go through a few beta releases before releasing the final
>> 0.5.
>>
>> Please give it a try and report us bugs & feedback :)
>>
>> Laurent
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #376: The second 'pointer' of a double pointer type is ignored

2009-10-10 Thread MacRuby
#376: The second 'pointer' of a double pointer type is ignored
-+--
 Reporter:  m...@…   |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by lsansone...@…):

 This looks like a regression in trunk. We should cover this behavior in
 spec/macruby/core/pointer_spec.rb.

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] [MacRuby] #379: Nil symbol error.

2009-10-10 Thread MacRuby
#379: Nil symbol error.
---+
 Reporter:  hungerandthi...@…  |   Owner:  lsansone...@…
  
 Type:  defect |  Status:  new  
  
 Priority:  minor  |   Milestone:  MacRuby 0.5  
  
Component:  MacRuby|Keywords:  nil, symbol error, 
selector
---+
 When trying to use beginSheet method in this fashion:

 {{{
 NSApp.beginSheet(@bookmarkSheet,
 modalForWindow:@mainWindow,
 modalDelegate:self,
 didEndSelector:"bookmark_created",
 contextInfo:nil)
 }}}

 when the containing method is run, I get an error:
 '''nil is not a symbol'''

 I have defined
 {{{
 attr_accessor :bookmarkSheet, :mainWindow
 }}}
 and have linked them in IB.

 Workaround is to create a dummy selector/method for the didEndSelector:
 parameter. Will work fine then.

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #379: Nil symbol error.

2009-10-10 Thread MacRuby
#379: Nil symbol error.
---+
 Reporter:  hungerandthi...@…  |   Owner:  lsansone...@…
  
 Type:  defect |  Status:  new  
  
 Priority:  minor  |   Milestone:  MacRuby 0.5  
  
Component:  MacRuby|Keywords:  nil, symbol error, 
selector
---+

Comment(by mattaimone...@…):

 Tanks for the bug report, we are going to look into it. For documentation
 sake, here is a link to the stackoverflow discussion:
 http://stackoverflow.com/questions/1548391/macruby-sheet-error

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #379: Nil symbol error.

2009-10-10 Thread MacRuby
#379: Nil symbol error.
-+--
 Reporter:  hungerandthi...@…|Owner:  lsansone...@…
 Type:  defect   |   Status:  closed   
 Priority:  minor|Milestone:  MacRuby 0.5  
Component:  MacRuby  |   Resolution:  fixed
 Keywords:  nil, symbol error, selector  |  
-+--
Changes (by lsansone...@…):

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


Comment:

 Should be fixed in r2780.

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2009-10-10 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-

Comment(by lsansone...@…):

 Could you paste your ~/.gemrc file if you have one? Also, could you pass
 -V to `macgem install' and paste us the output?

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2009-10-10 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-

Comment(by lsansone...@…):

 Also, were you able to install a gem before getting this problem? Is there
 anything in ~/.gem/macruby/1.9.0/gems or
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems?

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] Building MacRuby r2765 with llvm r82747 failed on core duo macbook, Leopard

2009-10-10 Thread Laurent Sansonetti

Hi,

On Oct 10, 2009, at 7:17 AM, hiroshi saito wrote:


Hi Laurent,

Thanks for pointing out possibility about llvm-gcc somewhere in the
PATH. That's right. I found llvm-gcc in /Developer/usr/bin.
After removing /Developer/usr/bin from the PATH, I could successfully
build llvm as an universal binary.


Cool.


However, as for MacRuby itself, libmacruby.dylib and macruby is OK
with allow_build_warnings=true option, but aot_compile_stdlib is
failed.
I used MacRuby trunk r2779 this time.


$ PATH=$PATH:~/Desktop/wc/MacRuby/llvm-trunk/Release/bin rake
allow_build_warnings=true -t
...
** Invoke macruby:dylib
** Execute aot_compile_stdlib
./miniruby -I. -I./lib bin/rubyc --internal -C "rbconfig.rb" -o "./ 
rbconfig.rbo"

/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c:2: error:
expected initializer before ‘-’ token
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c: In function
‘void __init__()’:
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c:5: error:
‘MREP_’ was not declared in this scope
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c:5: error:
‘107041289’ cannot be used as a function
Error when executing `/usr/bin/g++
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/main.c -dynamic
-bundle -undefined suppress -flat_namespace -arch x86_64 -L. -lmacruby
/var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/rbconfig.o -o
./rbconfig.rbo'
rake aborted!


Strange. Could you try the following in the same directory and paste  
us the output?


$ ./miniruby -I. -I./lib bin/rubyc --internal -C "rbconfig.rb" -o "./ 
rbconfig.rbo" -V


The content of /var/folders/HQ/HQYJapbxHKW7ieZsqEt5-TI/-Tmp-/ 
main.c is:

extern "C" {
 void *MREP_-107041289(void *, void *);
 void *rb_vm_top_self(void);
 __attribute__((constructor)) static void __init__(void) {
   MREP_-107041289(rb_vm_top_self(), 0);
 }
}


Looks like the unique ID is negative. Maybe a bug of macrubyc.


FYI, the warnings I forced to ignore with allow_build_warnings=true
are those below. I wonder this is happened by not installing llvm, but
specifying it's location with "PATH".


/usr/bin/g++ -I/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include
-I/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include  -D_DEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3
-fno-common -Woverloaded-virtual -I. -I./include -g -Wall -arch i386
-arch x86_64 -Winline --param inline-unit-growth=1 --param
large-function-growth=1 -x objective-c++ -c dispatcher.cpp -o
dispatcher.o
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:417:
warning: ‘void llvm::PATypeHandle::addUser()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:95:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:422:
warning: ‘void llvm::PATypeHandle::removeUser()’ was used before it
was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:96:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:434:
warning: ‘llvm::Type* llvm::PATypeHolder::get() const’ was used before
it was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:159:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:440:
warning: ‘void llvm::PATypeHolder::addRef()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:182:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:446:
warning: ‘void llvm::PATypeHolder::dropRef()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:183:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:417:
warning: ‘void llvm::PATypeHandle::addUser()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:95:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:422:
warning: ‘void llvm::PATypeHandle::removeUser()’ was used before it
was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:96:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:434:
warning: ‘llvm::Type* llvm::PATypeHolder::get() const’ was used before
it was declared inline
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/ 
AbstractTypeUser.h:159:

warning: previous non-inline declaration here
/Users/hiroshi/Desktop/wc/MacRuby/llvm-trunk/include/llvm/Type.h:440:
warning: ‘void llvm::PATypeHolder::addRef()’ was used before it was
declared inline
/Users/hiroshi/Desktop/wc/MacRuby/ll

Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2009-10-10 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-

Comment(by amadeusz.jasak+macr...@…):

 I could use gems in previous versions.
 There were some gems in gems directories, but none of them were working :(
 So I removed contents of gems/ and after
 {{{
 $ sudo macgem install -V dm-core
 Installing gem extlib-0.9.13
 Downloading gem extlib-0.9.13.gem
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/LICENSE
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/README
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/Rakefile
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/History.txt
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/array.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/assertions.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/blank.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/boolean.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/byte_array.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/class.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/datetime.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/dictionary.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/hash.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/hook.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/inflection.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/lazy_array.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/lazy_module.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/logger.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/mash.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/module.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/nil.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/numeric.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/object.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/object_space.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/pathname.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/pooling.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/rubygems.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/simple_set.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/string.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/struct.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/symbol.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/tasks/release.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/time.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/version.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0/gems/extlib-0.9.13/lib/extlib/virtual_file.rb
 
/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/

Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2009-10-10 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-

Comment(by lsansone...@…):

 I was able to install the dm-core gem on my environment but it cannot be
 loaded after because bigdecimal has not been implemented yet.

 {{{
 $ macgem install dm-core
 WARNING:  Installing to ~/.gem since
 /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/Gems/1.9.0
 and
   /usr/bin aren't both writable.
 WARNING:  You don't have /Users/lrz/.gem/macruby/1.9.0/bin in your PATH,
   gem executables will not run.
 Successfully installed extlib-0.9.13
 Successfully installed addressable-2.1.0
 Successfully installed dm-core-0.10.1
 3 gems installed
 $ macruby -r rubygems -e "require 'dm-core'; p 42"
 core:in `raise:': no such file to load -- bigdecimal (LoadError)
 from core:in `require:'
 }}}

 It looks like there is something wrong in your environment. It would be
 interesting to investigate where exactly in rubygems this "Illformed
 requirement [nil]" exception is raised.

 Also, could you try the following: `VM_DISABLE_RBO=1 macgem install dm-
 core' and let us know if it still fails.

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #377: macgem crashes while installing any gem

2009-10-10 Thread MacRuby
#377: macgem crashes while installing any gem
--+-
 Reporter:  amadeusz.jasak+macr...@…  |   Owner:  lsansone...@… 
   
 Type:  defect|  Status:  new   
   
 Priority:  blocker   |   Milestone:  MacRuby 0.5   
   
Component:  MacRuby   |Keywords:  macgem, gem   
   
--+-

Comment(by amadeusz.jasak+macr...@…):

 `VM_DISABLE_RBO=1 macgem install dm-core` doesn't change anything... Good
 to know that DataMapper woudn't work anyway. But I still want to solve my
 problem.

 According to
 
[http://www.google.com/codesearch?hl=en&sa=N&q=%22Illformed+requirement%22++lang:ruby&ct=rr&cs_r=lang:ruby]
 this error means there is something wrong with version string parser.
 Because it's nil (`Illformed requirement [nil]`, isn't it?) it cannot work
 correctly. The question is why it's nil?

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] [MacRuby] #380: issues with Set

2009-10-10 Thread MacRuby
#380: issues with Set
-+--
 Reporter:  mattaimone...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:  MacRuby 0.5  
Component:  MacRuby  |Keywords:   
-+--
 {{{
 macruby -e "require 'rubygems'; require 'set'; raw =
 Set.new(Gem.cache.map{|gem_data| gem_data}); puts raw.inspect"
 }}}


 {{{
 uncaught Objective-C/C++ exception...
 2009-10-10 18:42:47.441 macruby[48074:903] *** Terminating app due to
 uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFSet
 count]: method sent to an uninitialized mutable set object'
 *** Call stack at first throw:
 (
 0   CoreFoundation  0x7fff8454f5a4
 __exceptionPreprocess + 180
 1   libobjc.A.dylib 0x7fff804e1313
 objc_exception_throw + 45
 2   CoreFoundation  0x7fff845a8c33
 -[__NSPlaceholderSet count] + 163
 3   CoreFoundation  0x7fff8455bb99 -[NSSet
 countByEnumeratingWithState:objects:count:] + 169
 4   CoreFoundation  0x7fff845a9662 -[NSSet
 _applyValues:context:] + 114
 5   CoreFoundation  0x7fff844d6929
 CFSetApplyFunction + 89
 6   libmacruby.dylib0x0001000e2220
 rb_set_each + 48
 7   libmacruby.dylib0x00010015faa7
 rb_vm_call_with_cache2 + 4663
 8   libmacruby.dylib0x000100037696
 enum_to_a + 86
 9   libmacruby.dylib0x00010016d62c
 rb_vm_dispatch + 5996
 10  ??? 0x00010112dcb9 0x0 +
 4312980665
 11  ??? 0x000101100239 0x0 +
 4312793657
 12  libmacruby.dylib0x00010003f8d9
 ruby_run_node + 73
 13  macruby 0x00010dd8 main +
 152
 14  macruby 0x00010d34 start +
 52
 15  ??? 0x0003 0x0 + 3
 )
 terminate called after throwing an instance of 'NSException'
 }}}

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #380: issues with Set

2009-10-10 Thread MacRuby
#380: issues with Set
-+--
 Reporter:  mattaimone...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:  MacRuby 0.5  
Component:  MacRuby  |Keywords:   
-+--

Old description:

> {{{
> macruby -e "require 'rubygems'; require 'set'; raw =
> Set.new(Gem.cache.map{|gem_data| gem_data}); puts raw.inspect"
> }}}
>

> {{{
> uncaught Objective-C/C++ exception...
> 2009-10-10 18:42:47.441 macruby[48074:903] *** Terminating app due to
> uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFSet
> count]: method sent to an uninitialized mutable set object'
> *** Call stack at first throw:
> (
> 0   CoreFoundation  0x7fff8454f5a4
> __exceptionPreprocess + 180
> 1   libobjc.A.dylib 0x7fff804e1313
> objc_exception_throw + 45
> 2   CoreFoundation  0x7fff845a8c33
> -[__NSPlaceholderSet count] + 163
> 3   CoreFoundation  0x7fff8455bb99
> -[NSSet countByEnumeratingWithState:objects:count:] + 169
> 4   CoreFoundation  0x7fff845a9662
> -[NSSet _applyValues:context:] + 114
> 5   CoreFoundation  0x7fff844d6929
> CFSetApplyFunction + 89
> 6   libmacruby.dylib0x0001000e2220
> rb_set_each + 48
> 7   libmacruby.dylib0x00010015faa7
> rb_vm_call_with_cache2 + 4663
> 8   libmacruby.dylib0x000100037696
> enum_to_a + 86
> 9   libmacruby.dylib0x00010016d62c
> rb_vm_dispatch + 5996
> 10  ??? 0x00010112dcb9 0x0 +
> 4312980665
> 11  ??? 0x000101100239 0x0 +
> 4312793657
> 12  libmacruby.dylib0x00010003f8d9
> ruby_run_node + 73
> 13  macruby 0x00010dd8 main +
> 152
> 14  macruby 0x00010d34 start
> + 52
> 15  ??? 0x0003 0x0 +
> 3
> )
> terminate called after throwing an instance of 'NSException'
> }}}

New description:

 {{{
 macruby -e "require 'rubygems'; require 'set'; raw =
 Set.new(Gem.cache.map{|gem_data| gem_data}); puts raw.inspect"
 }}}


 {{{
 uncaught Objective-C/C++ exception...
 2009-10-10 18:42:47.441 macruby[48074:903] *** Terminating app due to
 uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFSet
 count]: method sent to an uninitialized mutable set object'
 *** Call stack at first throw:
 (
 0   CoreFoundation  0x7fff8454f5a4
 __exceptionPreprocess + 180
 1   libobjc.A.dylib 0x7fff804e1313
 objc_exception_throw + 45
 2   CoreFoundation  0x7fff845a8c33
 -[__NSPlaceholderSet count] + 163
 3   CoreFoundation  0x7fff8455bb99 -[NSSet
 countByEnumeratingWithState:objects:count:] + 169
 4   CoreFoundation  0x7fff845a9662 -[NSSet
 _applyValues:context:] + 114
 5   CoreFoundation  0x7fff844d6929
 CFSetApplyFunction + 89
 6   libmacruby.dylib0x0001000e2220
 rb_set_each + 48
 7   libmacruby.dylib0x00010015faa7
 rb_vm_call_with_cache2 + 4663
 8   libmacruby.dylib0x000100037696
 enum_to_a + 86
 9   libmacruby.dylib0x00010016d62c
 rb_vm_dispatch + 5996
 10  ??? 0x00010112dcb9 0x0 +
 4312980665
 11  ??? 0x000101100239 0x0 +
 4312793657
 12  libmacruby.dylib0x00010003f8d9
 ruby_run_node + 73
 13  macruby 0x00010dd8 main +
 152
 14  macruby 0x00010d34 start +
 52
 15  ??? 0x0003 0x0 + 3
 )
 terminate called after throwing an instance of 'NSException'
 }}}

--

Comment(by lsansone...@…):

 I think it's time to get rid of set.c and use the pure ruby implementation
 again.

-- 
Ticket URL: 
MacRuby 

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