Trilinos issueshttps://gitlab.osti.gov/jmwille/Trilinos/-/issues2019-01-26T00:22:06Zhttps://gitlab.osti.gov/jmwille/Trilinos/-/issues/4270TriKota: Build errors with Dakota 6.8 and newer2019-01-26T00:22:06ZJames WillenbringTriKota: Build errors with Dakota 6.8 and newer*Created by: briadam*
<!---
Provide a general summary of the issue in the Title above. If this issue
pertains to a particular package in Trilinos, it's worthwhile to start the
title with "PackageName: ".
-->
<!---
Note that an...*Created by: briadam*
<!---
Provide a general summary of the issue in the Title above. If this issue
pertains to a particular package in Trilinos, it's worthwhile to start the
title with "PackageName: ".
-->
<!---
Note that anything between these delimiters is a comment that will not appear
in the issue description once created. Click on the Preview tab to see what
everything will look like when you submit.
-->
<!---
Feel free to delete anything from this template that is not applicable to the
issue you are submitting.
-->
<!---
Replace <teamName> below with the appropriate Trilinos package/team name.
-->
@trilinos/trikota
<!---
Assignees: If you know anyone who should likely tackle this issue, select them
from the Assignees drop-down on the right.
-->
<!---
Lables: Choose any applicable package names from the Labels drop-down on the
right. Additionally, choose a label to indicate the type of issue, for
instance, bug, build, documentation, enhancement, etc.
-->
## Expectations
<!---
Tell us what you think should happen, how you think things should work, what
you would like to see in the documentation, etc.
-->
Trilinos should work when TriKota is enabled with Dakota 6.8 and newer.
## Current Behavior
Build fails due to Dakota not being able to find ROL headers. (Dakota now has an optional dependence on ROL)
## Motivation and Context
Trying to verify that recent changes in Dakota will not break TriKota users of Dakota.
## Definition of Done
<!---
Tell us what needs to happen. If necessary, give us a task list along the
lines of:
- [ ] First do this.
- [ ] Then do that.
- [ ] Also this other thing.
-->
Enabling TriKota should build and test with Dakota 6.8 or newer.
## Possible Solution
<!---
Not obligatory, but suggest a fix for the bug or documentation, or suggest
ideas on how to implement the addition or change.
-->
Ideally, want to allow TriKota/Dakota to use Trilinos ROL, however, this results in a circular dependency because ROL has an optional dependence on TriKota. For now, recommend workaround where Dakota's ROL is disabled when building under TriKota.
## Steps to Reproduce
<!---
Provide a link to a live example, or an unambiguous set of steps to reproduce
this issue. Include code to reproduce, if relevant.
1. Do this.
1. Do that.
1. Shake fist angrily at computer.
-->
Clone Trilinos, checkout devel, place Dakota in trilinos/packages/TriKota/Dakota. Configure Trilinos with TriKota enabled, get build error at make time.
## Your Environment
<!---
Include relevant details about your environment such that we can replicate this
issue.
-->
- **Relevant repo SHA1s:** Trilinos master at 4f15e6fb356295d8ba1e022e94d8b0bad732e082
- **Relevant configure flags or configure script:**
```
cmake \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=../install \
-DBUILD_SHARED_LIBS:BOOL=TRUE \
-DTrilinos_ENABLE_TESTS:BOOL=ON \
-DTrilinos_ENABLE_Teuchos:BOOL=ON \
-DTrilinos_ENABLE_ROL:BOOL=ON \
-DTrilinos_ENABLE_TriKota:BOOL=ON \
-DTrilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \
-DTrilinos_ENABLE_ALL_FORWARD_DEP_PACKAGES:BOOL=OFF \
-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-DTrilinos_ENABLE_COMPLEX_DOUBLE:BOOL=ON \
../source
```
- **Operating system and version:** RHEL 7.6
- **Compiler and TPL versions:** Default RHEL7 toolchain (gcc-4.8.5) and TPLs
https://gitlab.osti.gov/jmwille/Trilinos/-/issues/1993Trilinos compilation error due to TriKota2017-12-01T21:54:57ZJames WillenbringTrilinos compilation error due to TriKota*Created by: ikalash*
I built Trilinos with TriKota as a part of Albany nightly testing. Last night, I got the following compilation error due to TriKota:
```/home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota...*Created by: ikalash*
I built Trilinos with TriKota as a part of Albany nightly testing. Last night, I got the following compilation error due to TriKota:
```/home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/src/dakota_data_types.hpp:56:14: error: ‘deque’ in namespace ‘std’ does not name a template type
typedef std::deque<bool> BoolDeque; // See Meyers' Effective STL #18
^~~~~
/home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/src/dakota_data_types.hpp:59:21: error: ‘BoolDeque’ was not declared in this scope
typedef std::vector<BoolDeque> BoolDequeArray;
^~~~~~~~~
/home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/src/dakota_data_types.hpp:59:30: error: template argument 1 is invalid
typedef std::vector<BoolDeque> BoolDequeArray;
^
/home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/src/dakota_data_types.hpp:59:30: error: template argument 2 is invalid
[ 26%] Building CXX object packages/TriKota/Dakota/packages/external/DDACE/src/CMakeFiles/ddace.dir/Random/NormalDistribution.cpp.o
[ 26%] Building CXX object packages/TriKota/Dakota/packages/external/DDACE/src/CMakeFiles/ddace.dir/Random/PseudoRandomTestsOnly.cpp.o
/home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/src/dakota_data_types.hpp:127:14: error: ‘set’ in namespace ‘std’ does not name a template type
typedef std::set<Real> RealSet;'''
I am getting Dakota as follows:
wget -nv --no-check-certificate https://dakota.sandia.gov/sites/default/files/distributions/public/dakota-6.5-public.src.tar.gz -v
Should I be using a different dakota?