Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369404 - PTP "sh BUILD" fails on Mac OS X Lion
Summary: PTP "sh BUILD" fails on Mac OS X Lion
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Core (show other bugs)
Version: 5.0.4   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 5.0.5   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 10:31 EST by Jeffrey Overbey CLA
Modified: 2013-05-30 08:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Overbey CLA 2012-01-23 10:31:22 EST
(This originated from Bug 368747.)

The PTP proxy does not build on Mac OS X Lion from inside a git checkout of the master branch.  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 reported on Ubuntu in Bug 368747.

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 1 Greg Watson CLA 2012-01-24 13:29:10 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.