<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hello Again,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Current rosdep configurations maps `binutils` to `binutils-dev` in Ubuntu [1]. `ar` is in `binutils` Ubuntu package which is the parent dependency of `binutils-dev`. Therefore, installing `binutils-dev` should trigger installation of `binutils` which ultimately should provide `ar`. Surprisingly neither of these happened on the build server. Here is the log file of a recent pre-release build: <a href="http://jenkins.ros.org/job/prerelease-hydro-ardrone_autonomy/ARCH_PARAM=amd64,UBUNTU_PARAM=precise,label=prerelease/3/console">http://jenkins.ros.org/job/prerelease-hydro-ardrone_autonomy/ARCH_PARAM=amd64,UBUNTU_PARAM=precise,label=prerelease/3/console</a><br>

<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">As you can see, build dependencies are considered by the build script: <br><pre class="">Install build dependencies of repo list: binutils, daemontools, sdl, gtk2, libxml2, libudev-dev, libiw-dev, roscpp, image_transport, sensor_msgs, std_srvs, tf, camera_info_manager, message_generation, catkin</pre>

</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">However, `ar` is still not found: <br><pre class="">/usr/lib/ccache/ar: Command not found</pre>The executed `apt-get` command shows that `binutils` is not being installed with `binutils-dev` which (I think) implies that `ar` should already be present on the system. <br>

<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Is this a PATH related issue?<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">- Mani<br>

</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br>[1] <a href="https://github.com/ros/rosdistro/blob/75c8035911abc899f8ea16df7c2e6d91e9f56c7c/rosdep/base.yaml#L232">https://github.com/ros/rosdistro/blob/75c8035911abc899f8ea16df7c2e6d91e9f56c7c/rosdep/base.yaml#L232</a><br>

</div></div><div class="gmail_extra"><br clear="all"><div>Mani Monajjemi</div>
<br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 7:16 PM, Mani Monajjemi <span dir="ltr"><<a href="mailto:mani.monajjemi@gmail.com" target="_blank">mani.monajjemi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi Tully,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Thank you very much for your reply and your suggestions. <br>


<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I will add the binutils dependency first. Then, I will look into how to rewrite the build system in CMake. I agree about the shortcomings of the current method. The decision about not installing SDK related headers and libraries has been made mainly due to complexity of directly using the framework provided by SDK. I will look into this issue as well.<br>


<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">- Mani<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">

<br><br></div></font></span></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888">
<br clear="all"><div>Mani Monajjemi</div></font></span><div><div class="h5">
<br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 6:30 PM, Tully Foote <span dir="ltr"><<a href="mailto:tfoote@osrfoundation.org" target="_blank">tfoote@osrfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">Hi Mani, <div><br></div><div>The problem is that ar the executable is not installed. The immediate solution is to add add a build dependency on binutils. </div><div><br></div><div>However you appear to be calling autotools from insde cmake. That's going to be fragile and is not recommended as it's not going to behave well in both the devel and install workspaces without quite a few hacks. (Such as forcing a rebuild every build) It's probably better to package the different package separately or quickly rewrite the build for the package in cmake.  Note your current cmake does not install any of the SDK so it won't work when someone tries to use your installed packages if it needs either a library or header from the sdk. </div>




<div><br></div><div>Tully</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Feb 19, 2014 at 6:15 PM, Mani Monajjemi <span dir="ltr"><<a href="mailto:mani.monajjemi@gmail.com" target="_blank">mani.monajjemi@gmail.com</a>></span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">


Hello,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">

This is the first time I am trying to release a package through ROS infrastructure. The local Debian build succeeds, but  the online build keeps failing when trying to `ar` a group of object files for creating a static library. The error message is:<br>






<pre>make[10]: /usr/lib/ccache/ar: Command not found</pre>For example here: <a href="http://jenkins.ros.org/job/ros-hydro-ardrone-autonomy_binarydeb_precise_amd64/lastFailedBuild/console" target="_blank">http://jenkins.ros.org/job/ros-hydro-ardrone-autonomy_binarydeb_precise_amd64/lastFailedBuild/console</a><br>






<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Looking into the [full] console output, I can see that the PATH is being set as "/usr/lib/ccache:/usr/sbin:/usr/bin:/sbin:/bin" before running `dpkg-buildpackage`. Does the error message imply that `ar` is not installed at all on the build server (Usually `ar` is in /usr/bin which is in the PATH)?<br>






<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Best,<br>Mani<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div></div>
<br></div></div>_______________________________________________<br>
ros-release mailing list<br>
<a href="mailto:ros-release@code.ros.org" target="_blank">ros-release@code.ros.org</a><br>
<a href="http://lists.ros.org/mailman/listinfo/ros-release" target="_blank">http://lists.ros.org/mailman/listinfo/ros-release</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>