Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] PTP synchronized projects and GNU auto tools (configure)

Hi

Unfortunately, autotools commands are not yet supported by synchronized projects.
(They are not redirected to the correct remote site, and thus will always run locally.)

Since autotools is a CDT project, you'll need to ask on that mailing list about support
for command line parameters and scripts. Also, the following wiki might help:

http://wiki.eclipse.org/CDT/Autotools/User_Guide

For newer versions of PTP, no local toolchain is selected by default. Since only one
toolchain is listed for GNU autotools, I suspect that you simply forgot to select it,
since it would have been unnecessary to do so in previous versions. See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=392603

for details.


John

On Mon, Jan 14, 2013 at 10:36 AM, Christoph Pospiech <Christoph.Pospiech@xxxxxxxxxx> wrote:
On Saturday, January 12, 2013 16:56:57 Christoph Pospiech wrote:
> Hi,
>
> I just tried to import https://github.com/chaos/ior.git as a PTP
> synchronized  project. I did a git clone outside of eclipse first and run
> the "bootstrap" script as advised by the README. Then I tried New->C/C++
> synchronized Project and pointed to the local copy as generated by git
> clone.
>
> I chose Empty GNU auto tools project and GNU tool chain both remotely and
> locally. Remotely, it should have been XLC tool chain, but I wanted to
> avoid  the hick-ups with this as discussed earlier in this mailing list.
>
> Apparently, the initial synchronization worked fine, but configure flagged
> the  following error.
>
> sh -c /home/cp/bench/IO_bench/ior/configure
> Cannot run program "sh": Unknown reason
>         ior             -1      Configure Problem
>
> If I look at build configurations, there appears to be only one (I expected
> two, one local, one remote), and it is called "Build_(GNU)_remote". It
> looks like it is trying to execute /home/cp/bench/IO_bench/ior/configure
> remotely, but this PATH only exists locally. The remote PATH should have
> been /work/ki0437/k205001/bench/IO_bench/ior/configure.
>
> That looks like a bug to me.
> Perhaps I didn't choose the best way to import the project ?
> Can anyone please advise ?

Hi,

I decided to work around the problem and wrote my own Makefiles. These now
collaborate nicely with PTP synchronized projects. After all.
* configure on the remote (AIX) host wouldn't work without dirty tricks anyway
* There were only two Makefiles in total - one of them being trivial
* most of the defines in src/config.h were not used in the code

But I intend to give an Eclipse PTP course in about a month, and I know that a
couple of GNU autotool fans are among the audience. Thus, the answer "dump
that autotools stuff, it doesn't work anyway" might work for me in private, but
not in the course.

Therefore I would still be interested in the answer to my original GNU
autotools questions.

Also, when I set up an GNU autotools project, there were reconfigure and
autotools menu entries in the project menu (=right mouse click in the  Project
Explorer). Apparently, they didn't allow for command line parameters to any of
these tools. For instance, in the current project, the README requests any
user to run a script called "bootstrap" which reads like this.
cp@sirius:~/bench/IO_bench/ior$ cat bootstrap
#!/bin/sh

set -x
aclocal -I config || exit 1
#libtoolize --automake --copy --force || exit 1
autoheader || exit 1
automake --add-missing --copy --force-missing --foreign || exit 1
#autoconf --force --warnings=all || exit 1
autoconf --force || exit 1
rm -fr autom4te*.cache
exit 0

As anyone can see, there are quite a few command line parameter to automake
and autoconf. Also it might be nice to amend the menu list for autotools by
some custom script option, which would allow the user to run e.g. this
bootstrap script - on the local or the the remote host, depending on the
active build configuration.
--

Mit freundlichen Grüßen / Kind regards

Dr. Christoph Pospiech
High Performance & Parallel Computing
Phone: +49-351 86269826
Mobile: +49-171-765 5871
E-Mail: christoph.pospiech@xxxxxxxxxx
-------------------------------------------------------------------------------------------------------------------------------------------
IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Martina Koederitz (Vorsitzende), Reinhard Reschke, Dieter
Scholz, Gregor Pillen, Joachim Heel, Christian Noll
Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB
14562 / WEEE-Reg.-Nr. DE 99369940

_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user


Back to the top