New utilrb compilation issue on Ubuntu 12.10

Building the toolchain-2.5 branch on Ubuntu 12.10 gives a compiler error:

g++ --version
g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2

orocos-toolchain/utilrb$ rake default
INFO: cannot load the Hoe gem. Distribution is disabled
INFO: error message is: cannot load such file -- hoe
creating Makefile
linking shared-object utilrb_ext.so
g++: error: unrecognized command line option ‘-module’
make: *** [utilrb_ext.so] Error 1
rake aborted!
cannot build the C extension
/home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:32:in
`block (2 levels) in <top (required)>'
/home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
`chdir'
/home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
`block in <top (required)>'
Tasks: TOP => default => setup
(See full trace by running task with --trace)

Ironically, I can't find any documentation on the -module option, so I
don't understand how this could have worked in the past.

Removing
$LDFLAGS += " -module"

from ext/extconf.rb

fixes the issue, but I don't know if this has effects down the path.

Peter

New utilrb compilation issue on Ubuntu 12.10

On 15.11.2012 14:44, Peter Soetens wrote:
> Building the toolchain-2.5 branch on Ubuntu 12.10 gives a compiler error:
>
> g++ --version
> g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
>
> orocos-toolchain/utilrb$ rake default
> INFO: cannot load the Hoe gem. Distribution is disabled
> INFO: error message is: cannot load such file -- hoe
> creating Makefile
> linking shared-object utilrb_ext.so
> g++: error: unrecognized command line option ‘-module’
> make: *** [utilrb_ext.so] Error 1
> rake aborted!
> cannot build the C extension
> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:32:in
> `block (2 levels) in<top (required)>'
> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
> `chdir'
> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
> `block in<top (required)>'
> Tasks: TOP => default => setup
> (See full trace by running task with --trace)
>
> Ironically, I can't find any documentation on the -module option, so I
> don't understand how this could have worked in the past.
>
> Removing
> $LDFLAGS += " -module"
>
> from ext/extconf.rb
>
> fixes the issue, but I don't know if this has effects down the path.
>
> Peter
Hello,

I Removed this a few months ago from the rock master version without
having any Problems.
Had the same problems that i cannot find any doc about this -module
option, but everything seems work fine.

Greetings,
Matthias

New utilrb compilation issue on Ubuntu 12.10

On 11/15/2012 02:44 PM, Peter Soetens wrote:
> Building the toolchain-2.5 branch on Ubuntu 12.10 gives a compiler error:
>
> g++ --version
> g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
>
> orocos-toolchain/utilrb$ rake default
> INFO: cannot load the Hoe gem. Distribution is disabled
> INFO: error message is: cannot load such file -- hoe
> creating Makefile
> linking shared-object utilrb_ext.so
> g++: error: unrecognized command line option ‘-module’
> make: *** [utilrb_ext.so] Error 1
> rake aborted!
> cannot build the C extension
> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:32:in
> `block (2 levels) in <top (required)>'
> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
> `chdir'
> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
> `block in <top (required)>'
> Tasks: TOP => default => setup
> (See full trace by running task with --trace)
>
> Ironically, I can't find any documentation on the -module option, so I
> don't understand how this could have worked in the past.
Is fixed on master

New utilrb compilation issue on Ubuntu 12.10

On Thu, Nov 15, 2012 at 3:02 PM, Sylvain Joyeux <sylvain [dot] joyeux [..] ...> wrote:
> On 11/15/2012 02:44 PM, Peter Soetens wrote:
>>
>> Building the toolchain-2.5 branch on Ubuntu 12.10 gives a compiler error:
>>
>> g++ --version
>> g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
>>
>> orocos-toolchain/utilrb$ rake default
>> INFO: cannot load the Hoe gem. Distribution is disabled
>> INFO: error message is: cannot load such file -- hoe
>> creating Makefile
>> linking shared-object utilrb_ext.so
>> g++: error: unrecognized command line option ‘-module’
>> make: *** [utilrb_ext.so] Error 1
>> rake aborted!
>> cannot build the C extension
>>
>> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:32:in
>> `block (2 levels) in <top (required)>'
>>
>> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
>> `chdir'
>>
>> /home/virtual/hudson/workspace/bootstrap-toolchain/CORBA_IMPL/TAO/TARGET/xenomai/arch/amd64/branch/toolchain-2.5/orocos-toolchain/utilrb/Rakefile:30:in
>> `block in <top (required)>'
>> Tasks: TOP => default => setup
>> (See full trace by running task with --trace)
>>
>> Ironically, I can't find any documentation on the -module option, so I
>> don't understand how this could have worked in the past.
>
> Is fixed on master

That would be d7ee8dc44ab15a7e02fa5fc34502a118da73da9e

Are you suggesting that I merge
https://gitorious.org/orocos-toolchain/rock-utilrb/graph/master to
toolchain-2.5 or cherry-pick ?

Peter

New utilrb compilation issue on Ubuntu 12.10

On 11/15/2012 04:15 PM, Peter Soetens wrote:
>
> That would be d7ee8dc44ab15a7e02fa5fc34502a118da73da9e
>
> Are you suggesting that I merge
> https://gitorious.org/orocos-toolchain/rock-utilrb/graph/master to
> toolchain-2.5 or cherry-pick ?
I cherry-picked it on the toolchain-2.5 branch. Sorry for the delay, did
not have much time this afternoon.

However, I don't really know which branches / packages should be /
should not be updated from there ... I leave that to you.

Sylvain