Hi,
The build farm tried to build the toolchain master branches using the
bootstrap script (which worked) and then did a:
orogen "create" "testorogen"
orogen "testorogen.orogen"
mkdir build; cd buid; cmake ..
make
...
Scanning dependencies of target orogen_default_testorogen__Task
[ 95%] Building CXX object
CMakeFiles/orogen_default_testorogen__Task.dir/.orogen/main-orogen_default_testorogen__Task.cpp.o
Linking CXX executable orogen_default_testorogen__Task
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
undefined reference to `shm_unlink'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
make[2]: *** [orogen_default_testorogen__Task] Error 1
If there would be a fix for this already, please let me know such I
don't have to do double work...
Cheers,
Peter
[Rock-dev] Build/Link error for 'default' orogen application on
On 11/28/2012 10:17 PM, Peter Soetens wrote:
> Hi,
>
> The build farm tried to build the toolchain master branches using the
> bootstrap script (which worked) and then did a:
>
> orogen "create" "testorogen"
> orogen "testorogen.orogen"
> mkdir build; cd buid; cmake ..
> make
> ...
> Scanning dependencies of target orogen_default_testorogen__Task
> [ 95%] Building CXX object
> CMakeFiles/orogen_default_testorogen__Task.dir/.orogen/main-orogen_default_testorogen__Task.cpp.o
> Linking CXX executable orogen_default_testorogen__Task
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
> undefined reference to `shm_unlink'
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
> undefined reference to `shm_open'
> collect2: error: ld returned 1 exit status
> make[2]: *** [orogen_default_testorogen__Task] Error 1
>
> If there would be a fix for this already, please let me know such I
> don't have to do double work...
What OS ? This is using gcc 4.7, so I am guessing not ubuntu 12.04 ...
[Rock-dev] Build/Link error for 'default' orogen application on
On 11/28/2012 10:17 PM, Peter Soetens wrote:
> Hi,
>
> The build farm tried to build the toolchain master branches using the
> bootstrap script (which worked) and then did a:
>
> orogen "create" "testorogen"
> orogen "testorogen.orogen"
> mkdir build; cd buid; cmake ..
> make
> ...
> Scanning dependencies of target orogen_default_testorogen__Task
> [ 95%] Building CXX object
> CMakeFiles/orogen_default_testorogen__Task.dir/.orogen/main-orogen_default_testorogen__Task.cpp.o
> Linking CXX executable orogen_default_testorogen__Task
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
> undefined reference to `shm_unlink'
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
> undefined reference to `shm_open'
> collect2: error: ld returned 1 exit status
> make[2]: *** [orogen_default_testorogen__Task] Error 1
>
> If there would be a fix for this already, please let me know such I
> don't have to do double work...
What is libpthread_rt ? Is this on xenomai ?
[Rock-dev] Build/Link error for 'default' orogen application on
On Thu, Nov 29, 2012 at 9:36 AM, Sylvain Joyeux <sylvain [dot] joyeux [..] ...> wrote:
> On 11/28/2012 10:17 PM, Peter Soetens wrote:
>>
>> Hi,
>>
>> The build farm tried to build the toolchain master branches using the
>> bootstrap script (which worked) and then did a:
>>
>> orogen "create" "testorogen"
>> orogen "testorogen.orogen"
>> mkdir build; cd buid; cmake ..
>> make
>> ...
>> Scanning dependencies of target orogen_default_testorogen__Task
>> [ 95%] Building CXX object
>>
>> CMakeFiles/orogen_default_testorogen__Task.dir/.orogen/main-orogen_default_testorogen__Task.cpp.o
>> Linking CXX executable orogen_default_testorogen__Task
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
>> undefined reference to `shm_unlink'
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libpthread_rt.so:
>> undefined reference to `shm_open'
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [orogen_default_testorogen__Task] Error 1
>>
>> If there would be a fix for this already, please let me know such I
>> don't have to do double work...
>
> What is libpthread_rt ? Is this on xenomai ?
It is.. I missed this myself, I was confused by the x86_64-linux-gnu
in the pathname. So we can reduce this to an error in the .pc file of
rtt for Xenomai targets. It's missing -lrt
Peter