swarm-support
[Top][All Lists]
Advanced

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

Re: Problems with Swarm on LinuxPPC


From: SCHREIBER,DARREN MATTHEW
Subject: Re: Problems with Swarm on LinuxPPC
Date: Tue, 23 May 2000 18:31:41 -0700 (PDT)

I managed to get a similar error when I was compiling on my Win98 box at
work that uses Swarm 2.1.1.  I include the compilation report and the
output from nm main.o.

I found that this error was somehow connected to a failure of a previous
version of my model to properly quit.  I tried to force the model to quit,
but eventually had to reboot.  Upon reboot, the compile and run went just
fine.

I don't think an analogous problem could have happened on my Linux box
since I didn't get it to compile at all.  However, the errors look
similar.

Let me know if you have any ideas.  I will reply with the results from nm
main.o on my Linux box when I get home. 

On Tue, 23 May 2000, Marcus G. Daniels wrote:

> >>>>> "DS" == Darren Schreiber <address@hidden> writes:
> 
> DS> /usr/lib/crt1.o(.rodata+0x4): undefined reference to `main'
> DS> collect2: ld returned 1 exit status
> 
> What do you get from:
> 
>    $ nm main.o
> 

address@hidden/MyWork/Voting1.00.2] $ make -k
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include main.m 
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include ObserverSwarm.m 
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include Parameters.m 
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include ModelSwarm.m 
ModelSwarm.m: In function `-[ModelSwarm findTheWinner]':
ModelSwarm.m:251: warning: `agentWithMostVotes' might be used
uninitialized in this function
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include Agent.m 
Agent.m: In function `-[Agent defectTo:]':
Agent.m:198: warning: cannot find method.
Agent.m:198: warning: return type for `getInferiorsList' defaults to id
Agent.m:199: warning: cannot find method.
Agent.m:199: warning: return type for `getInferiorsList' defaults to id
Agent.m:202: warning: cannot find method.
Agent.m:202: warning: return type for `updateLinks' defaults to id
Agent.m:206: warning: cannot find method.
Agent.m:206: warning: return type for `updateLinks' defaults to id
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include Voter.m 
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include Coalition.m 
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=VotingModel   -DDLL  -I/Swarm-2.1.1/include ColorSelector.m 
/bin/sh /Swarm-2.1.1/bin/libtool-swarm --mode link gcc -g -O2
-L/Swarm-2.1.1/lib -rpath /Swarm-2.1.1/lib  -o VotingModel.exe main.o
ObserverSwarm.o Parameters.o ModelSwarm.o Agent.o Voter.o Coalition.o
ColorSelector.o  -lswarmdll -lobjcdll  
gcc -g -O2 -o VotingModel.exe main.o ObserverSwarm.o Parameters.o
ModelSwarm.o Agent.o Voter.o Coalition.o ColorSelector.o
-L/Swarm-2.1.1/lib -lswarmdll -lobjcdll -Wl,--rpath -Wl,/Swarm-2.1.1/lib
-Wl,--rpath -Wl,/Swarm-2.1.1/lib
/Swarm-2.1.1/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../i686-pc-cygwin/bin/ld:
cannot open output file VotingModel.exe: Permission denied
collect2: ld returned 1 exit status
make: *** [VotingModel.exe] Error 1
make: Target `all' not remade because of errors.
address@hidden/MyWork/Voting1.00.2] $ nm main.o
00000000 b .bss
00000000 ? .ctor
00000000 d .data
00000000 ? .stab
00000000 ? .stabstr
00000000 t .text
000001a4 T __GLOBAL_$I$main
000001bb t __OBJC_CLASS_NAME_0
000001c2 t __OBJC_METH_VAR_NAME_0
000001c8 t __OBJC_METH_VAR_NAME_1
000001cd t __OBJC_METH_VAR_NAME_2
000001da t __OBJC_METH_VAR_NAME_3
000001e4 t __OBJC_METH_VAR_NAME_4
000001f1 t __OBJC_METH_VAR_NAME_5
000001fe t __OBJC_METH_VAR_NAME_6
0000020a t __OBJC_METH_VAR_NAME_7
0000020d t __OBJC_METH_VAR_TYPE_0
00000214 t __OBJC_METH_VAR_TYPE_1
0000021b t __OBJC_METH_VAR_TYPE_2
00000068 d __OBJC_MODULES
00000020 d __OBJC_SELECTOR_TABLE
00000000 d __OBJC_SYMBOLS
00000000 t ___gnu_compiled_objc
         U ___main
         U ___objc_class_name_ObserverSwarm
0000007c d ___objc_class_name_ObserverSwarm_ref
         U ___objc_class_name_Parameters
00000078 d ___objc_class_name_Parameters_ref
         U ___objc_exec_class
         U __imp___obj_globalZone
         U __imp__arguments
         U __initSwarm_
         U _createArchivedProbeDisplayNamed
00000034 T _main
         U _objc_get_class
         U _objc_msg_lookup
00000000 t gcc2_compiled.
address@hidden/MyWork/Voting1.00.2] $



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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