[Gmsh] remark on compiling gmsh

David Colignon David.Colignon at ulg.ac.be
Mon Nov 12 11:57:33 CET 2007


Hi Eric,

the solution is:

  make -j 8 compile; make link

Cheers,

Dave


-- 
David Colignon, Ph.D.
ACE - Applied & Computational Electromagnetics
Institut Montefiore B28
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
http://elap.montefiore.ulg.ac.be


Eric Bechet wrote:
> Hello
> 
> I have no idea if this has been reported previously...
> I found a very minor quirk in the compilations process (version 2.0.8)
> 
> When compiling on multiprocessor architectures with
> "make -j n" , n>1, it fails.
> 
> There must be something wrong with the dependencies in the generated 
> makefiles (see messages at the end of this email)
> 
> Needless to say, compiling sequentiallly works fine.
> 
> Eric
> 
> bechet at saroumane:gmsh-2.0.8$ make -j 2
> g++ -g -O2 -o bin/gmsh -Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshMesh -lGmshGeo -lGmshPlugin -lGmshPost -lGmshCommon -lGmshDataStr -lGmshNumeric -lGmshParallel -lfltk_images -lfltk_gl -lfltk -ljpeg -lpng -lGmshTriangle -lGmshANN -lGmshNetgen -lGmshTetgen -lGmshMathEval -lgsl -lgslcblas -lz -lm
> make[1]: entrant dans le répertoire « /home/bechet/Desktop/gmsh-2.0.8 »
> rm -f Common/GmshVersion.h
> echo "#define GMSH_MAJOR_VERSION 2" >  Common/GmshVersion.h
> echo "#define GMSH_MINOR_VERSION 0" >> Common/GmshVersion.h
> echo "#define GMSH_PATCH_VERSION 8" >> Common/GmshVersion.h
> /usr/bin/ld: ne peut trouver -lGmshFltk
> collect2: echo "#define GMSH_EXTRA_VERSION \"\"" >> Common/GmshVersion.h
> ld a retourné 1 code d'état d'exécution
> make: *** [link] Erreur 1
> make: *** Attente des tâches non terminées....
> echo "#define GMSH_VERSION  \"2.0.8\"" >> Common/GmshVersion.h
> echo "#define GMSH_DATE     \"`date`\""     >> Common/GmshVersion.h
> echo "#define GMSH_HOST     \"`hostname`\"" >> Common/GmshVersion.h
> echo "#define GMSH_PACKAGER \"`whoami`\""   >> Common/GmshVersion.h
> echo "#define GMSH_OS       \"Linux\""   >> Common/GmshVersion.h
> echo "#define GMSH_SHORT_LICENSE \""GNU General Public License"\"" >> Common/GmshVersion.h
> make[1]: quittant le répertoire « /home/bechet/Desktop/gmsh-2.0.8 »
> 
> 
> 
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh