Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing includes found by test_installed_headers.sh #1597

Merged
merged 6 commits into from
Feb 19, 2018

Conversation

jwpeterson
Copy link
Member

This PR also includes a handy helper script which calls test_installed_headers.sh with some useful arguments, since that script is designed to work with the make installcheck target.

Refs #1594.

When included alone, you apparently can't get away with just forward
declarations of TypeVector and TypeTensor. The error messages I was
getting were along the lines of:

In file included from /Users/petejw/projects/libmesh_git/installed/include/libmesh/exact_error_estimator.h:25:
/Users/petejw/projects/libmesh_git/installed/include/libmesh/function_base.h:136:18: error: implicit instantiation of undefined template 'libMesh::VectorValue<double>'
  virtual Output component(unsigned int i,
                 ^
/Users/petejw/projects/libmesh_git/installed/include/libmesh/function_base.h:77:11: note: in instantiation of member function 'libMesh::FunctionBase<libMesh::VectorValue<double> >::component' requested here
  virtual ~FunctionBase ();
          ^
/opt/moose/llvm-3.9.0/bin/../include/c++/v1/memory:2541:13: note: in instantiation of member function 'libMesh::FunctionBase<libMesh::VectorValue<double> >::~FunctionBase' requested here
            delete __ptr;
            ^
Refs libMesh#1593.
We use std::unique_ptr in this header, but it was only being included
by accident on the main compilers we test with. Compiling with GCC
5.4.0 on Linux Mint 18 uncovered this issue.

Refs libMesh#1594.
Refs libMesh#1593.
This one just calls test_installed_headers.sh with specific arguments
is useful in situations where you are not running "make installcheck".
@jwpeterson jwpeterson mentioned this pull request Feb 19, 2018
Copy link
Member

@roystgnr roystgnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@jwpeterson jwpeterson merged commit e975bc3 into libMesh:master Feb 19, 2018
@jwpeterson jwpeterson deleted the test_installed_headers branch February 19, 2018 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants