Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac OSX

Hi,

I'm trying to use autoproj to build the Orocos Toolchain on my OSX system
(10.6.8) using ruby 1.8.7

I've tried multiple bootstrap scripts, all without success: it always comes
down to the following error:

from http://rock-robotics.org/autoproj_bootstrap-dev:

ruby autoproj_bootstrap-dev
The current directory is not empty, continue bootstrapping anyway ? [yes]
autodetecting the operating system
autoproj_bootstrap-dev:877:in `operating_system': undefined method `macos?'
for Autobuild:Module (NoMethodError)
from autoproj_bootstrap-dev:780:in `supported_operating_system?'
from autoproj_bootstrap-dev:1333:in `define_osdeps_mode_option'
from autoproj_bootstrap-dev:2021

from http://rock-robotics.org/autoproj_bootstrap

ruby autoproj_bootstrap
The current directory is not empty, continue bootstrapping anyway ? [yes]
autodetecting the operating system
autoproj_bootstrap:882:in `operating_system': undefined method `macos?' for
Autobuild:Module (NoMethodError)
from autoproj_bootstrap:785:in `supported_operating_system?'
from autoproj_bootstrap:1338:in `define_osdeps_mode_option'
from autoproj_bootstrap:2025

I've installed autoproj and autobuild using gem:

gem install autoproj autobuild:

gem install autoproj
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/rubensmits/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while...
Successfully installed rake-10.0.3
Successfully installed facets-2.9.3
Successfully installed utilrb-1.6.6
Successfully installed autobuild-1.7.0
Successfully installed autoproj-1.9.0

I added the .gem directory to my path to make autoproj available.

Does anyone know how to fix this?

Thanks,

Ruben

--

Ruben Smits, Phd
Chief Technology Officer
Intermodalics BVBA
+32479511786
www.intermodalics.eu

Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac O

Hi Rubens

Sorry for the long wait ... Here is a (I hope) fixed autoproj_bootstrap
file. Could you test and tell me if it is indeed fixed ?

Sylvain

Ruben Smits's picture

Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac O

Sorry for the long wait for testing, it however fails very early in the
process:

ruby autoproj_bootstrap
The current directory is not empty, continue bootstrapping anyway ? [yes]
yes
autodetecting the operating system
Which prepackaged software (a.k.a. 'osdeps') should autoproj install
automatically (ruby, none) ?
...
So, what do you want ? (ruby or none) [ruby]
autoproj: installing a proper Ruby environment (this can take a long time)
autodetecting the operating system
autodetecting the operating system
failed: there is an osdep definition for ruby, and it explicitely states
that this package does not exist on your OS

I tried both with ruby and none, both failed in the same way.

Ruben

Ruben Smits, Phd
Chief Technology Officer
Intermodalics BVBA
+32479511786
www.intermodalics.eu

On Fri, Feb 15, 2013 at 11:37 AM, Sylvain Joyeux <sylvain [dot] joyeux [..] ...>wrote:

> Hi Rubens
>
> Sorry for the long wait ... Here is a (I hope) fixed autoproj_bootstrap
> file. Could you test and tell me if it is indeed fixed ?
>
> Sylvain
>

Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac O

Good Morning,
i done the MacOS port (unfortunately - without having an mac)
i added a few lines debug code to the attached autoproj_boostrap file.

I need a few more debug info's why the bootstrap failed on your macos.
The bootstrap will fail as before but with additional output.
Can you send me the whole debug-output when you are using this script.

Greetings,
Matthias

On 25.02.2013 19:36, Ruben Smits wrote:
> Sorry for the long wait for testing, it however fails very early in
> the process:
>
> ruby autoproj_bootstrap
> The current directory is not empty, continue bootstrapping anyway ?
> [yes] yes
> autodetecting the operating system
> Which prepackaged software (a.k.a. 'osdeps') should autoproj install
> automatically (ruby, none) ?
> ...
> So, what do you want ? (ruby or none) [ruby]
> autoproj: installing a proper Ruby environment (this can take a long time)
> autodetecting the operating system
> autodetecting the operating system
> failed: there is an osdep definition for ruby, and it explicitely
> states that this package does not exist on your OS
>
>
> I tried both with ruby and none, both failed in the same way.
>
> Ruben
>
> Ruben Smits, Phd
> Chief Technology Officer
> Intermodalics BVBA
> +32479511786
> www.intermodalics.eu <http://www.intermodalics.eu>
>
>
> On Fri, Feb 15, 2013 at 11:37 AM, Sylvain Joyeux
> <sylvain [dot] joyeux [..] ... sylvain [dot] joyeux [..] ...>> wrote:
>
> Hi Rubens
>
> Sorry for the long wait ... Here is a (I hope) fixed
> autoproj_bootstrap file. Could you test and tell me if it is
> indeed fixed ?
>
> Sylvain
>
>
>
>

Ruben Smits's picture

Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac O

Hi Matthias,

here is the full output:
--------
ruby autoproj_bootstrap
autodetecting the operating system
Macos is: hostos is:
WARNING no OS Detected
Which prepackaged software (a.k.a. 'osdeps') should autoproj install
automatically (ruby, none) ?
The software packages that autoproj will have to build may require other
prepackaged softwares (a.k.a. OS dependencies) to be installed (RubyGems
packages, packages from your operating system/distribution, ...).
Autoproj is
usually able to install those automatically, but unfortunately your
operating
system is not (yet) supported by autoproj's osdeps mechanism, it can
only offer
you some limited support.

RubyGem packages are a cross-platform mechanism, and are therefore
supported.
However, you will have to install the kind of OS dependencies
(so-called OS
packages)

This option is meant to allow you to control autoproj's behaviour while
handling
OS dependencies.

* if you say "ruby", the RubyGem packages will be installed.
* if you say "none", autoproj will not do anything related to the OS
dependencies.

As any configuration value, the mode can be changed anytime by calling
an autoproj operation with the --reconfigure option (e.g. autoproj
update
--reconfigure).

Finally, OS dependencies can be installed by calling "autoproj osdeps"
with the corresponding option (--all, --ruby, --os or --none). Calling
"autoproj osdeps" without arguments will also give you information as
to what you should install to compile the software successfully.

So, what do you want ? (ruby or none) [ruby]
autoproj: installing a proper Ruby environment (this can take a long time)
autodetecting the operating system
Macos is: hostos is:
WARNING no OS Detected
autodetecting the operating system
Macos is: hostos is:
WARNING no OS Detected
failed: there is an osdep definition for ruby, and it explicitely states
that this package does not exist on your OS
---------

Apparently it does not detect the OS at all.

I ran the following script:

require 'rbconfig'
puts "Ruby Info:"
puts " RUBY_PLATFORM: #{RUBY_PLATFORM}"
puts " RUBY_VERSION: #{RUBY_VERSION}"
puts " Config::CONFIG['RUBY_INSTALL_NAME']:
#{Config::CONFIG['RUBY_INSTALL_NAME']}"
puts " Config::CONFIG['host_os']: #{Config::CONFIG['host_os']}"

which gave me the following output:

Ruby Info:
RUBY_PLATFORM: universal-darwin10.0
RUBY_VERSION: 1.8.7
Config::CONFIG['RUBY_INSTALL_NAME']:
ruby
Config::CONFIG['host_os']: darwin10.0

Some further investigation learned me that the following line is incorrect:

@macos = RbConfig::CONFIG['host_os'] = ~%r!([Dd]arwin)!

should be

@macos = RbConfig::CONFIG['host_os'] =~%r!([Dd]arwin)!

notice the removed space between = and ~

Ruben

Ruben Smits, Phd
Chief Technology Officer
Intermodalics BVBA
+32479511786
www.intermodalics.eu

On Tue, Feb 26, 2013 at 8:29 AM, Matthias Goldhoorn <
matthias [dot] goldhoorn [..] ...> wrote:

> Good Morning,
> i done the MacOS port (unfortunately - without having an mac)
> i added a few lines debug code to the attached autoproj_boostrap file.
>
> I need a few more debug info’s why the bootstrap failed on your macos.
> The bootstrap will fail as before but with additional output.
> Can you send me the whole debug-output when you are using this script.
>
> Greetings,
> Matthias
>
>
> On 25.02.2013 19:36, Ruben Smits wrote:
>
> Sorry for the long wait for testing, it however fails very early in the
> process:
>
> ruby autoproj_bootstrap
> The current directory is not empty, continue bootstrapping anyway ? [yes]
> yes
> autodetecting the operating system
> Which prepackaged software (a.k.a. 'osdeps') should autoproj install
> automatically (ruby, none) ?
> ...
> So, what do you want ? (ruby or none) [ruby]
> autoproj: installing a proper Ruby environment (this can take a long time)
> autodetecting the operating system
> autodetecting the operating system
> failed: there is an osdep definition for ruby, and it explicitely states
> that this package does not exist on your OS
>
>
> I tried both with ruby and none, both failed in the same way.
>
> Ruben
>
> Ruben Smits, Phd
> Chief Technology Officer
> Intermodalics BVBA
> +32479511786
> www.intermodalics.eu
>
>
> On Fri, Feb 15, 2013 at 11:37 AM, Sylvain Joyeux <sylvain [dot] joyeux [..] ...>wrote:
>
>> Hi Rubens
>>
>> Sorry for the long wait ... Here is a (I hope) fixed autoproj_bootstrap
>> file. Could you test and tell me if it is indeed fixed ?
>>
>> Sylvain
>>
>
>
>
>
>
> --
> Dipl.-Inf. Matthias Goldhoorn
> Space and Underwater Robotic
>
> Universität Bremen
> FB 3 - Mathematik und Informatik
> AG Robotik
> Robert-Hooke-Straße 5
> 28359 Bremen, Germany
>
> Tel.: +49 421 178 45-4193
> Zentrale: +49 421 178 45-6550
> Fax: +49 421 178 45-4150
> E-Mail: matthias [dot] goldhoorn [..] ...
>
> Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
>
>

Ruben Smits's picture

Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac O

On Tue, Feb 26, 2013 at 9:41 AM, Ruben Smits
<ruben [dot] smits [..] ...>wrote:

> Hi Matthias,
>
> here is the full output:
> --------
> ruby autoproj_bootstrap
> autodetecting the operating system
> Macos is: hostos is:
> WARNING no OS Detected
> Which prepackaged software (a.k.a. 'osdeps') should autoproj install
> automatically (ruby, none) ?
> The software packages that autoproj will have to build may require
> other
> prepackaged softwares (a.k.a. OS dependencies) to be installed
> (RubyGems
> packages, packages from your operating system/distribution, ...).
> Autoproj is
> usually able to install those automatically, but unfortunately your
> operating
> system is not (yet) supported by autoproj's osdeps mechanism, it can
> only offer
> you some limited support.
>
> RubyGem packages are a cross-platform mechanism, and are therefore
> supported.
> However, you will have to install the kind of OS dependencies
> (so-called OS
> packages)
>
> This option is meant to allow you to control autoproj's behaviour
> while handling
> OS dependencies.
>
> * if you say "ruby", the RubyGem packages will be installed.
> * if you say "none", autoproj will not do anything related to the OS
> dependencies.
>
> As any configuration value, the mode can be changed anytime by calling
> an autoproj operation with the --reconfigure option (e.g. autoproj
> update
> --reconfigure).
>
> Finally, OS dependencies can be installed by calling "autoproj osdeps"
> with the corresponding option (--all, --ruby, --os or --none). Calling
> "autoproj osdeps" without arguments will also give you information as
> to what you should install to compile the software successfully.
>
> So, what do you want ? (ruby or none) [ruby]
> autoproj: installing a proper Ruby environment (this can take a long time)
> autodetecting the operating system
> Macos is: hostos is:
> WARNING no OS Detected
> autodetecting the operating system
> Macos is: hostos is:
> WARNING no OS Detected
> failed: there is an osdep definition for ruby, and it explicitely states
> that this package does not exist on your OS
> ---------
>
> Apparently it does not detect the OS at all.
>
> I ran the following script:
>
> require 'rbconfig'
> puts "Ruby Info:"
> puts " RUBY_PLATFORM: #{RUBY_PLATFORM}"
> puts " RUBY_VERSION: #{RUBY_VERSION}"
> puts " Config::CONFIG['RUBY_INSTALL_NAME']:
> #{Config::CONFIG['RUBY_INSTALL_NAME']}"
> puts " Config::CONFIG['host_os']: #{Config::CONFIG['host_os']}"
>
> which gave me the following output:
>
> Ruby Info:
> RUBY_PLATFORM: universal-darwin10.0
> RUBY_VERSION: 1.8.7
> Config::CONFIG['RUBY_INSTALL_NAME']:
> ruby
> Config::CONFIG['host_os']: darwin10.0
>
> Some further investigation learned me that the following line is incorrect:
>
> @macos = RbConfig::CONFIG['host_os'] = ~%r!([Dd]arwin)!
>
> should be
>
> @macos = RbConfig::CONFIG['host_os'] =~%r!([Dd]arwin)!
>
> notice the removed space between = and ~
>
>
After this adaptation the bootstrap script succesfully finished!

But doing `autoproj update` returned the following error:
--------
autoproj update
autodetecting the operating system
Which prepackaged software (a.k.a. 'osdeps') should autoproj install
automatically (ruby, none) ? ruby
autodetecting the operating system

undeclared option 'operating_system'
-----------

I assume this problem is related to the bug in the bootstrap script,
although I do not know where to resolve the problem.

Ruben

Ruben
>
> Ruben Smits, Phd
> Chief Technology Officer
> Intermodalics BVBA
> +32479511786
> www.intermodalics.eu
>
>
> On Tue, Feb 26, 2013 at 8:29 AM, Matthias Goldhoorn <
> matthias [dot] goldhoorn [..] ...> wrote:
>
>> Good Morning,
>> i done the MacOS port (unfortunately - without having an mac)
>> i added a few lines debug code to the attached autoproj_boostrap file.
>>
>> I need a few more debug info’s why the bootstrap failed on your macos.
>> The bootstrap will fail as before but with additional output.
>> Can you send me the whole debug-output when you are using this script.
>>
>> Greetings,
>> Matthias
>>
>>
>> On 25.02.2013 19:36, Ruben Smits wrote:
>>
>> Sorry for the long wait for testing, it however fails very early in the
>> process:
>>
>> ruby autoproj_bootstrap
>> The current directory is not empty, continue bootstrapping anyway ? [yes]
>> yes
>> autodetecting the operating system
>> Which prepackaged software (a.k.a. 'osdeps') should autoproj install
>> automatically (ruby, none) ?
>> ...
>> So, what do you want ? (ruby or none) [ruby]
>> autoproj: installing a proper Ruby environment (this can take a long time)
>> autodetecting the operating system
>> autodetecting the operating system
>> failed: there is an osdep definition for ruby, and it explicitely states
>> that this package does not exist on your OS
>>
>>
>> I tried both with ruby and none, both failed in the same way.
>>
>> Ruben
>>
>> Ruben Smits, Phd
>> Chief Technology Officer
>> Intermodalics BVBA
>> +32479511786
>> www.intermodalics.eu
>>
>>
>> On Fri, Feb 15, 2013 at 11:37 AM, Sylvain Joyeux <sylvain [dot] joyeux [..] ...>wrote:
>>
>>> Hi Rubens
>>>
>>> Sorry for the long wait ... Here is a (I hope) fixed autoproj_bootstrap
>>> file. Could you test and tell me if it is indeed fixed ?
>>>
>>> Sylvain
>>>
>>
>>
>>
>>
>>
>> --
>> Dipl.-Inf. Matthias Goldhoorn
>> Space and Underwater Robotic
>>
>> Universität Bremen
>> FB 3 - Mathematik und Informatik
>> AG Robotik
>> Robert-Hooke-Straße 5
>> 28359 Bremen, Germany
>>
>> Tel.: +49 421 178 45-4193
>> Zentrale: +49 421 178 45-6550
>> Fax: +49 421 178 45-4150
>> E-Mail: matthias [dot] goldhoorn [..] ...
>>
>> Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
>>
>>
>

Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac O

You are absolutely right, find attached the corrected bootstrap_script
(with debug output).
I will fix this on HEAD of autoproj and autobuild as soon as gitorious
is back online... (hmpf).
In the meantime please find attached 2 additional bugs i fixed for macos
too.

Paste the files in:
dev/.gems/gems/autoproj-1.9.2/lib/autoproj/osdeps.rb <--- forget to set
the install option on "ports install <package>"
dev/.gems/gems/autobuild-1.7.0/lib/autobuild/environment.rb<-- same than
in bootstrap

When gitorious is back online you also can use the HEAD versions of
autoproj/autobuild by following these instructions:
http://rock.opendfki.de/wiki/WikiStart/Toolchain/DevelopingAutoproj

Greetings ans sorry for these ---uhm jeah--- bugs ;).

Matthias

On 26.02.2013 09:44, Ruben Smits wrote:
>
> On Tue, Feb 26, 2013 at 9:41 AM, Ruben Smits
> <ruben [dot] smits [..] ... ruben [dot] smits [..] ...>>
> wrote:
>
> Hi Matthias,
>
> here is the full output:
> --------
> ruby autoproj_bootstrap
> autodetecting the operating system
> Macos is: hostos is:
> WARNING no OS Detected
> Which prepackaged software (a.k.a. 'osdeps') should autoproj
> install automatically (ruby, none) ?
> The software packages that autoproj will have to build may
> require other
> prepackaged softwares (a.k.a. OS dependencies) to be installed
> (RubyGems
> packages, packages from your operating system/distribution,
> ...). Autoproj is
> usually able to install those automatically, but unfortunately
> your operating
> system is not (yet) supported by autoproj's osdeps mechanism,
> it can only offer
> you some limited support.
> RubyGem packages are a cross-platform mechanism, and are
> therefore supported.
> However, you will have to install the kind of OS dependencies
> (so-called OS
> packages)
> This option is meant to allow you to control autoproj's
> behaviour while handling
> OS dependencies.
> * if you say "ruby", the RubyGem packages will be installed.
> * if you say "none", autoproj will not do anything related to
> the OS
> dependencies.
> As any configuration value, the mode can be changed anytime by
> calling
> an autoproj operation with the --reconfigure option (e.g.
> autoproj update
> --reconfigure).
> Finally, OS dependencies can be installed by calling "autoproj
> osdeps"
> with the corresponding option (--all, --ruby, --os or --none).
> Calling
> "autoproj osdeps" without arguments will also give you
> information as
> to what you should install to compile the software successfully.
> So, what do you want ? (ruby or none) [ruby]
> autoproj: installing a proper Ruby environment (this can take a
> long time)
> autodetecting the operating system
> Macos is: hostos is:
> WARNING no OS Detected
> autodetecting the operating system
> Macos is: hostos is:
> WARNING no OS Detected
> failed: there is an osdep definition for ruby, and it explicitely
> states that this package does not exist on your OS
> ---------
>
> Apparently it does not detect the OS at all.
>
> I ran the following script:
>
> require 'rbconfig'
> puts "Ruby Info:"
> puts " RUBY_PLATFORM: #{RUBY_PLATFORM}"
> puts " RUBY_VERSION: #{RUBY_VERSION}"
> puts " Config::CONFIG['RUBY_INSTALL_NAME']:
> #{Config::CONFIG['RUBY_INSTALL_NAME']}"
> puts " Config::CONFIG['host_os']: #{Config::CONFIG['host_os']}"
>
> which gave me the following output:
>
> Ruby Info:
> RUBY_PLATFORM: universal-darwin10.0
> RUBY_VERSION: 1.8.7
> Config::CONFIG['RUBY_INSTALL_NAME']:
> ruby
> Config::CONFIG['host_os']: darwin10.0
>
> Some further investigation learned me that the following line is
> incorrect:
>
> @macos = RbConfig::CONFIG['host_os'] = ~%r!([Dd]arwin)!
>
> should be
>
> @macos = RbConfig::CONFIG['host_os'] =~%r!([Dd]arwin)!
>
> notice the removed space between = and ~
>
>
> After this adaptation the bootstrap script succesfully finished!
>
> But doing `autoproj update` returned the following error:
> --------
> autoproj update
> autodetecting the operating system
> Which prepackaged software (a.k.a. 'osdeps') should autoproj install
> automatically (ruby, none) ? ruby
> autodetecting the operating system
>
> undeclared option 'operating_system'
> -----------
>
> I assume this problem is related to the bug in the bootstrap script,
> although I do not know where to resolve the problem.
>
> Ruben
>
> Ruben
>
> Ruben Smits, Phd
> Chief Technology Officer
> Intermodalics BVBA
> +32479511786 <tel:%2B32479511786>
> www.intermodalics.eu <http://www.intermodalics.eu>
>
>
> On Tue, Feb 26, 2013 at 8:29 AM, Matthias Goldhoorn
> <matthias [dot] goldhoorn [..] ...
> <mailto:matthias [dot] goldhoorn [..] ...>> wrote:
>
> Good Morning,
> i done the MacOS port (unfortunately - without having an mac)
> i added a few lines debug code to the attached
> autoproj_boostrap file.
>
> I need a few more debug info’s why the bootstrap failed on
> your macos.
> The bootstrap will fail as before but with additional output.
> Can you send me the whole debug-output when you are using this
> script.
>
> Greetings,
> Matthias
>
>
> On 25.02.2013 19:36, Ruben Smits wrote:
>> Sorry for the long wait for testing, it however fails very
>> early in the process:
>>
>> ruby autoproj_bootstrap
>> The current directory is not empty, continue bootstrapping
>> anyway ? [yes] yes
>> autodetecting the operating system
>> Which prepackaged software (a.k.a. 'osdeps') should
>> autoproj install automatically (ruby, none) ?
>> ...
>> So, what do you want ? (ruby or none) [ruby]
>> autoproj: installing a proper Ruby environment (this can take
>> a long time)
>> autodetecting the operating system
>> autodetecting the operating system
>> failed: there is an osdep definition for ruby, and it
>> explicitely states that this package does not exist on your OS
>>
>>
>> I tried both with ruby and none, both failed in the same way.
>>
>> Ruben
>>
>> Ruben Smits, Phd
>> Chief Technology Officer
>> Intermodalics BVBA
>> +32479511786 <tel:%2B32479511786>
>> www.intermodalics.eu <http://www.intermodalics.eu>
>>
>>
>> On Fri, Feb 15, 2013 at 11:37 AM, Sylvain Joyeux
>> <sylvain [dot] joyeux [..] ... sylvain [dot] joyeux [..] ...>> wrote:
>>
>> Hi Rubens
>>
>> Sorry for the long wait ... Here is a (I hope) fixed
>> autoproj_bootstrap file. Could you test and tell me if it
>> is indeed fixed ?
>>
>> Sylvain
>>
>>
>>
>>
>
>
> --
> Dipl.-Inf. Matthias Goldhoorn
> Space and Underwater Robotic
>
> Universität Bremen
> FB 3 - Mathematik und Informatik
> AG Robotik
> Robert-Hooke-Straße 5
> 28359 Bremen, Germany
>
> Tel.:+49 421 178 45-4193 <tel:%2B49%20421%20178%2045-4193>
> Zentrale:+49 421 178 45-6550 <tel:%2B49%20421%20178%2045-6550>
> Fax:+49 421 178 45-4150 <tel:%2B49%20421%20178%2045-4150>
> E-Mail:matthias [dot] goldhoorn [..] ... <mailto:matthias [dot] goldhoorn [..] ...>
>
> Weitere Informationen:http://www.informatik.uni-bremen.de/robotik
>
>
>