swarm-support
[Top][All Lists]
Advanced

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

[Swarm-Support] Re: Running troubles with a swarm-objc-based application


From: Thomas Louail
Subject: [Swarm-Support] Re: Running troubles with a swarm-objc-based application on macosX
Date: Thu, 21 Feb 2008 13:22:57 +0100


Le 21 févr. 08 à 01:14, Bill Northcott a écrit :

The -fgnu-runtime flag should have been there already. It should have got there from the line in your makefile that reads:

include $(SWARMHOME)/etc/swarm/Makefile.appl

Hello Bill and swarm-users,

you're right,and yes the -fgnu-runtime is specified in Makefile.appl. And in fact it has always been there, i didn't suppress it or anything.. It's just that I badly explained what i did : When i sayed i added a -fgnu-runtime tag, in fact what i did is that i suppressed a -fnext-runtime flag that i added myself during successive tests to make my code compile, and that i forgot to cut after testing.... sorry for this lack of precision


Is SWARMHOME correctly defined in your build environment?



yes it is, equal to /usr/local/swarm2.2 (and in fact if it wasn't, my code couldn't have compiled ( since it could'nt have known neither the [...]/include files path or the [...]/lib path), no ?) Anyway, now my code compiles (the nm util allow me to check that the symbols which used to be undefined are now well known in my .o files). But right now i'm still stucked with that

Version -1599795008 doesn't match runtime protocol version 2
Abort trap

runtime error....

Don't want to bother you too long with my error stuff, but if any idea...

Following is a print of my makefile, if you want to have a look.

Many thanks,

Thomas L.


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

ifeq ($(SWARMHOME),)
  SWARMHOME=/usr/local/swarm2.2
endif

APPLICATION=Simpop2AFS
APPVERSION=0.9
address@hidden

#OBJECTS= test.o

# Generate the Mach-O files of the Simpop coded classes
OBJECTS=\
        main.o\
        AFSModelSwarm2.o\
        AFSGrille2.o\
        AFSFrontPionnier.o\
        AFSInnovation2.o\
        AFSGouvernance2.o\
        AFSCapitale.o\
        ProbabilityIndexDistribution.o\
        AFSChefLieu.o\
        AFSCentrale4.o\
        AFSCentrale3.o\
        AFSCentrale2.o\
        SP2Ressource.o\
        SP2Service.o\
        SP2Carte.o\
        SP2Grille.o\
        SP2Innovation.o\
        SP2Gouvernance.o\
        dbfopen.o\
        AFSCentrale1.o\
        AFSCycleI.o\
        AFSCycleII.o\
        AFSCycleIII.o\
        AFSCycleIV.o AFSInter.o\
        SP2Object.o SP2Pays.o\
        SP2Bloc.o\
        SP2ModelSwarm.o\
        SP2Control.o\
        SP2Event.o\
        SP2Ville.o\
        SP2Demande.o\
        SP2Fonction.o\
        SP2LienEchange.o\
        SP2PlaceEchange.o\
        SP2Liaison.o\
        sp2base.o\
        Integer.o\
        Double.o\
        Point.o\
        HashSet.o\
        HashMap.o\
        SP2Historique.o\
        SP2Equation.o\
        table_voronoi.o


DATAFILES = model.setup

include $(SWARMHOME)/etc/swarm/Makefile.appl
#test.o : test.m
#pg: pour les teste d'optimisation  O2
#OBJC+=-pg
#CC+=-pg

OBJCFLAGS=-ObjC -v -fgnu-runtime -fnested-functions -nostdlib -pg - ffloat-store \
-g -O0 -Wall -fno-inline \
-Wno-import -Werror $(EXTRAOBJCFLAGS) \
 $(ADDSWARMLIBS)
        

ProbabilityIndexDistribution.o: base/misc/ ProbabilityIndexDistribution.h base/misc/ProbabilityIndexDistribution.m $(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/misc/ProbabilityIndexDistribution.m

HashSet.o: base/misc/HashSet.h base/misc/HashSet.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/misc/HashSet.m

HashMap.o: base/misc/HashMap.h base/misc/HashMap.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/misc/HashMap.m

SP2Equation.o: base/misc/SP2Equation.h base/misc/SP2Equation.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/misc/SP2Equation.m

SP2Object.o: base/SP2Object.h base/SP2Object.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/SP2Object.m

SP2Pays.o: base/Politique/SP2Pays.h base/Politique/SP2Pays.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Politique/SP2Pays.m

SP2Bloc.o: base/Politique/SP2Bloc.h base/Politique/SP2Bloc.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Politique/SP2Bloc.m

SP2Ville.o: base/SP2Ville.h base/SP2Ville.m base/SP2ModelSwarm.h
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/SP2Ville.m
SP2ModelSwarm.o: base/SP2ModelSwarm.h base/SP2ModelSwarm.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/SP2ModelSwarm.m

SP2Demande.o: base/Economie/SP2Demande.h base/Economie/SP2Demande.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Economie/SP2Demande.m
SP2Fonction.o: base/Economie/SP2Fonction.h base/Economie/SP2Fonction.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Economie/SP2Fonction.m SP2LienEchange.o: base/Economie/SP2LienEchange.h base/Economie/ SP2LienEchange.m $(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Economie/SP2LienEchange.m SP2PlaceEchange.o: base/Economie/SP2PlaceEchange.h base/Economie/ SP2PlaceEchange.m $(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Economie/SP2PlaceEchange.m SP2Ressource.o: base/Economie/SP2Ressource.h base/Economie/ SP2Ressource.m $(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Economie/SP2Ressource.m
SP2Service.o: base/Economie/SP2Service.h base/Economie/SP2Service.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Economie/SP2Service.m
SP2Carte.o: base/Espace/SP2Carte.h base/Espace/SP2Carte.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Espace/SP2Carte.m
SP2Grille.o: base/Espace/SP2Grille.h base/Espace/SP2Grille.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Espace/SP2Grille.m
SP2Liaison.o: base/Espace/SP2Liaison.h base/Espace/SP2Liaison.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Espace/SP2Liaison.m SP2Gouvernance.o: base/Politique/SP2Gouvernance.h base/Politique/ SP2Gouvernance.m $(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Politique/SP2Gouvernance.m SP2Innovation.o: base/Politique/SP2Innovation.h base/Politique/ SP2Innovation.m $(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/Politique/SP2Innovation.m

sp2base.o: base/sp2base.h base/sp2base.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/sp2base.m

SP2Control.o: base/SP2Control.h base/SP2Control.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/SP2Control.m

SP2Event.o: base/SP2Event.h base/SP2Event.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/SP2Event.m

SP2Historique.o: base/SP2Historique.h base/SP2Historique.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/SP2Historique.m

Integer.o: base/misc/Integer.h base/misc/Integer.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/misc/Integer.m

Point.o: base/misc/Point.h base/misc/Point.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/misc/Point.m

Double.o: base/misc/Double.h base/misc/Double.m
$(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS) $(EXTRACPPFLAGS) $ (SWARMINCLUDES) base/misc/Double.m

AFSModelSwarm2.o: AFSModelSwarm2.m AFSModelSwarm2.h
AFSGrille2.o: AFSGrille2.m AFSGrille2.h
AFSFrontPionnier.o: AFSFrontPionnier.m AFSFrontPionnier.h
AFSInnovation2.o: AFSInnovation2.m AFSInnovation2.h
AFSGouvernance2.o: AFSGouvernance2.m AFSGouvernance2.h
AFSCapitale.o: AFSCapitale.m AFSCapitale.h
AFSChefLieu.o: AFSChefLieu.m AFSChefLieu.h
AFSCentrale4.o: AFSCentrale4.m AFSCentrale4.h
AFSCentrale3.o: AFSCentrale3.m AFSCentrale3.h
AFSCentrale2.o: AFSCentrale2.m AFSCentrale2.h
AFSCentrale1.o: AFSCentrale1.m AFSCentrale1.h
AFSCycleI.o: AFSCycleI.m AFSCycleI.h
AFSCycleII.o: AFSCycleII.m AFSCycleII.h
AFSCycleIII.o: AFSCycleIII.m AFSCycleIII.h
AFSCycleIV.o: AFSCycleIV.m AFSCycleIV.h
AFSInter.o: AFSInter.m AFSInter.h
table_voronoi.o: table_voronoi.m table_voronoi.h
main.o: main.m

info:
        nm -o $(OBJECTS)








reply via email to

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