swarm-support
[Top][All Lists]
Advanced

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

[Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX Tiger


From: Brandon M. Gabler
Subject: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX Tiger
Date: Wed, 12 Jul 2006 09:48:48 -0700
User-agent: Internet Messaging Program (IMP) 4.0-cvs

Bill and the list,

I decided it may be best to send out the compiler error when I attempt to
compile heatbugs. I changed the swarmhome in the heatbugs makefile to
/usr/local/swarm2.2, and other than that made no other changes.

As for installing swarm, I followed exactly what was on the Swarm wiki for
installing on Intel Mac OS X Tiger. I am hoping that this compiler code will
let somebody figure out the mistake(s) I made in installing swarm. I have a
feeling that something is either problematic with the .profile file (such as
where it is saved) or something else. I thought I took care of it the right
way, with some help from a Unix guy here, but he is unfamiliar with swarm so
there was a gap in my ability to communicate exactly why things were being
done.

Sorry for the long message, but the compiler output for heatbugs on OSX Intel is
as follows:


brandon-gablers-computer:~/swarm/heatbugs StrayHawk$ make
/bin/sh /usr/local/swarm2.2/bin/libtool-swarm --mode link gcc -B ../../tools -g
-O2 -Wno-long-double -L/usr/local/swarm2.2/lib -rpath /usr/local/swarm2.2/lib
-o heatbugs Heatbug.o HeatSpace.o main.o HeatbugModelSwarm.o
HeatbugObserverSwarm.o HeatbugBatchSwarm.o  -lswarm
gcc -B ../../tools -g -O2 -Wno-long-double -o heatbugs Heatbug.o HeatSpace.o
main.o HeatbugModelSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o
-L/usr/local/swarm2.2/lib /usr/local/swarm2.2/lib/libswarm.dylib
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/space
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/analysis
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/simtoolsgui
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/simtools
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/random
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/tkobjc
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/tclobjc
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/objectbase
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/activity
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/defobj
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/collections
-L/Users/billn/Public/Swarm/swarm/macosx/build/src/misc
-L/Users/billn/Public/Swarm/swarm/macosx/build/libobjc
-L/usr/local/hdf5_1.6.1/lib -L/usr/local/png_1.2.5/lib
-L/usr/local/tcl8.4.7/lib -L/usr/X11R6/lib -lBLT24 -ltk8.4 -ltcl8.4 -lXpm -lpng
/usr/local/hdf5_1.6.1/lib/libhdf5.dylib -lpthread -lz -lX11 -lm -ldl
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/space) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/analysis) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/simtoolsgui) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/simtools) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/random) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/tkobjc) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/tclobjc) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/objectbase) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/activity) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/defobj) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/collections) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/misc) does not exist
/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/libobjc) does not exist
/usr/bin/ld: warning /usr/local/swarm2.2/lib/libswarm.dylib cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(file not loaded)
/usr/bin/ld: warning /usr/local/tcl8.4.7/lib/libBLT24.dylib cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(file not loaded)
/usr/bin/ld: warning /usr/local/tcl8.4.7/lib/libtk8.4.dylib cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(file not loaded)
/usr/bin/ld: warning /usr/local/tcl8.4.7/lib/libtcl8.4.dylib cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(file not loaded)
/usr/bin/ld: warning /usr/local/png_1.2.5/lib/libpng.a archive's cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(can't load from it)
/usr/bin/ld: warning /usr/local/hdf5_1.6.1/lib/libhdf5.dylib cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(file not loaded)
/usr/bin/ld: Undefined symbols:
_InvalidArgument
_InvalidCombination
___objc_class_name_SwarmObject
___objc_exec_class
_objc_msg_lookup
_uniformDblRand
_uniformIntRand
_List
___objc_class_name_Diffuse2d
_objc_get_class
_InvalidOperation
__initSwarm_
__obj_globalZone
_lispAppArchiver
_swarmGUIMode
_ActionGroup
_Randomized
_Schedule
_Sequential
___objc_class_name_CustomProbeMap
___objc_class_name_Grid2d
___objc_class_name_Swarm
_objc_msg_lookup_super
_probeLibrary
___objc_class_name_Colormap
___objc_class_name_EZGraph
___objc_class_name_GUISwarm
___objc_class_name_Object2dDisplay
___objc_class_name_Value2dDisplay
___objc_class_name_ZoomRaster
_createArchivedProbeDisplayNamed
_probeDisplayManager
__activity_context_error
__activity_current
collect2: ld returned 1 exit status
make: *** [heatbugs] Error 1
Quoting address@hidden:

Send Support mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.swarm.org/mailman/listinfo/support
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Support digest..."


Today's Topics:

   1. Re: Swarm 2.2 on Intel (and PPC) Mac OSX (Brandon M. Gabler)
   2. Re: Re: Swarm 2.2 on Intel (and PPC) Mac OSX
      (address@hidden)


----------------------------------------------------------------------

Message: 1
Date: Tue, 11 Jul 2006 14:18:25 -0700
From: "Brandon M. Gabler" <address@hidden>
Subject: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"

To Bill: Thanks for the Swarm help!

I now have Swarm nearly functioning on my Mac.

However, when I first compiled my code, here are the errors I received
(multiple
of each type when compiling, but different filenames, such as
ObserverSwarm.o in
place of Main.o below):

/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/collections) does not exist

/usr/bin/ld: main.o bad magic number (not a Mach-O file)

/usr/bin/ld: warning /usr/local/swarm2.2/lib/libswarm.dylib cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(file not loaded)

I'm guessing I have a reference to the wrong directory somewhere in the
architecture, as well as a few other flags that need to be changed to -arch
ppc, but I am not familiar enough with the Mac yet (only have had it a
week and
a half) or unix to mess with this stuff without getting lost along the way.

Does anyone have suggestions for fixing those errors? I'm going to try
to piece
through the -arch i386 errors myself to find those files, but I am
unsure about
the rest, since I thought setting SWARMHOME would resolve the other issues.

Thanks,
Brandon


--
Brandon M. Gabler
Research Associate
Department of Anthropology
1009 E South Campus Drive, Building #30A
University of Arizona
Tucson, AZ 85721
Phone: 520-621-8455
Fax: 520-621-2088


Quoting address@hidden:

Send Support mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.swarm.org/mailman/listinfo/support
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Support digest..."


Today's Topics:

   1. Re: Swarm 2.2 on Intel (and PPC) Mac OSX Tiger (Bill Northcott)
   2. Swarm on MacOS X Intel (Bill Northcott)


----------------------------------------------------------------------

Message: 1
Date: Tue, 11 Jul 2006 15:23:09 +1000
From: Bill Northcott <address@hidden>
Subject: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX
        Tiger
To: "Brandon M. Gabler" <address@hidden>
Cc: Swarm Support <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

The current Swarm binary for MacOS X is PPC code.  I hope to get a
fat Tiger binary built soon.

Due to the amazing magic of Rosetta, it is possible to get ppc Swarm
binaries to work on an Intel Mac!

First install Swarm as detailed in:
http://www.swarm.org/wiki/Swarm_FAQ:Macintosh_installation
http://www.swarm.org/wiki/Swarm:_MacOS_X_binaries

This has got a bit buried with reorganisations of the Swarm web
site.  I will try to improve the linking between these.

Then you need to make two small changes in the file /usr/local/
swarm2.2/etc/swarm/Makefile.common.  On line 27 you will find the
definition of CFLAGS and on line 34 the definition of OBJCFLAGS.
Just add '-arch ppc'   (without the quotes) to both lines.

You can then build and run Objective-C Swarm code as described in
other documentation.  I have not tried Java, but I will be very
surprised if it works.

The extra compiler flag causes the compiler to build ppc code.
Without it, the compiler defaults to i386 code which will fail at
link time because there is no i386 code in the current Swarm
binaries.  However, a ppc binary, once built, runs happily due to the
magic of Rosetta.

Bill Northcott


On 11/07/2006, at 2:25 AM, Brandon M. Gabler wrote:
I am on the Swarm support list, and saw your thread about this
subject from May.
I recently purchased a new macbook pro with the intel chip, and
want to get
Swarm running.

I am new to Mac, new to unix code, and have only used swarm 2.2 in
windows (via
cygwin), and am looking for step by step instruction for getting it
running on
my mac. I have downloaded the packages, installed them, but lack the
directories that supposedly should exist. I'm am confused by this.
Is there any
way you can help out?


------------------------------

Message: 2
Date: Tue, 11 Jul 2006 15:26:37 +1000
From: Bill Northcott <address@hidden>
Subject: [Swarm-Support] Swarm on MacOS X Intel
To: Swarm Support <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

A quick and dirty hack is now available which will allow the current
PPC Swarm binaries to be used on an Intel Mac.

See: http://www.swarm.org/wiki/Swarm_FAQ:Macintosh_installation

Hopefully I can find the time to build a proper universal binary soon.

Enjoy
Bill Northcott


------------------------------

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


End of Support Digest, Vol 25, Issue 6
**************************************





------------------------------

Message: 2
Date: Tue, 11 Jul 2006 20:17:57 -0400
From: address@hidden
Subject: Re: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

On 12/07/2006, at 7:18 AM, Brandon M. Gabler wrote:
However, when I first compiled my code, here are the errors I
received (multiple
of each type when compiling, but different filenames, such as
ObserverSwarm.o in
place of Main.o below):

/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/collections) does
not exist

This is only a warning.  It should not matter.

/usr/bin/ld: main.o bad magic number (not a Mach-O file)

Where did main.o come from?  Can you post the compiler output from
when it was built?

/usr/bin/ld: warning /usr/local/swarm2.2/lib/libswarm.dylib cputype
(18,
architecture ppc) does not match cputype (7) for specified -arch
flag: i386
(file not loaded)

That is to be expected if any of the objects in the link have been
built without '-arch ppc'.  I suspect you have some (static)
libraries from Fink, Darwinports or other sources and these are being
used instead of the ppc versions from the Swarm ftp site.  Check
carefully what is listed on the link line.

I'm guessing I have a reference to the wrong directory somewhere in
the
architecture, as well as a few other flags that need to be changed
to -arch
ppc, but I am not familiar enough with the Mac yet (only have had
it a week and
a half) or unix to mess with this stuff without getting lost along
the way.

Are you using the CFLAGS from the Swarm Makefiles within your
makefile?  Unless you do it won't work.  The whole point of the Swarm
makefiles is to set up the environment for your machine.  Have a look
at the Heatbugs makefile for clues.

Does anyone have suggestions for fixing those errors? I'm going to
try to piece
through the -arch i386 errors myself to find those files, but I am
unsure about
the rest, since I thought setting SWARMHOME would resolve the other
issues.

Make sure you are using the shell initialization script provided in /
usr/local/swarm2.2/etc/swarm.

Bill Northcott




------------------------------

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


End of Support Digest, Vol 25, Issue 7
**************************************





reply via email to

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