[Bug 842] New: bootstrap fails on Mac OS/X

http://bugs.orocos.org/show_bug.cgi?id=842

Summary: bootstrap fails on Mac OS/X
Product: Toolchain
Version: unspecified
Platform: All
OS/Version: Mac OS X
Status: NEW
Severity: enhancement
Priority: P3
Component: Autoproj
AssignedTo: orocos-dev [..] ...
ReportedBy: ruben [dot] smits [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Hi,

I'm trying to bootstrap the orocos-toolchain using the "easy way" of the
QuickStart page (http://www.orocos.org/wiki/orocos/toolchain/quick-start), but
this results in the following error:

sh bootstrap.sh
--2011-03-11 11:07:03-- http://doudou.github.com/autoproj/autoproj_bootstrap
Resolving doudou.github.com (doudou.github.com)... 207.97.227.245
Connecting to doudou.github.com (doudou.github.com)|207.97.227.245|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 52153 (51K) [application/octet-stream]
Saving to: `autoproj_bootstrap'

100%[===================================================================================>]
52,153 122K/s in 0.4s

2011-03-11 11:07:04 (122 KB/s) - `autoproj_bootstrap' saved [52153/52153]

The current directory is not empty, continue bootstrapping anyway ? [yes] yes
autodetecting the operating system
autoproj_bootstrap:678:in `osdeps_mode_option_unsupported_os': undefined local
variable or method `short_doc' for Autoproj::OSDependencies:Class (NameError)
from autoproj_bootstrap:724:in `define_osdeps_mode_option'
from autoproj_bootstrap:1440
bootstrap.sh: line 27: /Users/rubensmits/orocos-toolchain/env.sh: No such file
or directory

I'm using ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

-- Ruben

[Bug 842] New: bootstrap fails on Mac OS/X

On 03/11/2011 11:20 AM, Ruben Smits wrote:
> http://bugs.orocos.org/show_bug.cgi?id=842
>
> Summary: bootstrap fails on Mac OS/X
> Product: Toolchain
> Version: unspecified
> Platform: All
> OS/Version: Mac OS X
> Status: NEW
> Severity: enhancement
> Priority: P3
> Component: Autoproj
> AssignedTo: orocos-dev [..] ...
> ReportedBy: ruben [dot] smits [..] ...
> CC: orocos-dev [..] ...
> Estimated Hours: 0.0
>
>
> Hi,
>
> I'm trying to bootstrap the orocos-toolchain using the "easy way" of the
> QuickStart page (http://www.orocos.org/wiki/orocos/toolchain/quick-start), but
> this results in the following error:
>
> sh bootstrap.sh
> --2011-03-11 11:07:03-- http://doudou.github.com/autoproj/autoproj_bootstrap
> Resolving doudou.github.com (doudou.github.com)... 207.97.227.245
> Connecting to doudou.github.com (doudou.github.com)|207.97.227.245|:80...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 52153 (51K) [application/octet-stream]
> Saving to: `autoproj_bootstrap'
>
> 100%[===================================================================================>]
> 52,153 122K/s in 0.4s
>
> 2011-03-11 11:07:04 (122 KB/s) - `autoproj_bootstrap' saved [52153/52153]
>
> The current directory is not empty, continue bootstrapping anyway ? [yes] yes
> autodetecting the operating system
> autoproj_bootstrap:678:in `osdeps_mode_option_unsupported_os': undefined local
> variable or method `short_doc' for Autoproj::OSDependencies:Class (NameError)
> from autoproj_bootstrap:724:in `define_osdeps_mode_option'
> from autoproj_bootstrap:1440
> bootstrap.sh: line 27: /Users/rubensmits/orocos-toolchain/env.sh: No such file
> or directory
>
> I'm using ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Can you modify the bootstrap.sh script to fetch
http://rock-robotics.org/autoproj_bootstrap instead of github.com and
try again ?

Thanks

Sylvain

[Bug 842] New: bootstrap fails on Mac OS/X

On Thursday 17 March 2011 12:18:38 Sylvain Joyeux wrote:
> On 03/11/2011 11:20 AM, Ruben Smits wrote:
> > http://bugs.orocos.org/show_bug.cgi?id=842
> >
> > Summary: bootstrap fails on Mac OS/X
> > Product: Toolchain
> > Version: unspecified
> >
> > Platform: All
> >
> > OS/Version: Mac OS X
> >
> > Status: NEW
> >
> > Severity: enhancement
> > Priority: P3
> >
> > Component: Autoproj
> >
> > AssignedTo: orocos-dev [..] ...
> > ReportedBy: ruben [dot] smits [..] ...
> >
> > CC: orocos-dev [..] ...
> >
> > Estimated Hours: 0.0
> >
> > Hi,
> >
> > I'm trying to bootstrap the orocos-toolchain using the "easy way" of the
> > QuickStart page
> > (http://www.orocos.org/wiki/orocos/toolchain/quick-start), but
> >
> > this results in the following error:
> > sh bootstrap.sh
> >

[Bug 842] New: bootstrap fails on Mac OS/X

On 03/28/2011 12:53 PM, Peter Soetens wrote:
> Is this a general recommendation to use the rock server instead of github ?
> Should we update all links ?
Yes. I started to do that, but forgot to push.

I just pushed this change along with some cleanup to the master branch
of build.git

Ruben Smits's picture

[Bug 842] bootstrap fails on Mac OS/X

http://bugs.orocos.org/show_bug.cgi?id=842

--- Comment #2 from Ruben Smits <ruben [dot] smits [..] ...> 2011-03-17 09:33:02 CET ---
Created attachment 674
--> http://bugs.orocos.org/attachment.cgi?id=674
patch for bug 842

On boost 1.46 the dependency on boost::system is needed.

Using this patch utilmm can succesfully be compiled on my Mac OSX system with
boost 1.46

-- Ruben

Ruben Smits's picture

[Bug 842] bootstrap fails on Mac OS/X

http://bugs.orocos.org/show_bug.cgi?id=842

--- Comment #1 from Ruben Smits <ruben [dot] smits [..] ...> 2011-03-16 13:10:23 CET ---
I removed the short_doc from the statement in autoproj_bootstrap:678, and the
bootstrap now continues.

But:

* I cannot select macosx as a target for rtt:

autoproj: loading ...
run 'autoproj reconfigure' to change configuration options
and use 'autoproj switch-config' to change the remote source for
autoproj's main build configuration
the target operating system for Orocos/RTT (gnulinux or xenomai) [gnulinux]
macosx
invalid value: invalid value 'macosx', accepted values are 'gnulinux',
'xenomai' (without the quotes)
the target operating system for Orocos/RTT (gnulinux or xenomai) [gnulinux]
which CORBA implementation should the RTT use ?
Answer 'none' to disable CORBA, otherwise pick either tao or omniorb
[omniorb] none

* Utilmm fails with:

autoproj build utilmm
Access method to gitorious (git, http or ssh): git
autodetecting the operating system
Which prepackaged software (a.k.a. 'osdeps') should autoproj install
automatically (ruby, none) ? ruby
autoproj: loading ...
run 'autoproj reconfigure' to change configuration options
and use 'autoproj switch-config' to change the remote source for
autoproj's main build configuration
the target operating system for Orocos/RTT (gnulinux or xenomai): gnulinux
which CORBA implementation should the RTT use ? none

autoproj: importing and loading selected packages
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autodetecting the operating system
autoproj: building and installing packages
INFO: cannot autodetect the number of CPUs on this sytem
building utilmmBuild failed: utilmm: failed in build phase
'make -j1' returned status 2
see /Users/rubensmits/orocos-toolchain/install/log/utilmm-build.log for
details
last 10 lines are:

__static_initialization_and_destruction_0(int, int)in pkgconfig.o
__static_initialization_and_destruction_0(int, int)in process.o
__static_initialization_and_destruction_0(int, int)in socket.o
boost::system::error_code::error_code()in system.o
__static_initialization_and_destruction_0(int, int)in system.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [src/libutilmm.1.1.dylib] Error 1
make[1]: *** [src/CMakeFiles/utilmm.dir/all] Error 2
make: *** [all] Error 2

-- Ruben

[Bug 842] bootstrap fails on Mac OS/X

On Mar 16, 2011, at 08:10 , Ruben Smits wrote:

>
> http://bugs.orocos.org/show_bug.cgi?id=842
>
> --- Comment #1 from Ruben Smits <ruben [dot] smits [..] ...> 2011-03-16 13:10:23 CET ---
> I removed the short_doc from the statement in autoproj_bootstrap:678, and the
> bootstrap now continues.
>
> But:
>
> * I cannot select macosx as a target for rtt:
>
> autoproj: loading ...
> run 'autoproj reconfigure' to change configuration options
> and use 'autoproj switch-config' to change the remote source for
> autoproj's main build configuration
> the target operating system for Orocos/RTT (gnulinux or xenomai) [gnulinux]
> macosx
> invalid value: invalid value 'macosx', accepted values are 'gnulinux',
> 'xenomai' (without the quotes)
> the target operating system for Orocos/RTT (gnulinux or xenomai) [gnulinux]
> which CORBA implementation should the RTT use ?
> Answer 'none' to disable CORBA, otherwise pick either tao or omniorb
> [omniorb] none
>
>
> * Utilmm fails with:
>
> autoproj build utilmm
> Access method to gitorious (git, http or ssh): git
> autodetecting the operating system
> Which prepackaged software (a.k.a. 'osdeps') should autoproj install
> automatically (ruby, none) ? ruby
> autoproj: loading ...
> run 'autoproj reconfigure' to change configuration options
> and use 'autoproj switch-config' to change the remote source for
> autoproj's main build configuration
> the target operating system for Orocos/RTT (gnulinux or xenomai): gnulinux
> which CORBA implementation should the RTT use ? none
>
> autoproj: importing and loading selected packages
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autodetecting the operating system
> autoproj: building and installing packages
> INFO: cannot autodetect the number of CPUs on this sytem
> building utilmmBuild failed: utilmm: failed in build phase
> 'make -j1' returned status 2
> see /Users/rubensmits/orocos-toolchain/install/log/utilmm-build.log for
> details
> last 10 lines are:
>
> __static_initialization_and_destruction_0(int, int)in pkgconfig.o
> __static_initialization_and_destruction_0(int, int)in process.o
> __static_initialization_and_destruction_0(int, int)in socket.o
> boost::system::error_code::error_code()in system.o
> __static_initialization_and_destruction_0(int, int)in system.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [src/libutilmm.1.1.dylib] Error 1
> make[1]: *** [src/CMakeFiles/utilmm.dir/all] Error 2
> make: *** [all] Error 2

Need to modify script to do a "sysctl hw.ncpu" call, which returns something like "hw.ncpu: 16"
S