[Gmsh] remark on compiling gmsh

Eric Bechet eric.bechet at univ-metz.fr
Mon Nov 12 10:16:09 CET 2007


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.


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 »