swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swarm-Support] Compiling Swarm on Mac OSX 10.6.7


From: Gary Polhill
Subject: [Swarm-Support] Compiling Swarm on Mac OSX 10.6.7
Date: Fri, 27 May 2011 16:39:19 +0000

Hi,

I've been trying to follow what look like some deceptively simple
instructions for compiling and installing Swarm on Mac OSX Snow Leopard at
http://www.swarm.org/index.php/Guides/MacOSX/QuickInstall

To cut a (very) long story short, I got here:

** BUILD FAILED **


The following build commands failed:
Swarm:
        CompileC
build/Swarm.build/Release/Swarm.build/Objects-normal/i386/swarm_rts_routine
s.o
/Users/gp1073/swarm/src/Swarm-7903/Swarm/swarm/macosx/SwarmOSX/../../src/ob
jectbase/swarm_rts_routines.m normal i386 objective-c
com.apple.compilers.gcc.4_2
(1 failure)

By:


* Specifically retrieving revision 7903 from the Swarm subversion
repository (build halted with 139 failures using later 7942 revision
retrieved today)
* Installing versions 2.62 of autoconf, 1.10.1 of automake, and 2.2.6b of
libtool (later versions generated warning messages, and the build halted
with four failures)
* Copying GNU sed 4.2 over /usr/bin/sed to stop make-h2x using it

The problem in swarm_rts_routines.m is that the _C_CONST, _C_IN, _C_INOUT,
_C_OUT, _C_BYCOPY and _C_ONEWAY constants are not defined in function
'skip_type_qualifiers'. These constants are defined in objc/runtime.h
(_C_CONST) and swarm-objc-apple2.h. The latter is included from
swarm-objc-api.h if OBJC_API_VERSION >= 2 and __NEXT_RUNTIME__. Otherwise,
if __NEXT_RUNTIME__, swarm-objc-apple.h is included. This file is just
comments in what I have (does this mean some earlier script didn't do its
job), so I tried copying swarm-objc-apple2.h over it. I then got this:

** BUILD FAILED **


The following build commands failed:
Swarm:
        CompileC
build/Swarm.build/Release/Swarm.build/Objects-normal/i386/DefClass.o
/Users/gp1073/swarm/src/Swarm-7903/Swarm/swarm/macosx/SwarmOSX/../../src/de
fobj/DefClass.m normal i386 objective-c com.apple.compilers.gcc.4_2
        CompileC
build/Swarm.build/Release/Swarm.build/Objects-normal/i386/Schedule.o
/Users/gp1073/swarm/src/Swarm-7903/Swarm/swarm/macosx/SwarmOSX/../../src/ac
tivity/Schedule.m normal i386 objective-c com.apple.compilers.gcc.4_2
(2 failures)

... but I guess we can ignore that since there must be some other problem
causing all this.


I have Xcode version 3.2.5 (1760), if that's of any relevance.

Any hints you have on any way of getting a working version of Swarm on
Snow Leopard much appreciated (e.g. should I just install gcc, etc., and
build a Linux rather than native Apple version?)

Thanks,
Gary

--

Gary Polhill
Human-Natural Systems Research Scientist
The James Hutton Institute
Craigiebuckler
Aberdeen
AB15 8QH

Tel: +44 (0) 1224 395 280 (direct)
Tel: +44 (0) 844 928 5428 (switchboard)
Fax: +44 (0) 844 928 5429

http://www.hutton.ac.uk/

________________________________________________________
This email is from The James Hutton Institute (JHI), however the views
expressed by the sender are not necessarily the views of JHI and its
subsidiaries. This email and any attachments are confidential and are intended
solely for the use of the recipient(s) to whom they are addressed.  If you
are not the intended recipient, you should not read, copy, disclose or rely on
any information contained in this email, and we would ask you to contact the
sender immediately and delete the email from your system.  Although JHI has
taken reasonable precautions to ensure no viruses are present in this email,
neither the Institute nor the sender accepts any responsibility for any
viruses, and it is your responsibility to scan the email and any attachments.

The James Hutton Institute is a Scottish charitable company limited by
guarantee.
Registered in Edinburgh No. SC374831
Registered Office: The James Hutton Institute, Invergowrie Dundee DD2 5DA.
Charity No. SC041796


reply via email to

[Prev in Thread] Current Thread [Next in Thread]