Hi,
after a full day of trying to build a working Orocos Toolchain from master
on my OSX system I'm very close to giving up.
Here is what I tried:
* Using the system version of Ruby:
(which was 1.8.7) I could succesfully compile the entire toolchain, using
orogen however resulted in not finding the nokogiri gem (it however was
installed using gem install nokogiri).
* Using the Macport version of Ruby:
This is also version 1.8.7, I again could compile the entire toolchain but
got the following error on using typegen/utilrb:
**********************************************************************************************************
[UseOrocos] Generating typekit for foo ...
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/with_module.rb:28:in
`const_missing': uninitialized constant Kernel::BasicObject (NameError)
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/load_dsl_file.rb:153:in
`dsl_exec_common'
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/with_module.rb:45:in
`instance_eval'
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/with_module.rb:45:in
`with_module'
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/load_dsl_file.rb:152:in
`dsl_exec_common'
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/load_dsl_file.rb:34:in
`load_dsl_filter_backtrace'
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/load_dsl_file.rb:151:in
`dsl_exec_common'
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/load_dsl_file.rb:110:in
`eval_dsl_file_content'
from
/opt/orocos/lib/ruby/1.8/i686-darwin12/utilrb/kernel/load_dsl_file.rb:126:in
`eval_dsl_file'
from /opt/orocos/lib/ruby/1.8/i686-darwin12/orogen/gen/project.rb:1339:in
`load'
from /opt/orocos/lib/ruby/1.8/i686-darwin12/orogen/gen/imports.rb:236:in
`load'
from /opt/orocos/lib/ruby/1.8/i686-darwin12/orogen/gen/imports.rb:195:in
`load'
from /opt/orocos/lib/ruby/1.8/i686-darwin12/orogen/gen/project.rb:219:in
`standard_tasks'
from /opt/orocos/lib/ruby/1.8/i686-darwin12/orogen/gen/project.rb:218:in
`each'
from /opt/orocos/lib/ruby/1.8/i686-darwin12/orogen/gen/project.rb:218:in
`standard_tasks'
from /opt/orocos/lib/ruby/1.8/i686-darwin12/orogen/gen/project.rb:244:in
`initialize'
from /opt/orocos/bin/typegen:12:in `new'
from /opt/orocos/bin/typegen:12
***************************************************************************************************************
* Using the Macport version of Ruby 1.9:
This is actually version 1.9.3 and I got the following error when building
utilrb:
**************************************************************************************************************
Virtuals-iMac:utilrb vm$ rake
Defaulting gemspec to MIT license.
Call license in hoe spec to change.
'utilrb' cannot be build -- loading gem failed: cannot load such file --
rake/extensiontask
/opt/local/bin/ruby1.9 -w -Ilib:bin:test:. -e 'require "rubygems"; require
"minitest/autorun"; require "test/test_array.rb"; require
"test/test_config.rb"; require "test/test_dir.rb"; require
"test/test_enumerable.rb"; require "test/test_event_loop.rb"; require
"test/test_exception.rb"; require "test/test_gc.rb"; require
"test/test_hash.rb"; require "test/test_kernel.rb"; require
"test/test_logger.rb"; require "test/test_misc.rb"; require
"test/test_models.rb"; require "test/test_module.rb"; require
"test/test_object.rb"; require "test/test_objectstats.rb"; require
"test/test_pkgconfig.rb"; require "test/test_proc.rb"; require
"test/test_set.rb"; require "test/test_thread_pool.rb"; require
"test/test_time.rb"; require "test/test_unbound_method.rb"; require
"test/test_weakref.rb"' --
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_event_loop.rb:146:
warning: assigned but unused variable - timer1
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_event_loop.rb:149:
warning: assigned but unused variable - timer2
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:592:
warning: `&' interpreted as argument prefix
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/thread_pool.rb:489:
warning: assigned but unused variable - tasks
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:131:
warning: method redefined; discarding old single_shot?
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:77:
warning: previous definition of single_shot? was here
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:917:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:911:
warning: shadowing outer local variable - args
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/event_loop.rb:895:
warning: assigned but unused variable - options
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/kernel/load_dsl_file.rb:70:
warning: ambiguous first argument; put parentheses or even spaces
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/kernel/with_module.rb:14:
warning: shadowing outer local variable - l
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/logger/indent.rb:10:
warning: method redefined; discarding old nest_size=
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/logger/indent.rb:67:
warning: method redefined; discarding old format_message
/opt/local/lib/ruby1.9/1.9.1/logger.rb:490: warning: previous definition of
format_message was here
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/logger/root.rb:54:
warning: shadowing outer local variable - progname
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/logger/root.rb:57:
warning: shadowing outer local variable - progname
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/logger/root.rb:46:
warning: assigned but unused variable - e
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/logger/root.rb:50:
warning: instance variable @console not initialized
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_objectstats.rb:22:
warning: assigned but unused variable - test
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_objectstats.rb:23:
warning: assigned but unused variable - a
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_objectstats.rb:23:
warning: assigned but unused variable - b
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/objectstats.rb:67:
warning: assigned but unused variable - profile
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/objectstats.rb:184:
warning: shadowing outer local variable - result
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/column_formatter.rb:56:
warning: shadowing outer local variable - data
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/column_formatter.rb:61:
warning: shadowing outer local variable - data
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/pkgconfig.rb:218:
warning: ambiguous first argument; put parentheses or even spaces
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/ruby_object_graph.rb:271:
warning: shadowing outer local variable - obj
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/lib/utilrb/spawn.rb:48:
warning: assigned but unused variable - e
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_thread_pool.rb:111:
warning: assigned but unused variable - t
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_thread_pool.rb:128:
warning: assigned but unused variable - t
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_thread_pool.rb:212:
warning: assigned but unused variable - task
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_thread_pool.rb:242:
warning: assigned but unused variable - task
/Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_weakref.rb:64:
warning: assigned but unused variable - obj
Run options: --seed 7475
# Running tests:
......./Users/vm/orocos_ws/src/orocos_toolchain/utilrb/test/test_enumerable.rb:65:
[BUG] unknown type 0x22 (0xc given)
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12]
Mac OSX -- Orocos Toolchain -- Ruby
On Sep 11, 2013, at 8:16 AM, Ruben Smits <ruben [dot] smits [..] ...> wrote:
> Hi,
>
> after a full day of trying to build a working Orocos Toolchain from master on my OSX system I'm very close to giving up.
>
> Here is what I tried:
>
> * Using the system version of Ruby:
>
> (which was 1.8.7) I could succesfully compile the entire toolchain, using orogen however resulted in not finding the nokogiri gem (it however was installed using gem install nokogiri).
>
> * Using the Macport version of Ruby:
> This is also version 1.8.7, I again could compile the entire toolchain but got the following error on using typegen/utilrb:
...
> Is there anyone using the Orocos Toolchain master on OSX? If so how did you install ruby.
>
> I see two solutions:
>
> * Fix typelib to support Ruby 1.9.2 or Ruby 1.9.3
> * Fix typegen/utilrb to support Ruby 1.8.7
>
>
> Ruben
This might be salt in the wound, but have you tried this with Homebrew instead of MacPorts? I don't know that it will help, but I probably won't hurt either.
-dustin
Mac OSX -- Orocos Toolchain -- Ruby
On 09/11/2013 03:23 PM, Gooding, Dustin R. (JSC-ER411) wrote:
> I see two solutions:
>>
>>* Fix typelib to support Ruby 1.9.2 or Ruby 1.9.3
>>* Fix typegen/utilrb to support Ruby 1.8.7
>>
- This is MacOSX-specific problem (I don't mean that it is not a
problem, just that the whole toolchain *is* compatible with 1.9.3).
And - my guess since it works fine on gcc - is that it is a
different behaviour between gcc and clang.
- you are missing the rake-compiler gem (version < 0.9.0).
- the crash you got when running the test at the end of your log is a
symptom of using a 1.8-compiled gem with a 1.9 interpreter (or the
other way around)