swarm-support
[Top][All Lists]
Advanced

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

Re: [Swarm-Support] Swarm on Leopard


From: Gary Polhill
Subject: Re: [Swarm-Support] Swarm on Leopard
Date: Wed, 09 Apr 2008 21:31:39 +0100

Marcus,

The start of the compilation of src/defobj is given below. I see from the 
Makefile.common that the environment variable $top_srcdir is put into the -B 
argument by default. So, I didn't edit the Makefile.common, but exported 
top_srcdir to the source code directory. The -B flag with $top_srcdir/tools is 
put into each compilation command, but after compilation no such file or 
directory exists (though $top_srcdir does). The recompiled model with the -B 
flag still produces the same error message. If I grep for GNUOBJC in the output 
of otool -l fearlus-1.1.4 (my model) I get nothing. (I see some lines 
containing __OBJC, which I take it is wrong...) Is there an equivalent of 
LD_LIBRARY_PATH for a Mac, I notice from the output of otool, that it is 
picking up the original tcl/tk in /usr rather than the one I compiled specially 
in /usr/local -- perhaps this means it is picking up the wrong libobjc (I don't 
see a libobjc of any kind in the output, of otool, however)?

Load command 17
          cmd LC_LOAD_DYLIB
      cmdsize 84
         name /System/Library/Frameworks/Tcl.framework/Versions/8.4/Tcl (offset 
24)
   time stamp 2 Thu Jan  1 01:00:02 1970
      current version 8.4.0
compatibility version 8.4.0

Should I have configured swarm with --with-x, by the way?

Sorry, there's quite a few questions wrapped up here...

Gary

$ cd src/defobj
$ make
OBJC="gcc" OBJCFLAGS='-DHAVE_CONFIG_H -I../../libobjc 
-I../../../../src/swarm-20080409/libobjc -I../.. -I.. 
-I../../../../src/swarm-20080409/src/defobj/.. 
-I../../../../src/swarm-20080409/src/defobj/../collections 
-I../../../../src/swarm-20080409/src/defobj/../misc   -I../../avcall  
-D_GNU_SOURCE -DBUILDING_SWARM  -B ../../../../src/swarm-20080409/tools 
-fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol 
-Wno-long-long -Wno-unknown-pragmas -Wno-unknown-pragmas' OBJECTS="Archiver.lo 
LispArchiver.lo HDF5Archiver.lo Arguments.lo Create.lo Customize.lo DefClass.lo 
DefObject.lo HDF5Object.lo Program.lo Symbol.lo Zone.lo FCall.lo FArguments.lo 
defobj.lo internal.lo java.lo directory.lo JavaProxy.lo JavaClassProxy.lo 
JavaCollection.lo JavaCollectionIndex.lo COMProxy.lo fcall_objc.lo 
fcall_java.lo COM.lo modulemap.lo" SED="/usr/local/bin/sed" sh 
../../../../src/swarm-20080409/src/defobj/make-h2x defobj.xm 
../../../../src/swarm-20080409/src/defobj
making defobj.xm defobj.xt defobj.xc
mv defobj.xt types.h
mv defobj.xc classes.h
make  all-am
sed -n '1s/.*/#define SWARM_VERSION "&"/p' < 
../../../../src/swarm-20080409/VERSION > version.h
sed -n '2s/^\([0-9][0-9]*\)\..*/#define SWARM_MAJOR \1/p' < 
../../../../src/swarm-20080409/VERSION >> version.h
sed -n '2s/^[0-9][0-9]*\.\([0-9][0-9]*\)\..*/#define SWARM_MINOR \1/p' < 
../../../../src/swarm-20080409/VERSION >> version.h
sed -n '2s/^[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/#define SWARM_SUBMINOR 
\1/p' < ../../../../src/swarm-20080409/VERSION >> version.h
/bin/sh ../../libtool   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I../../../../src/swarm-20080409/src/defobj -I../.. -I../../libobjc 
-I../../../../src/swarm-20080409/libobjc -I../.. -I.. 
-I../../../../src/swarm-20080409/src/defobj/.. 
-I../../../../src/swarm-20080409/src/defobj/../collections 
-I../../../../src/swarm-20080409/src/defobj/../misc   -I../../avcall   
-D_GNU_SOURCE -DBUILDING_SWARM   -B ../../../../src/swarm-20080409/tools 
-fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol 
-Wno-long-long -Wno-unknown-pragmas -Wno-unknown-pragmas -MT Archiver.lo -MD 
-MP -MF .deps/Archiver.Tpo -c -o Archiver.lo 
../../../../src/swarm-20080409/src/defobj/Archiver.m
libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
-I../../../../src/swarm-20080409/src/defobj -I../.. -I../../libobjc 
-I../../../../src/swarm-20080409/libobjc -I../.. -I.. 
-I../../../../src/swarm-20080409/src/defobj/.. 
-I../../../../src/swarm-20080409/src/defobj/../collections 
-I../../../../src/swarm-20080409/src/defobj/../misc -I../../avcall 
-D_GNU_SOURCE -DBUILDING_SWARM -B ../../../../src/swarm-20080409/tools 
-fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol 
-Wno-long-long -Wno-unknown-pragmas -Wno-unknown-pragmas -MT Archiver.lo -MD 
-MP -MF .deps/Archiver.Tpo -c 
../../../../src/swarm-20080409/src/defobj/Archiver.m  -fno-common -DPIC -o 
.libs/Archiver.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
-I../../../../src/swarm-20080409/src/defobj -I../.. -I../../libobjc 
-I../../../../src/swarm-20080409/libobjc -I../.. -I.. 
-I../../../../src/swarm-20080409/src/defobj/.. 
-I../../../../src/swarm-20080409/src/defobj/../collections 
-I../../../../src/swarm-20080409/src/defobj/../misc -I../../avcall 
-D_GNU_SOURCE -DBUILDING_SWARM -B ../../../../src/swarm-20080409/tools 
-fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol 
-Wno-long-long -Wno-unknown-pragmas -Wno-unknown-pragmas -MT Archiver.lo -MD 
-MP -MF .deps/Archiver.Tpo -c 
../../../../src/swarm-20080409/src/defobj/Archiver.m -o Archiver.o >/dev/null 
2>&1
mv -f .deps/Archiver.Tpo .deps/Archiver.Plo
/bin/sh ../../libtool   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I../../../../src/swarm-20080409/src/defobj -I../.. -I../../libobjc 
-I../../../../src/swarm-20080409/libobjc -I../.. -I.. 
-I../../../../src/swarm-20080409/src/defobj/.. 
-I../../../../src/swarm-20080409/src/defobj/../collections 
-I../../../../src/swarm-20080409/src/defobj/../misc   -I../../avcall   
-D_GNU_SOURCE -DBUILDING_SWARM   -B ../../../../src/swarm-20080409/tools 
-fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol 
-Wno-long-long -Wno-unknown-pragmas -Wno-unknown-pragmas -MT LispArchiver.lo 
-MD -MP -MF .deps/LispArchiver.Tpo -c -o LispArchiver.lo 
../../../../src/swarm-20080409/src/defobj/LispArchiver.m
libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
-I../../../../src/swarm-20080409/src/defobj -I../.. -I../../libobjc 
-I../../../../src/swarm-20080409/libobjc -I../.. -I.. 
-I../../../../src/swarm-20080409/src/defobj/.. 
-I../../../../src/swarm-20080409/src/defobj/../collections 
-I../../../../src/swarm-20080409/src/defobj/../misc -I../../avcall 
-D_GNU_SOURCE -DBUILDING_SWARM -B ../../../../src/swarm-20080409/tools 
-fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol 
-Wno-long-long -Wno-unknown-pragmas -Wno-unknown-pragmas -MT LispArchiver.lo 
-MD -MP -MF .deps/LispArchiver.Tpo -c 
../../../../src/swarm-20080409/src/defobj/LispArchiver.m  -fno-common -DPIC -o 
.libs/LispArchiver.o
../../../../src/swarm-20080409/src/defobj/LispArchiver.m: In function 
‘-[LispArchiver_c _lispOut_:]’:
../../../../src/swarm-20080409/src/defobj/LispArchiver.m:350: warning: type 'id 
<Index>' does not conform to the 'MapIndex' protocol

... etc.

>>> "Marcus G. Daniels" <address@hidden> 04/09/08 6:15 PM >>>
Gary Polhill wrote:
> Thanks Marcus, but we're still not there... I now get (when running my model)
>
> "Version -1607261952 doesn't match runtime protocol version 2"
>   
Could you show, say, the log of defobj building?   e.g. do a "make 
clean" in src/defobj and then "make" (cut and paste some of that).  I 
just want to make sure the assembler script really is in there. 

Also, you'll need to tweak OBJCFLAGS in the installed Swarm location 
(etc/swarm/Makefile.common) to look like this:

-B $(swarm_srcdir)/tools

where swarm_srcdir can be replaced with where your Swarm _source code_ is.

I think Bill probably has a fix for that, but for this from-source build 
you'll need to check that.  If it isn't set then where your model is 
compiled it won't have GNUOBJC sections.  You can check your model 
executable with "otool -l yourModel".


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


-- 
Please note that the views expressed in this e-mail are those of the
sender and do not necessarily represent the views of the Macaulay
Institute. 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 e-mail, and
we would ask you to contact the sender immediately and delete the email
from your system. Thank you.
Macaulay Institute and Associated Companies, Macaulay Drive,
Craigiebuckler, Aberdeen, AB15 8QH.




reply via email to

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