Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368747 - Building the proxy (PTP Server compiling problems) on Ubuntu is listing an error regarding SLURM (not installed) on PTP 5.0.4 but not with PTP 5.0.2
Summary: Building the proxy (PTP Server compiling problems) on Ubuntu is listing an e...
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Core (show other bugs)
Version: 5.0.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 5.0.5   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 12:44 EST by Denis Davydov CLA
Modified: 2012-01-25 09:29 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Davydov CLA 2012-01-16 12:44:42 EST
Building the proxy (PTP Server compiling problems) on Ubuntu  is listing an error regarding SLURM (not installed) on PTP 5.0.4 but not with PTP 5.0.2.
Comment 1 Jeffrey Overbey CLA 2012-01-17 11:13:38 EST
The PTP proxy also does not build on Mac OS X Lion, although there is one additional problem which must be fixed before the SLURM error appears.

On Lion, running "sh BUILD" on org.eclipse.ptp.macosx.x86 initially fails with the output shown below.

In the case of the first error ("configure: line 2364: 15: command not found" on org.eclipse.ptp.proxy), the problematic line is
    if  `expr "$VERSION" : "_@[^@]*@"` -gt 0 ; then
which can be fixed by adding brackets
    if [ `expr "$VERSION" : "_@[^@]*@"` -gt 0 ]; then

The subsequent "15: command not found" errors can be fixed similarly.

After all of those have been fixed, the build fails with 'configure: error: The top installation directory of SLURM rms must be specified via "--with-slurm=DIR".' which makes me think this is the same problem as Denis is reporting on Ubuntu.

Earlier in the output, SDM has also failed to compile ("configure: error: utils directory not found") although the build script continues past this.

====================
$ sh BUILD
Building core/org.eclipse.ptp.utils...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin11.2.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for asprintf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make[1]: Nothing to be done for `install-exec-am'.
make[1]: Nothing to be done for `install-data-am'.


Building core/org.eclipse.ptp.proxy...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin11.2.0
configure: line 2364: 15: command not found
configure: error: utils directory not found


Building debug/org.eclipse.ptp.debug.sdm...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin11.2.0
configure: error: utils directory not found


Building rms/org.eclipse.ptp.rm.ibm.ll.proxy...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin11.2.0
configure: line 2252: 15: command not found
configure: error: utils directory not found


Building rms/org.eclipse.ptp.rm.ibm.pe.proxy...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin11.2.0
configure: line 2255: 15: command not found
configure: error: utils directory not found


Building rms/org.eclipse.ptp.rm.slurm.proxy...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... i386-apple-darwin11.2.0
configure: line 2275: 15: command not found
configure: error: utils directory not found
Comment 2 Beth Tibbitts CLA 2012-01-17 11:23:18 EST
Well Greg just got Lion on his machine so i think the ease of fixing it just increased. :)
Comment 3 Greg Watson CLA 2012-01-23 09:38:38 EST
Which version are you using? I just built using 5.0.4.201111121445 on Lion and it worked fine (apart from the missing "--with-slurm=DIR"). The equivalent line in configure is 2228 in my version, but this line is:

	if test `expr "$VERSION" : "_@^@*@"` -gt 0; then
	
It seems like you're using an old version somehow. Are you building from the repo or using the proxy zip file?
Comment 4 Jeffrey Overbey CLA 2012-01-23 09:47:01 EST
> It seems like you're using an old version somehow. Are you building from the
> repo or using the proxy zip file?

I'm building from inside my git repo with the master branch checked out.  I just realized this bug was for 5.0.4... maybe I should have filed separately... sorry...
Comment 5 Greg Watson CLA 2012-01-23 09:56:18 EST
Yes, please open a separate bug.
Comment 6 Jeffrey Overbey CLA 2012-01-23 10:31:42 EST
Done -- see Bug 369404
Comment 7 Greg Watson CLA 2012-01-24 13:26:37 EST
Fixed in master and ptp_5_0. Please test using the latest 5.0.5 build from http://wiki.eclipse.org/PTP/builds. Note that this is built using automake 1.11.2 and autoconf 2.68. If you have older versions then you may get a warning when running the BUILD script.
Comment 8 Denis Davydov CLA 2012-01-25 09:29:50 EST
linux.x86_64  works with no problems for me now.