yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #14809
Re: [Question #681091]: installation problem
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Tue, 28 May 2019 16:51:23 +0200
-
Cc:
Yade developers <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<CANFfKpEyyGYKZS_46BqszWGAxscM_NsRUqc=Wsa1bJ9x-y+PWQ@mail.gmail.com>
I am suspecting now that _libVersions.cpp can detect some atypical
configurations in the system. So far we had problems with:
1. #include <metis.h> in
https://answers.launchpad.net/yade/+question/680867
2. #include <mpi.h> in
https://answers.launchpad.net/yade/+question/681091
Somehow they passed the cmake detection step, and in _libVersions.cpp there is an #ifdef guard:
1. for #include <metis.h>
#if defined(LINSOLV) || defined(YADE_POTENTIAL_PARTICLES) || defined(YADE_POTENTIAL_BLOCKS) || defined(FLOW_ENGINE)
2. for #include <mpi.h> in
#ifdef YADE_MPI
So cmake defines the YADE_MPI and those that use <metis.h>, but then
those files were not found. With metis it turned out that there were
two packages with similar name in gentoo. I am curious what will be
the explanation here in MPI case on Xenial.
I suppose that we would have to fix this inside cmake. I am not sure how, though.
OTOH I can make _libVersions.cpp to be totally bulletproof by putting this line:
1. for #include <metis.h>
#if defined(METIS_VER_MAJOR) && defined(METIS_VER_MINOR) && defined(METIS_VER_SUBMINOR)
2. for #include <mpi.h> in
#if defined(OMPI_MAJOR_VERSION) && defined(OMPI_MINOR_VERSION) && defined(OMPI_RELEASE_VERSION)
3. similarly for everything else.
but I am afraid that it is only deferring problems to the later stage - yade
will compile, but something won't work.
what do you think?
Janek
Bruno Chareyre said: (by the date of Mon, 27 May 2019 23:59:15 +0200)
> Hi Janek,
> Not sure I understand correctly this problem but, it seems we are not
> switching off features automatically when a package is optional? That was
> usual behavior and it would probably raise less questions.
> Do I miss something?
> Bruno
--
Janek Kozicki http://janek.kozicki.pl/ |
Follow ups
References