libqueso / queso

QUESO is a C++ library for doing uncertainty quantification. QUESO stands for Quantification of Uncertainty for Estimation, Simulation and Optimization.
Other
57 stars 40 forks source link

Example fails with "Tried to build an unknown type" error #530

Closed jjramsey closed 7 years ago

jjramsey commented 7 years ago

After building QUESO against GSL 2.3 and Boost 1.59.0, I tried to run the simpleStatisticalInverseProblem example, which failed with the following error messages:

*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/examples/simpleStatisticalInverseProblem/src/example_main.C, line 36, compiled Jan 24 2017 at 15:49:49 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BaseInputOptionsParser.C, line 32, compiled Jan 24 2017 at 15:45:58 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 41, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 88, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 88, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 88, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 88, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 63, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 108, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 108, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 108, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 118, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 108, compiled Jan 24 2017 at 15:45:59 ***
--------------------------------------------------------------------------------------------------------------
QUESO Library: Version = 0.56.1 (5601)

External Release

Build Date   = Jan 24 2017 15:45:28
Build Host   = ls18081-l.arl.army.mil
Build User   = jjramsey
Build Arch   = x86_64-unknown-linux-gnu
Build Rev    = N/A

C++ Config   = mpic++ -g -O2 -Wall -std=c++0x

Trilinos DIR = 
GSL Libs     = -L/home/jjramsey/Desktop/UQ/queso-bin/external/gsl/lib -lgsl -lgslcblas -lm
GRVY DIR     = 
GLPK DIR     = 
HDF5 DIR     = 
--------------------------------------------------------------------------------------------------------------
Beginning run at Tue Jan 24 15:53:57 2017

MPI node of worldRank 0 has fullRank 0, belongs to subEnvironment of id 0, and has subRank 0
MPI node of worldRank 0 belongs to sub communicator with full ranks 0
MPI node of worldRank 0 also belongs to inter0 communicator with full ranks 0, and has inter0Rank 0

*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 88, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 108, compiled Jan 24 2017 at 15:45:59 ***
*** Warning, this code is deprecated and likely to be removed in future library versions:  ../../queso-0.56.1/src/core/src/BoostInputOptionsParser.C, line 141, compiled Jan 24 2017 at 15:45:59 ***
Tried to build an unknown type: logit_random_walk
valid options are:
../inc/queso/Factory.h, line 127, compiled Jan 24 2017 at 15:47:00
Exiting...
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD 
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------

I notice that the list of valid options is empty.

dmcdougall commented 7 years ago

Are you linking statically with queso?

jjramsey commented 7 years ago

Are you linking statically with queso?

Yes. Bear in mind that I eventually plan on running a QUESO program on a Cray, where static linking is preferred.

dmcdougall commented 7 years ago

Good news. This issue has already been fixed and merged so it'll be sorted in the next QUESO release. See #508 for details.

dmcdougall commented 7 years ago

You can download the latest hotfix release from the releases page. Thanks for reporting the issue.